Question: Data File Here is the data file you will read from: link. It is formatted in the following way: Sample from file: 55 Francine Palau

Data File

Here is the data file you will read from: link.

It is formatted in the following way:

                     

Sample from file:

55 Francine Palau 23 N 381043 Kam Swindler 57 Y 449122 Migdalia Constable 21 Y 401934 

Requirements

DriversLicenseRecord Class

  • Design a DriversLicenseRecord class
    • Note that a Driver has a first name, last name, age, voter status, and license number
    • All member variables should be private
    • Create getters and setters as they are needed
  • NOTE: This class only contains data, it doesn't not interact with the user!

DMV Class

The DMV class will be in charge of...

  • Constructor
    • Reading and storing the drivers license records
    • Make sure the file exist!
  • Interacting with the user
    • Print menus
    • Validate user input!
  • All I/O to the terminal

Here's the menu for the user:

Select an option: 1) Print all Drivers Info 2) Print all voters Info 3) Print specific driver 4) Create registered voter file 5) Quit Enter your choice: 
Option Description
Print all Driver Info Prints all drivers and all their information in the following format:
,  ():  

Example of a single entry (you'll print all entries)

Johnson, Larry (67): 301288 
Print all voters Prints the driver information in the same format as the previous option, but only prints those registered to vote.
Print specific driver Asks the user for a drivers license number, and print the information for that driver OR if the driver doesn't exist print "No record found."
Create registered voter file Prompts the user for an output file name and save a file formatted exactly as the original (with the number of entries at the top) of all registered voters
Quit Exits the program.

main

Main will make sure that a file name was passed in, then hand control over to the DMV class.

Here's a skeleton of main:

int main(int argc, char** argv) { //Do a check to make sure we have the right number of arguments, exit if std::string fileName; DMV myDMV(fileName); myDMV.run(); } 
can u teach me how to do dmv.h and dmv.cpp part

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!