subject

// This class discounts prices by 10% public class DebugFour4
{
public static void main(String args[])
{
final double DISCOUNT_RATE = 0.90;
int price = 100;
double price2 = 100.00;
tenPercentOff (price DISCOUNT_RATE);
tenPercentOff (price2 DISCOUNT_RATE);
}
public static void tenPercentOff(int p, final double DISCOUNT_RATE)
{
double newPrice = p * DISCOUNT_RATE;
System. out. println("Ten percent off " + p);
System. out. println(" New price is " + newPrice);
}
public static void tenPercentOff(double p, final double DISCOUNT_RATE)
{
double newPrice = p * DISCOUNT_RATE;
System. out. println("Ten percent off " + p);
System. out. println("New price is " + newprice);
}
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:40
Respecting individual differencespre-test active2time remaining48: 47nina is exploring her gender identity and sexual orientationwhich best describes how the role of the media might influence nina during this time in her life? the media would her decide because television shows are always unbiased about gender issues and do notstereotypethe media could make things difficult for her because television sometimes portrays rigid ideas about gender roles.all forms of media will her decide because the media always portrays rigid ideas about gender roles.all forms of media will make things easy for her because the media always portrays open and fair ideas about gender roles.
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
What is the next step if your volume does not work on computer
Answers: 2
question
Computers and Technology, 25.06.2019 04:30
What is the purpose of network permissions? a)to control access to network resources b)to convert to wireless networking c)to enable the installation of nics d)to reduce operating costs
Answers: 1
You know the right answer?
// This class discounts prices by 10% public class DebugFour4
{
public static void main...
Questions
question
Mathematics, 20.09.2020 14:01
question
Mathematics, 20.09.2020 14:01
question
Mathematics, 20.09.2020 14:01
Questions on the website: 13722359