Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

What do I do next?

Answered: 1 week ago

Question

How cultural diversity effects in the health insurers in the USA?

Answered: 1 week ago

Question

How would you assess the value of an approach like this?

Answered: 1 week ago

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago