Question: develop a console - based ( character - based, not GUI ) system that records information about vehicles. The vehicles we will deal with are

develop a console-based (character-based, not GUI) system that records information about vehicles. The vehicles we will deal with are of the car, truck and SUV type. The test program for the application is partially written: see link to file below.
The program must be developed step by step and in the first part you must create the following classes:
The class Vehicle with the following characteristics:
brand
year model
mileage
price
A constructor that initializes all variables.
the method __str__ which prints info about all members in the class.Car which inherits from Vehicle has the following additional data number of doors. A constructor that initializes all variables.
Override the __str__ method which additionally prints data relevant to the Car class.
Truck that inherits from Vehicle has the following additional data
wheel drive, 2 or 4WD
A constructor that initializes all variables
Override the __str__ method which additionally prints data relevant to the Truck class.
SUV that inherits from Vehicle has the following additional data
passenger capacity
A constructor that initializes all variables
Override the __str__ method which additionally prints data relevant to the SUV class.
Take car_truck_suv_demo.py as a starting point
enter code for menu items 1-3,
In the second part of the assignment, you must add the following:
Enter code for menu item 4.
One should be able to search the overview for a brand and have all vehicles of this brand printed out
When the program starts, all vehicles must be read from the file, if the file does not exist, the list of vehicles is set equal to an empty list.
When the program ends, all vehicles must be sorted and written to a file (pickle / unpickle)
Add code to catch exceptions that the program may throw, typically errors in user input and errors in file handling

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!