Computing the cost of a phone call
Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedule:
a) Any call started between 8:00AM and 6:00PM, Monday through Friday, is billed at a rate of $.40 per minute.
b) Any call started before 8:00AM or after 6:00PM, Monday through Friday, is billed at a rate of $.25 per minute.
c) Any call started on Satuday or Sunday is charged at a rate of $.15 per minute.
The input consists of the day of the week, the time the call started, and the length of the call in minutes. The output will be the cost of the call. The time is to be input in 24-hours notation, so time 1:30PM is input as 13:30.
The day of the week will be rad as one of the following pairs of character values, which are stored in two variables of type charci:
Mo Tu We Th Fr Sa Su
Be sure to allow the user to use either uppercase or lowercase letters or a combination of the two. The number of minutes will be input as a valu of type int. (You can assume that the user rounds the input to a whole number of minutes.) Your program should include a loop that lets the user repeat this calculation until the user says she or he is done.
Step 1) Develop your algorithm and test it on paper. Design the algorithm in pseudocode or in flow-chart before writing the program. As any problem, there are several precautions that you need to take when you solve this problem. I will let you figure them out, but they are out there and you need to watch for them.
Step 2) Implement the algorithm, write a C++ program, called phonecall.cpp, and test it to make sure it produces the correct results.
Instructions to return your lab to the teacher: (5 points penalty if instructions are not followed appropriately)
Congratulations! You have completed another Lab of CS I !! :-))