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, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Anew author is in the process of negotiating a contract for a new romance novel. the publisher is offering three options. in the first option, the author is paid $5,000 upon delivery of the final manuscript and $20,000 when the novel is published. in the second option, the author is paid 12.5% of the net price of the novel for each copy of the novel sold. in the third option, the author is paid 10% of the net price for the first 4,000 copies sold, and 14% of the net price for the copies sold over 4,000. the author has some idea about the number of copies that will be sold and would like to have an estimate of the royal- ties generated under each option. write a program that prompts the author to enter the net price of each copy of the novel and the estimated number of copies that will be sold. the program then outputs he royalties under each option and the best option the author could choose. (use appropriate named constants to store the special values such as royalty rates and fixed royalties.
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
Game design colleges anyone know the requirements? ?
Answers: 1
You know the right answer?
// This class discounts prices by 10% public class DebugFour4
{
public static void main...
Questions
question
History, 10.01.2020 01:31
question
Social Studies, 10.01.2020 01:31
Questions on the website: 13722361