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
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
Get step-by-step solutions from verified subject matter experts
