Question: C . Program - ( 1 0 pt ) Write a program that you enter the start time of a phone call using a floating
C Program pt
Write a program that you enter the start time of a phone call using a floating point value such that : am would be and : pm would be
Also the number of minutes the call lasted do not allow negative values presume whole minutes are used
There are three rates charged
Before :am $ per minute
Between : am and : pm $ per minute
After :pm until midnight $ per minute
The charges are only based on the start time not how long or when it ends
From the example note that valid minutes and start times must be entered
Example Output
Phone Charges Calculator
Using a floating point such that : would be entered as
What time did the phone call start?
That is not a valid time please reenter
What time did the phone call start?
That is not a valid time please reenter
What time did the phone call start?
How many total minutes did the call last?
Invalid number of minutes
How many total minutes did the call last?
The phone call started at : and was minutes
using a rate of $ per minute cost was $ in c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
