Question: hi, how to do flowchart for this program? 4. Write a program in a script file that calculates the cost of a telephone call according
hi, how to do flowchart for this program?

4. Write a program in a script file that calculates the cost of a telephone call according to the following price schedule: Time the call made Duration of call 10-30 min 1-10 min 0.10/min $1.00+$0.08/min for $2.60+$0.06/min for 0.07/min S0.70+$0.05/min for $1.70+S0.04/min for 0.04/min $0.40 $0.03/min for S1.00 S0.02/min for More than 30 min Day: 8 A.M. to 6 P.M Evening 6 PM. to 12 A.M. Night: 12 A.M. to 8 A.M additional min above 10. additional min above 30 additional min above 10. additional min above 30 additional min above 10. additional min above 13. 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. 4. Write a program in a script file that calculates the cost of a telephone call according to the following price schedule: Time the call made Duration of call 10-30 min 1-10 min 0.10/min $1.00+$0.08/min for $2.60+$0.06/min for 0.07/min S0.70+$0.05/min for $1.70+S0.04/min for 0.04/min $0.40 $0.03/min for S1.00 S0.02/min for More than 30 min Day: 8 A.M. to 6 P.M Evening 6 PM. to 12 A.M. Night: 12 A.M. to 8 A.M additional min above 10. additional min above 30 additional min above 10. additional min above 30 additional min above 10. additional min above 13. 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
Get step-by-step solutions from verified subject matter experts
