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 

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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Psychology Questions!