C Programming
A parking garage charges a $2.00 minimum fee to park for up to 3 hours. Th...
Computers and Technology, 20.02.2020 03:21 briansalazar17
C Programming
A parking garage charges a $2.00 minimum fee to park for up to 3 hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of 3 hours. The maximum charge for any given 24-hou period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of 3 customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tubular format, and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your output should appear in the following format:
Output:
Enter the hours parked for 3 cars:
1.5 4.0 24.0
Car Hours Charge
1 1.5 2.00
2 4.0 2.50
3 24.0 10.00
Total 29.5 14.50
#include
#include
Float calculateCharges(float);
main()
{
}
Float calculateCharges(float hours)
{
}
Answers: 2
Computers and Technology, 23.06.2019 10:00
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
Answers: 1
Computers and Technology, 23.06.2019 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
Mathematics, 04.12.2020 01:40
English, 04.12.2020 01:40
English, 04.12.2020 01:40
Chemistry, 04.12.2020 01:40
Mathematics, 04.12.2020 01:40
Mathematics, 04.12.2020 01:40
Biology, 04.12.2020 01:40
Health, 04.12.2020 01:40
Mathematics, 04.12.2020 01:40