Create a Python file dmv_app.py that imports your DmvRecord.py file from Assignment 7. Add the definition of a class named DmvApp . It will store a list of DMV records in a CSV file, and include...



  • Create a Python file dmv_app.py that imports your DmvRecord.py file from Assignment 7.



  • Add the definition of a class namedDmvApp. It will store a list of DMV records in a CSV file, and include methods allowing the user to create, view, and remove records from the database, as well as save and load to and from a CSV file.



  • 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 anddisplay 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 recordfrom 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 fileRemove all vehicles - empties the database



Submit your code and a screenshot of execution.
Oct 23, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here