design and develop a program to calculate the parking charges
Answers
Answered by
0
Answer:
Write a program to calculate the parking fare for customers who park their cars in a parking lot when the following information is given:
a. A character showing the type of vehicle: C for car, B for bus and T for truck
b. An integer between 0 and 24 showing the hour the vehicle entered the lot.
c. An integer between 0 and 60 showing the minute the vehicle entered the lot.
d. An integer between 0 and 24 showing the hour the vehicle exited the lot.
e. An integer between 0 and 60 showing the minute the vehicle exited the lot.
As it’s a public lot, people are encouraged to park for only a short period of time. The management uses two different rates for each type of vehicle.
Similar questions