Python Program To Computes The Cost of a Long‐Distance Phone Call
Write a program that computes the cost of a long‐distance phone call The cost of a call is determined according to the following rate schedule.
Any call started between 8:00am and 6:00pm, Monday through Friday is billed at a rate of $0.40 per minute.
Any call starting before 8:00am or after 6:00pm, Monday through Friday is billed at a rate of $0.25 per minute.
Any call started on a Saturday or Sunday is billed at a rate of $0.15 per minute.
The input will consist of:
1. The day of the week. Read as one of the following pairs of character values, which are stored in two variables of type char. Valid designation are Mo, Tu, We, Th, Fr, Sa, Su. Be sure to allow the user to use either uppercase or lowercase or a combination of the two.
.2. The time the call was started. Input in 24‐hour notation, so the time 1:30 pm is input as 13:30. It will be read as one int then a single char then another int.
3. The length of the call (in minutes) stored in a data type of int.
Note – Be sure to prompt the user for all inputs. Checking for input errors is recommended.
The output will be the details of the call followed by the calculated cost of the call. Your program should:
Have a function to display information about the program
Have a function (or functions) to get the input from the user
Have a function (or functions) to calculate the cost of the call
Have a function to nicely display all the details of the call including the cost
Include a loop that lets the user repeat this calculation until the user says she or he is done.
All parts of the submission are to be uploaded in Canvas by the due date. Refer to the style guide posted in Canvas!
1. Write and submit the external documentation (see the Style Guide) which should include the pseudo‐code (or flow chart) to describe how your program will operate (pdf format).
2. Write and submit a C++ source code file that implements your solution.
Your source code must contain appropriate internal documentation (comments)
Your source code must be neatly formatted for readability.
Get Solution of this python program then you can contact with us or if you need any help related to python advanced programming then we will also help you with and affordable price:
Send Project Request at: