Question: Hello there, Please solve below question using PYTHON programming language. Gustafson Motors is an automobile dealer that maintains a fleet of eight cars to be
Hello there,
Please solve below question using PYTHON programming language.




Gustafson Motors is an automobile dealer that maintains a fleet of eight cars to be rented to customers while their cars are in the shop. The dealer was able to arrange with the state for prestige license plates for the cars, so all the plates read GMTR followed by a single digit. The data are as follows: Write a function to input the data into a file - Ask for the plate, model, rate, and name of renter. - When they are finished all the data should be in a file using JSON. Write a function to rent a car. - Open file and display all of the data. - Ask which car the user would like to rent. - Change the renter's name to the customer's name. - Update the file. The functions should not let a car already rented be rented to someone else. Write a function to return a car - Open file and display all of the data. - Ask which car the user is returning. - change name to None. - Ask how many days the user rented the car. - Use a trylexcept to catch an error. - Display the amount that should be charged to the customer. - Ask for the amount paid and return the correct change. - Update the file. Write a function to remove a car - Read from the file and display all of the data. - Ask which car will be deleted from the list. - Remove the car. - Update the file. Write a main function with a menu display... 1. Add a Car 2. Rent a Car to a Customer 3. Return a Car 4. Remove a Car 5. Display Fleet of Car Rentals 6. Exit Program Loop the calls to allow the user to run the program repeatedly. Write the program in stages and test as you go
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
