Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A cell phone provider has three different subscription packages for its customers: Package A:For $9.95 per month 10 hours of access are provided. Additional hours

A cell phone 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.

program to ask which package the customer has purchased, what month they are using and how many hours were used.

Determine maxHours. Months with 30 days have 720 hours, and months with 31 days have 744 hours. February, with 28 days, has 672 hours.

MonthDaysHours

January31744

February28672

March31744

April30720

May31744

June30720

July31744

August31744

September30720

October31744

November30720

December31744

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

Display the charge for the Package chosen.

Display how much money Package A customers would save if they purchased packages B or C;

how much money Package B customers would save if they purchased packages A or C;

and how much Package C customers would save if they purchased packages A or B.

If there would be no savings, no message should be printed.

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.

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

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

What are Electrophoresis?

Answered: 1 week ago