Question: This is in MATLAB. Thanks in advance! Write a script called CallCost that calculates the cost of a telephone call according to the following price

This is in MATLAB. Thanks in advance!
Write a script called CallCost that calculates the cost of a telephone call according to the following price schedule: Time the call was made Day: Duration of call 1-10 min 10-30 min More than 30 min S1.00 S0.08/min for additional min above 10 S0.70$0.05/min for additional min above 10 S0.40 S0.03/min for additional min above 10 S2.60 S0.06/min for additional min above 30 S1.70 S0.04/min for additional min above 30 $1.00 S0.02/min for additional min above 30 8 A.M. to 6 P.M. S0.10/min Evening: 6 P.M. to 12 A.MS0.07/min S0.04/min Night 12 A.M. to 8 A.M. The program asks the user to enter the time the call is made (day, evening, or night) and the duration of the call. 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 and present your MATLAB program and output: (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
