Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Project A and B (Java) Internet Service provider (Project A) An Internet service provider has three different subscription packages for its customers: Package A:

Java Project A and B

(Java) Internet Service provider (Project A) An Internet service provider 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 program that calculates a customers 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.

(Java) Internet Service provider, Project B Modify the program you wrote for Programming Challenge (Project A) 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.

Test Case 1:

Enter the letter of the package purchased: A Enter the number of hours that 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

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions