Write a python script that will compute and display information for a company which rents vehicles to its customers. For a specified customer, the program will compute and display the amount of money charged for that customer\'s vehicle rental after prompting the user to enter the following four items for a given customer (in the specified order) The customer\'s classification code (a character either B, D, ) The number of days the vehicle was rented (an integer) The vehicle\'s odometer reading at the start of the rental period (an integer) The vehicle\'s odometer reading at the end of the rental period (an integer) The program will compute the amount of money that the customer will be billed, based on the customer\'s classification code, number of days in the rental period, and number of miles driven. The program will recognize both upper case and lower case letters for the classification codes. Code \'B\' (budget) base charge: $40.00 for each day mileage charge: $0.25 for each mile driven Code \'D\' (daily) base charge: $60.00 for each day mileage charge: no charge if the average number of miles driven per day is 100 miles or less; otherwise, $0.25 for each mile driven above the 100 mile per day limit.
print \'Enter your classification code (B,b,D,d): \'
clasfCode = input();
print \'Enter number of days the vehicle was rented: \'
numOfDays = int( input() );
print \'Enter vehicle\\\'s odometer reading at the start of the rental period: \'
initialReading = int( input() );
print \'Enter vehicle\\\'s odometer reading at the end of the rental period: \'
finalReading = int( input() );
charge = None;
if clasfCode== \'b\' or clasfCode== \'B\':
charge = 40.0*numOfDays + 0.25*(finalReading - initialReading );
elif clasfCode== \'d\' or clasfCode== \'D\':
charge = 60.0*numOfDays;
averageNumberOfMilesPerDay = ( finalReading- initialReading + 0.0 )/numOfDays;
if averageNumberOfMilesPerDay > 100.0:
charge = charge + ( finalReading - initialReading - 100*numOfDays )*0.25;
else:
print \'Incorrect classification code\';
print \'Billed amount: \', charge;