Question: In Java An ISP has three different subscription packages for its customers: Package A: For $9.95 per month, 10 hours of access are provided. Additional

 In Java An ISP has three different subscription packages for its

In Java

An ISP has three different subscription packages for its customers: Package A: For $9.95 per month, 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month, 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided. Write a menu driven program [SWITCH statement] that calculates that 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 number of hours that were used. It should then display the total charges. Once the above part works perfectly, now modify the code to include input validation that input letter choice is from {A, B, C} and the amount of hours given by the user is a positive value. only. (For this, put additional conditional statements in the original code where user feeds the value). If any of the above input validation fails, display an error message "ERROR: Check your input values

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!