CSCU 220 Signature Assignment: DMV Database You will create a Python command line application that allows the creation, editing, and storage of a database of DMV records. See the video of an example...

1 answer below »
CSCU 220 Signature Assignment: DMV Database You will create a Python command line application that allows the creation, editing, and storage of a database of DMV records. See the video of an example execution for clarification. Create a Python file dmv_record.py that contains the definition of a class named DmvCarRecord. The class should include an __init__ method that initializes the following fields using optional parameters: • license_num • maker • model • year • owner_id • reg_exp_date It also should include a __str__ method that returns a string representation of an instance of the class, for example "License Num DEF456 is a 2001 Honda Civic owned by AB4242 expires on 20200203". Create a Python file dmv_app.py that contains the definition of a class named DmvApp. The class should include a method called command_loop that presents the following menu (or something similar) to the user: 0: Exit application 1: List vehicles 2: Display vehicle record 3: Add vehicle 4: Remove vehicle 5: Load DB 6: Save DB 7: Remove all vehicles > The user will enter a number to select a particular command. The commands should include: • Exit application - exits the application • List vehicles - lists all of the vehicles in the database • Display vehicle record - prompts the user for a license_num and then uses that to find and display the vehicle record for that vehicle • Add vehicle - prompts the user for vehicle data and adds a new vehicle record to the database • Remove vehicle - prompts the user for a license_num and removes the identified record from the database • Load DB - prompts the user for a file name and loads the database from that file • Save DB - prompts the user for a file name and saves the database to that file • Remove all vehicles - empties the database
Answered Same DayOct 25, 2021

Answer To: CSCU 220 Signature Assignment: DMV Database You will create a Python command line application that...

Aditya answered on Oct 26 2021
153 Votes
class DmvCarRecord:
def __init__(self, license_num, maker, model, year, owner_id, reg_exp_date):

self.license_num = license_num
self.maker = maker
self.model = model
self.year = year
self.owner_id = owner_id
self.reg_exp_date = reg_exp_date
def __str__(self):
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here