Question: Write a C programming to read the in - time & out - time of customer vehicle parked in parking slot and the vehicle type

Write a C programming to read the in-time & out-time of customer vehicle parked in parking slot and the vehicle type (Use c or C for car, b or B for bike, t or T for Tempo for vehicle type). Parking fare is calculated as per the rates given below. Print the total parking charges.
Vehicle
Base fare
Rates for less than 2 hours
Rates for more than 2 hours to 4 hours
Rates for more than 4 hours
Bike
Rs.10
Rs 20/hr
Rs 40/hr
Rs 60/hr
Car
Rs.20
Rs 30/hr
Rs 50/hr
Rs 70/hr
Tempo
Rs.30
Rs 40/hr
Rs 60/hr
Rs 80/hr

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!