Question: Descrtipion: 14. Internet Service provider, part 2 Modify the program you wrote for Programming Challenge 13(Previous Program) so it also calculates and displays the
Descrtipion: 14. Internet Service provider, part 2 Modify the program you wrote for Programming Challenge 13(Previous Program) so it also calculates and displays the amount of money Package A customers would save if they purchased Package B or C, and the amount of money Package B customers would save if they purchased Pack- age C. If there would be no savings, no message should be printed. You can use decimal formatter class to format the output. DecimalFormat Decformatter = new DecimalFormat("#0.00"); Decformatter.format(outputvariable)); Test Case 1: Enter the letter of the package purchased: A Enter the number of hou were used: 17 Your total charges are $23.95 You would have saved $10.00 if you had gotten package B You would have saved $4.00 if you had gotten package c Test Case2: Enter the letter of the package purchased: B Enter the number of hours that were used: 30 Your total charges are $23.95 You would have saved $4.00 if you had gotten package C Test Case3: Enter the letter of the package purchased: C Enter the number of hours that were used: 40 Your total charges are $19.95 Test Case4: Enter the letter of the package purchased: D Enter the number of hours that were used: 30 That package input was not an option.
Step by Step Solution
3.38 Rating (145 Votes )
There are 3 Steps involved in it
Certainly Heres the modified program that calculates and displays the potential savings for Package A customers if they purchased Package B or C and the potential savings for Package B customers if th... View full answer
Get step-by-step solutions from verified subject matter experts
