design and develop a program to calculate the parking charges
Answers
Answered by
1
Answer:
Write a C program to calculate the parking fare for customers who park their vehicles in a parking lot.
Prompt the user to enter following information:
1. Type of vehicle (C for car, B for Bus)
2. Hours Vehicle entered the lot (use integer between 0 and 24)
3. Hours vehicle left the parking lot (use integer between 0 and 24)
Below are the parking rates:
CAR: free for first 3 hours, $1.50/hr after 3 hr
BUS: $1.00/hr for first 2 hour, $2.30/hr after 2 hr
Similar questions