Question: Modify the program you wrote so it also calculates and displays the amount of money Package A customers would save if they purchased Package B

Modify the program you wrote 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
Package C. If there would be no savings, no message should be printed. This is what I have so far . I need to use SWITCH AND IF statements like I did. Only using the scanner class no advanced java at all. I think my problem is in my switch and if statements . It is not doing the calculations for savings for the choosing the different packages.
 Modify the program you wrote so it also calculates and displays
the amount of money Package A customers would save if they purchased

public dass InternetServiceProvider 2 public static void main(Stringl args) String userinput double totalSavingsAloB (packageA 13.95) lotalSavingsAloC (packageA 19.95) Scanner keyboard new ScannerlSystem.in package have you obtain? (Please use A, B, or C7 userinput# keyboard.netine0: case A. Syatem.outprintinl What are the total amount of hours used for this month? otalHours keyboard.nextDouble): packageA 9.95 totalHours, System ut print-For Package AinThe total dages for this month is S package SystemoutprintreYou save a total of . . ktaisaingatoa +-f you chose Package Ber + "and you would have save attal of. asa dngsNaC . "Ifyu chose Package C." else packageA. 9.95bea ours. 2.00: System.out.printFor Package A-inThe total charges for this month is $packageA) ctalSavingsAtoB (packageA 13.9) totalsanngAOC= (packageA. 19.95); Systermout printrnYou save a total of . + wasavingAb- you chose Package Ba. totaSavingsAtoC+it you + "and you would have save a total of" chose Package C.'k break English (USA) INSRT STD

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!