Write a C program in 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,
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 entered
the lot.
E. An integer between 0 and 60 showing the minute the vehicle left
the lot.
Different rates for each type of vechicle, as shown:
VEHICLE : P0.00/hr first 3 hr P25.50/hr after 3 hr
CAR : P1.00/hr first 2 hr P35.75/hr after 2 hr
BUS : P25.00/hr first hr P43.40/hr after 1 hr
No vehicle is allowed to stay in the parking lot later than midnight;
it will be towed away.
Then print the parking lot charge.
Ing ini ang output sa Program.
Type of Vehicle: Car/Bus/Truck
Time In: xx

x A/P/M/N (A = AM, P = PM, M = Midnight, N = Noon)
Time Out: xx

x A/P/M/N
Parking Time: xx

x
Rounded Total: xx

x
Total Charge: P xx.xx
Compiler Gamit: DL:
http://www.mediafire.com/?3ezxc741z8ya8cf
password: power
Thanks sa mga Master......