Question: Write a program in C + + that can calculate the cost of a telephone call according to the following price schedule: The program asks

Write a program in C++ that can calculate the cost of a telephone call according to the following price schedule:
The program asks the user to enter the time the call is made (day, evening, or night) and the duration of the call (a number that can have one digit to the right of the decimal point). If the duration of the call is not an integer, the program rounds up the duration to the next integer. The program then displays the cost of the call. Run the program three times for the following calls: (a)8.3 min at 1:32 P.M.(b)34.5 min at 8:00 P.M.(c)29.6 min at 1:00 A.M.

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 Programming Questions!