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.

`Twas brillig, and the slithy toves

Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
"Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!"
He took his vorpal sword in hand Long time the manxome foe he sought --
So rested he by the Tumtum tree, And stood awhile in thought.
And, as in uffish thought he stood, The Jabberwock, with eyes of flame, Came whiffling through the tulgey wood, And burbled as it came!

Sorry about the formatting. I meant to say

`Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the borogoves, And the mome raths outgrabe. "Beware the Jabberwock, my son! The jaws that bite, the claws that catch! Beware the Jubjub bird, and shun The frumious Bandersnatch!" He took his vorpal sword in hand Long time the manxome foe he sought -- So rested he by the Tumtum tree, And stood awhile in thought. And, as in uffish thought he stood, The Jabberwock, with eyes of flame, Came whiffling through the tulgey wood, And burbled as it came! One, two! One, two! And through and through The vorpal blade went snicker-snack! He left it dead, and with its head He went galumphing back. "And, has thou slain the Jabberwock? Come to my arms, my beamish boy! O frabjous day! Callooh! Callay!' He chortled in his joy. `Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe.

To write a program that calculates car rental fees based on the given table, you can use a combination of data structures, such as dictionaries, and loops to process any number of rentals. Here's an example program in Python to achieve 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},
}

# Main program loop
while True:
# Prompt the user for input
car_type = input("Enter the name of the car type (or 'quit' to exit): ")

# Check if the user wants to quit
if car_type == 'quit':
break

# Prompt the user for rental details
num_days = int(input("Enter the number of days rented: "))
num_miles = int(input("Enter the number of miles driven: "))

# Search for the car type in the table
if car_type in car_table:
# Calculate the rental fee
rate_per_day = car_table[car_type]['rate_per_day']
rate_per_mile = car_table[car_type]['rate_per_mile']
rental_fee = (num_days * rate_per_day) + (num_miles * rate_per_mile)

# Display the rental details
print("Type of Car: ", car_type)
print("Number of Days Rented: ", num_days)
print("Number of Miles Driven: ", num_miles)
print("Rental Fee: $", rental_fee)
else:
print("Error: Car type not found in table.")
```

In this program, we first define the car rental table as a dictionary, where the car type is the key and the rate per day and rate per mile are stored as inner dictionaries. We then use a while loop to repeatedly prompt the user for rental details and search for the car type in the table. If a match is found, we calculate the rental fee and display the details. If the car type is not found in the table, we display an error message.

You can copy this code into a Python editor and run it to test it out. Make sure to enter the car type exactly as it appears in the table, and follow the prompts to enter the rental details.