Question: python Question 3: Oh, oh, telephone line, give me some time Write a program that computes the cost of a long-distance call. The cost of
Question 3: Oh, oh, telephone line, give me some time Write a program that computes the cost of a long-distance call. The cost of the call is determined according the following rate schedule: - Any call started between 6:00 A.M. and 9:00 P.M., Monday through Friday, is billed at a rate of $0.50 per minute. - Any call starting before 6:00 A.M. or after 9:00 P.M., Monday through Friday, is charged at a rate of $0.30 per minute. - Any call started on a Saturday or Sunday is charged at a rate of $0.15 per minute. The input will consist of: - The day of the week - The time the call started - The length of the call in minutes The output will be the cost of the call. A few things to keep in mind: - The time must be input as a 4-digit number, representing the time in military, or 24-hour, time. for example, the time 1:30 P.M. corresponds to the input 1330. - The day of the week must be read as one of the following three character strings: - "Mon" o "Tue" - "Wed" - "Thr" - "Fri" o "sat" - "sun" - The number of minutes will be input as a positive integer. You can assume the user will always enter valid inputs. For example, an execution could look tike this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
