./workersDB small.txt Employee DB Menu: ---------------------------------- (1) Print the Database (2) Lookup by ID (3) Lookup by Last Name (4) Add an Employee (5) Quit ---------------------------------- Enter your choice: 1 NAME SALARY ID --------------------------------------------------------------- Cathryn Danner 72000 165417 Matt Meeden 69000 273225 Robert Dufour 91000 471163 Dylan Steinberg 84000 485913 Mike Griffin 72000 499959 Daniel McNamee 71000 547935 Peter Olsen 82000 553997 Martine Marshall 99000 633976 Jean Jones 94000 702234 Dana Parrish 87000 784372 Ann Coddington 82000 786785 Melissa Dufour 114000 849387 Heather James 98000 935460 Russ Vorobiev 109000 970016 --------------------------------------------------------------- Number of Employees (14) Employee DB Menu: ---------------------------------- (1) Print the Database (2) Lookup by ID (3) Lookup by Last Name (4) Add an Employee (5) Quit ---------------------------------- Enter your choice: 10 Hey, 10 is not between 1 and 5, try again... Enter your choice: 2 Enter a 6 diget employee id: 471162 Employee with id 471162 not found in DB Employee DB Menu: ---------------------------------- (1) Print the Database (2) Lookup by ID (3) Lookup by Last Name (4) Add an Employee (5) Quit ---------------------------------- Enter your choice: 2 Enter a 6 diget employee id: 553997 NAME SALARY ID --------------------------------------------------------------- Peter Olsen 82000 553997 --------------------------------------------------------------- Employee DB Menu: ---------------------------------- (1) Print the Database (2) Lookup by ID (3) Lookup by Last Name (4) Add an Employee (5) Quit ---------------------------------- Enter your choice: 3 Enter Employee's last name (no extra spaces): Jones NAME SALARY ID --------------------------------------------------------------- Jean Jones 94000 702234 --------------------------------------------------------------- Employee DB Menu: ---------------------------------- (1) Print the Database (2) Lookup by ID (3) Lookup by Last Name (4) Add an Employee (5) Quit ---------------------------------- Enter your choice: 4 Enter the first name of the employee: Tia Enter the first name of the employee: Newhall Enter a 6 diget employee id num: 454545 Enter employee's salary (30000 to 150000): 60000 do you want to add the following employee to the DB? Tia Newhall, salary: 60000, id: 454545 Enter 1 for yes, 0 for no: 1 Employee DB Menu: ---------------------------------- (1) Print the Database (2) Lookup by ID (3) Lookup by Last Name (4) Add an Employee (5) Quit ---------------------------------- Enter your choice: 1 NAME SALARY ID --------------------------------------------------------------- Cathryn Danner 72000 165417 Matt Meeden 69000 273225 Tia Newhall 60000 454545 Robert Dufour 91000 471163 Dylan Steinberg 84000 485913 Mike Griffin 72000 499959 Daniel McNamee 71000 547935 Peter Olsen 82000 553997 Martine Marshall 99000 633976 Jean Jones 94000 702234 Dana Parrish 87000 784372 Ann Coddington 82000 786785 Melissa Dufour 114000 849387 Heather James 98000 935460 Russ Vorobiev 109000 970016 --------------------------------------------------------------- Number of Employees (15) Employee DB Menu: ---------------------------------- (1) Print the Database (2) Lookup by ID (3) Lookup by Last Name (4) Add an Employee (5) Quit ---------------------------------- Enter your choice: 5 goodbye!