Question: Needs to be written in C++ skeleton on main: int main(int argc, char** argv) { //Do a check to make sure we have the right

Needs to be written in C++

Needs to be written in C++ skeleton on main: int main(int argc,

skeleton on main:

int main(int argc, char** argv) { //Do a check to make sure we have the right number of arguments, //exit if there aren't enough arguments

std::string fileName = ???;//get the file name from argv DMV myDMV(fileName); myDMV.run(); }

Information in a file that the program needs to read:

55 Francine Palau 23 N 730248 Kam Swindler 57 Y 468119 Migdalia Constable 21 N 493364 Larry Johnson 67 N 710708 Cedrick Whitting 37 N 722619 Evelynn Reising 38 N 451456 Flor Wixon 62 N 710822 Howard Johnson 68 N 438503 Bailey Kimsey 61 N 489617 Jerrica Woo 72 N 892411 Billy Gunn 41 Y 569138 Branden Bartel 43 Y 184273 Maryalice Crow 39 N 764832 Hailey Morris 18 Y 608059 Cheyenne Diehl 51 N 679397 Geraldine Streit 53 Y 409136 Rory Zank 52 N 162945 Janelle Cuff 38 Y 350092 Nikia Brucker 28 N 364666 William Boes 67 Y 414943 Leona Weller 27 N 412133 Lela Streit 29 Y 727911 Davida Hartranft 27 N 670018 Morgan Girard 29 N 809264 Antione Streit 33 N 661175 Kirby Arline 31 N 187333 Malka Apicella 33 N 364787 Kacy Zuccaro 47 N 674062 Jerlene Boes 45 Y 386365 Laurie Boes 44 N 295222 Jarrod Fichter 47 Y 632892 Edythe Royals 41 Y 412256 Claudette Dumont 49 Y 196029 Harland Gerstner 41 N 109270 Sabra Nolin 43 Y 882190 Sonny Johnson 72 N 837679 Monte Hulett 71 Y 128055 Linsey Mulloy 73 Y 666049 Cyrus Mckillip 62 N 564015 Dara Sadowski 60 Y 190400 Herman Moates 28 N 258557 Howard Zank 28 Y 599381 Maxima Harada 27 N 879187 Queen Sackrider 25 Y 600807 Rosie Carder 21 N 587389 Shiloh Clairmont 23 Y 604970 Sheryl Dykema 72 Y 156943 Theodora Ammann 43 N 892162 Rosetta Streit 41 N 238938 Zelma Brackens 39 Y 696127 Laree Julius 37 N 728400 Kira Tillett 33 Y 702861 Alayna Mayville 31 N 414247 Paulette Streit 26 Y 349362 Fidel Oceguera 27 N 476300

Requirements What's the most exciting thing you can think of? Exactly! The DMV! Today we're going to write a program that reads in Drivers License Records from file and then let's the user interact with the data. Data File Here is the data file you will read from: linka, It is formatted in the following way: Sample from file: Francine Palau 23 N 381043 Kam Swindler 57 Y 449122 Migdalia Constable 21 Y 401934 Classes DriversLicenseRecord Class Design a Drivers License Record 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 VO to the terminal Here's the menu for the user: Select an option: 1) print all Drivers Info 2) Print all voters 3) Print drivers by laat initial 4) Print drivers in age range 5) Quit Enter your choice: Option Description Prints all drivers and all their information in the following format: , ( ): Print all Driver Info 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 drivers by last initial Asks the user for single character, and print the information for all drivers that have a last name starting with that letter (case-insensitive) OR print "No record found." if no drivers have a last name starting with that character Print drivers in age range Prompts the user for two ints that represent an age range. Print all drivers (following the same format as when printing 1 driver) within this age range Quit Exits the program

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!