![allimaycatp8qgaq](/avatars/31029.jpg)
allimaycatp8qgaq
04.11.2020 •
Computers and Technology
// 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);
}
}
Solved
Show answers
More tips
- G Goods and services How to Choose the Right High Chair for Your Baby?...
- S Style and Beauty Learn how to tie a keffiyeh on your head like a pro...
- S Style and Beauty How to braid friendship bracelets?...
- F Food and Cooking Delight for Gourmets: How to Prepare Liver Pate...
- C Computers and Internet How to Learn to Type Fast?...
- H Health and Medicine Angina: Causes, Symptoms, and Treatment...
- D Dating, Love, Relationships How to Overcome Jealousy: Tips and Tricks...
- H Health and Medicine 10 Ways to Cleanse Your Colon and Improve Your Health...
- W Work and Career How to Start Your Own Business: Tips and Recommendations...
- F Food and Cooking How to Make Delicious Cabbage Pies: The Best Recipes!...
Answers on questions: Computers and Technology
- M Mathematics Julia wrote 14 letters to friends each month for y months in a row. write an expression to show how many total letters she wrote....
- B Biology What kingdoms composed the three kingdom classification system used by scientists in the 1800s...
- H History In which counrty is buddism the least influential today...
- M Mathematics Deion practiced piano for 5/6 hour on saturday. on sunday,practiced 1/2 as long as on saturday. which best describes how long deion practiced on sunday a. deion practiced...
- H History Thomas d arcy mcgee was assassinated after confederation (canadian) had been won in 1867. what effect do you think the news of his assassination had on people in the new dominion...
- M Mathematics How to find the volume of 5 length 6 width 8 height...
- E English When nick asks gatsby what business he is in, gatsby responds, that s my affair, before he realizes that this is not an appropriate reply. why does gatsby give that answers,...
- H History Find the amount paid for the loan. $2000 at 12% for 3 years...
- E English To save time, it’s wise to quickly go through a long report, such as a government document, and look at the which will orient you to the information it contains. a. footnotes...
- H History Which french thinker emphasized mathematics as a way to explain everything in nature? a. nicholas copernicus b. galileo galilei c. rené descartes d. isaac newton...
Ответ:
if there are 1000 grams and each of the 1000 grams are 1000 milligrams, you would have to do 1000 times 1000.