Crunchum Parking Lots, Inc charges different rates depending onthe type of vehicle (C=Car, T=Truck, B=Bus) and length of timeparked, as follows:
Type
First Rate
Second rate
Car
1.25/hr first 2 hours
1.50/hr after the first 2 hours
Truck
2.75/hr first 2 hours
3.75/hr after the first 2 hours
Bus
9.50/hr for the first hour
6.75/hr after the first hour
Write a program to ask the user for the type of vehicle (C, T orB) and the number of hours parked and then print a parking invoicelike:
Crunchum Parking Lots, Inc.
“We usually find your vehicle!”
=============================
Vehicle Type: Car
Time: 4 Hours
Amount Due: $5.50
=============================
All times will be in whole hours, just use anint variable for hours.
I would use a char
PayPal Gateway not configured
PayPal Gateway not configured