Answered step by step
Verified Expert Solution
Question
1 Approved Answer
TASK 1 Program both problems in one main method. Use at least one switch statement in your code. Test your program with data that tests
TASK 1 Program both problems in one main method. Use at least one switch statement in your code. Test your program with data that tests all branches of your decision statements Store constant values in final variables. An Internet provider has three different subscriptions packages for its customers: Package A For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package B: Package C: For $19.95 per month unlimited access is provided. Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the total charges. TASK 2 Modify the program you wrote for problem #1 so it also calculates and displays the amount of money Package A customers would save if they purchased Package B or crand $1.00 per hour- Package C.For $19.95 per month unlimited access is provided. Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the total charges TASK 2 Modify the program you wrote for problem # 1 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started