Question: Problem: Part A: An Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access

Problem:

Part 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 $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour.

Package C: For $19.95 per unlimited access is provided.

Write a program that calculates a customers monthly bill. It should ask which package the customer has purchased and how many hours were used. It should then display the total amount due.

Input validation: Be sure the user only selects package A, B, or C. Also, the number of hours used in a month cannot exceed 744 (or be less than 0).

Part B:

Modify the Program so that it also displays how much money Package A customers would save if they purchased packages B or C, and how much money Package B customers would save if the purchased Package. C. If there would be no savings, no message should be printed.

Part C:

Months with 30 days have 720 hours, and months with 31 days have 744 hours. February, with 28 days, has 672 hours. Enhance the input validation of the program by asking the user for the month (by name), and validating that the number of hours entered is not more than the maximum for the entire month. Here is a table of the months, their days, and number of hours in each.

Month Days Hours

January 31 744

February 28 672

March 31 744

April 30 720

May 31 744

June 31 744

July 31 744

August 30 720

September 31 744

October 31 744

November 30 720

December 31 744

What to hand in:

Please see the title page for requirements for assignments.

You need the following in a single Word document:

Source code listing fully documented (comments for purpose, file, programmer, all variable declarations, and major tasks).

Test runs to show valid and invalid data as well as savings of Package C over A and or B.

User Guide with Purpose stated for a User, a simple run to illustrate the capability of the program and a section for assumptions and limitations

A hierarchy chart for example to calculate the area of a rectangle

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!