subject

Currently the application only supports insert and print. In this part we want to add new commands for find, update, and erase functions. You will need to create three new classes that inherit from userListCommand. Your code in these new classes should use the display member function of userListCommand to display output to the user. The read member function is used to both display a prompt to the user and to read in a value from the user. See the existing insertCommand for an example of how these are used. Your new commands must NOT directly read from cin or write to cout. You should use the read and display member functions. If you need to read or write on your own you need to use std::istream in that is inherited from userListCommand or std::ostream out that is inherited from userListCommand. We are doing this to keep the application as independent from using hard coded input and output objects as possible. The three new classes should be defined in the userListCommands. h file and implemented in the userListCommands. cpp file. They must all inherit from userListCommand. The three new classes are:.findCommand. This will read in the user id (using the read member function). If will then use the userList class’ find member function to see if the user id is found or not. An appropriate message must be displayed using the display member function. See the sample output for examples of the expected output for the findCommand. updateCommand. This will read in the user id. If the user id exists the user will be asked to enter a new password and the password in the userList will be updated with the new password. See the sample output for examples of the expected output. eraseCommand. The user enters a user id and it is erased. See the sample output for examples of the expected output. Sample output for part 1 (input data is shown below with [Enter] after it). You will not see the input data when you run the program under zyBooks:.Starting the Userid management applicationUserid management:f findi insertu updatee erasep printq exit the menui[Enter]Enter the user id to be added:albert[Enter]Enter the password for user albert:password[Enter]User albert was successfully addedUserid management:f findi insertu updatee erasep printq exit the menui[Enter]Enter the user id to be added:zelda[Enter]Enter the password for user zelda:IamZelda[Enter]User zelda was successfully addedUserid management:f findi insertu updatee erasep printq exit the menui[Enter]Enter the user id to be added:bobby[Enter]Enter the password for user bobby:12345678[Enter]User bobby was successfully addedUserid management:f findi insertu updatee erasep printq exit the menup[Enter]Current list of users and passwords User id Password albert password bobby 12345678 zelda IamZeldaUserid management:f findi insertu updatee erasep printq exit the menuf[Enter]Enter the user id to search for:bob[Enter]User bob was not foundUserid management:f findi insertu updatee erasep printq exit the menuf[Enter]Enter the user id to search for:zeldaUser zelda was foundUserid management:f findi insertu updatee erasep printq exit the menuu[Enter]Enter the user id to be updated:bob[Enter]User bob was not foundUserid management:f findi insertu updatee erasep printq exit the menuu[Enter]Enter the user id to be updated:zelda[Enter]Enter the new password for user zelda:lkJds38*$[Enter]The password for user zelda was successfully updatedUserid management:f findi insertu updatee erasep printq exit the menup[Enter]Current list of users and passwords User id Password albert password bobby 12345678 zelda lkJds38*$Userid management:f findi insertu updatee erasep printq exit the menue[Enter]Enter the user id to be erased:bob[Enter]User bob was not foundUserid management:f findi insertu updatee erasep printq exit the menue[Enter]Enter the user id to be erased:bobby[Enter]The entry for user bobby was successfully erasedUserid management:f findi insertu updatee erasep printq exit the menup[Enter]Current list of users and passwords User id Password albert password zelda lkJds38*$Userid management:f findi insertu updatee erasep printq exit the menuq[Enter]

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text “invalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
You know the right answer?
Currently the application only supports insert and print. In this part we want to add new commands f...
Questions
question
English, 13.10.2020 17:01
question
Social Studies, 13.10.2020 17:01
question
Mathematics, 13.10.2020 17:01
question
Mathematics, 13.10.2020 17:01
question
Mathematics, 13.10.2020 17:01