Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

An intetnet service provider has three different subscription packages for its c

ID: 3639210 • Letter: A

Question

An intetnet 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 month unlimited access is provided.

Write a program that calculates a customer's montly 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.)

Internet Service Provider An intetnet 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 month unlimited access is provided. Write a program that calculates a customer's montly 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.)

Explanation / Answer

please rate - thanks

#include <iostream>
using namespace std;
int main()
{int hours;
char pack;
double tot;
cout<<"Make a Selection ";
cout<<"(A)Package A ";
cout<<"(B)Package B ";
cout<<"(C)Package C ";
cout<<"Enter your selection: ";
cin>>pack;
cout<<"Enter hours: ";
cin>>hours;
if(hours>744)
    cout<<"That's more hours then in a month!! ";
else
    {switch(pack)
       {case 'A': if(hours<10)
                     tot=9.95;
                  else
                     tot=9.95+(hours-10)*2;
                  break;
          case 'B': if(hours<20)
                     tot=14.95;
                  else
                     tot=14.95+(hours-20);
                  break;
          case 'C': tot=19.95;
          }
      }
cout<<"Monthly Bill: $"<<tot<<endl;
system("pause");
return 0;
}                     

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote