Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started