Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just need help with part 2 & 3 Here is my code for part 1 // Internet Service Provider #include using namespace std; int main()

Just need help with part 2 & 3

Here is my code for part 1

// Internet Service Provider #include using namespace std;

int main() { char package; //double total_amount; //Even skipped this! int hours;

cout

cout > package; while(package!= 'A' && package!='a' && package!='B' && package!='b'&& package!='C' && package!='c') {cout > package;}

cout >hours; cin.get(); while(hours 744) {cout > hours;}

if(package == 'A' || package == 'a') {if (hours

if(package == 'B' || package == 'b') {if (hours

if(package == 'C' || package == 'c') cout

cin.get(); return 0; }

image text in transcribedimage text in transcribed

Internet Service Provider An Internet service provider has three different subscription packages for its customers Package A: $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour Package B: $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour Package C: $19.95 per month unlimited access is provided Write a program that calculates a customer's monthly b 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. Exit the program if user enters incorrect information Internet Service Provider, Part 2 Modify the program (Don't forget to save the first version for submission!) for Internet Service Provider Part 1 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 they purchased Package C. If there would be no savings, no message should be printed Internet Service Provider, Part 3 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 Internet Service Provider Part 2 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

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

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

What is an industry?

Answered: 1 week ago