Question: in c++ Your program should output the account number, type of service, number of minutes the telephone service was used, and the amount due from
Your program should output the account number, type of service, number of minutes the telephone service was used, and the amount due from the user! For the premium service, the customer may be using the service during the day and the night. Therefore, to calculate the bill, you must ask the user to input the number of minutes the service was used during the day and the number of minutes the service was used during the night. You should use switch statement in your solution. Sample Input/output: Enter your account number: 106 Enter number of day minutes: 100 Enter number of night minutes: 200 1 For customer with account number 106: Type of service: Premium Total number of minutes the service was used: 300 Total amount due: $30 Total number of minutes the service was used: 340 Total amount due: $33.4 Your program should output the account number, type of service, number of minutes the telephone service was used, and the amount due from the user! For the premium service, the customer may be using the service during the day and the night. Therefore, to calculate the bill, you must ask the user to input the number of minutes the service was used during the day and the number of minutes the service was used during the night. You should use switch statement in your solution. Sample Input/output: Enter your account number: 106 Enter number of day minutes: 100 Enter number of night minutes: 200 1 For customer with account number 106: Type of service: Premium Total number of minutes the service was used: 300 Total amount due: $30 Total number of minutes the service was used: 340 Total amount due: $33.4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
