Acarrentalcompanyusesthefollowingtabletohelpcomputerentalfees. TABLE 9.3 Car Type Chevrolet Corvette Pontiac Buick Oldsmobile Cadillac Rate per Day 50.00 85.00 53.00 60.00 60.00 70.00 Rate per Mile 0.27 0.45 0.32 0.32 0.35 0.40 Write a program to calculate car rental fees based on this table. The program should prompt the user to enter the name of the type of car that was rented, the number of days the car was rented, and the number of miles the car was driven. The program should search the table for a match on the car type. If there is a match, the rental fee is the number of days rented, times the rate per day, plus the number of miles traveled, times the rate per mile. The program should display the type of car, the number of days rented, the number of miles driven, and the rental fee. If the table search cannot find the car type in the table, display an appropriate-ate error message. Write the program to process any number of rentals.

To write a program to calculate car rental fees based on the given table, you can use a programming language such as Python. Here's an example program that accomplishes this:

```python
# Define the car rental table as a dictionary
car_table = {
'Chevrolet Corvette': {'rate_per_day': 50.00, 'rate_per_mile': 0.27},
'Pontiac': {'rate_per_day': 85.00, 'rate_per_mile': 0.45},
'Buick': {'rate_per_day': 53.00, 'rate_per_mile': 0.32},
'Oldsmobile': {'rate_per_day': 60.00, 'rate_per_mile': 0.32},
'Cadillac': {'rate_per_day': 60.00, 'rate_per_mile': 0.35},
}

# Loop to process multiple rentals
while True:
# Prompt the user for input
car_type = input("Enter the name of the type of car that was rented (or 'quit' to exit): ")

# Check if the user wants to quit
if car_type.lower() == 'quit':
break

# Prompt for the number of days rented and miles driven
days_rented = int(input("Enter the number of days the car was rented: "))
miles_driven = float(input("Enter the number of miles driven: "))

# Search the car table for a match on the car type
if car_type in car_table:
# Retrieve the rate per day and rate per mile
rate_per_day = car_table[car_type]['rate_per_day']
rate_per_mile = car_table[car_type]['rate_per_mile']

# Calculate rental fee
rental_fee = (days_rented * rate_per_day) + (miles_driven * rate_per_mile)

# Display the result
print("Car Type:", car_type)
print("Number of Days Rented:", days_rented)
print("Number of Miles Driven:", miles_driven)
print("Rental Fee:", rental_fee)
else:
print("Car type not found in the table. Please enter a valid car type.\n")
```

This program uses a `car_table` dictionary to store the car types as keys, with their respective rates per day and per mile as values. It then uses a `while` loop to repeatedly prompt the user for car type, number of days rented, and number of miles driven. The program searches the `car_table` for a match on the car type entered by the user. If a match is found, it calculates the rental fee and displays the results. If the car type is not found in the table, an appropriate error message is displayed.

Note: This program assumes that the input provided by the user is valid and does not include additional error handling for invalid input. It is essential to validate and sanitize user input in a robust production environment.