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 16:30
Primary tech skills are skills that are necessary for success in online education
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
The initial tableau of a linear programming problem is given. use the simplex method to solve it. x 1 x 2 x 3 s 1 s 2 z 1 2 4 1 0 0 8 3 4 1 0 1 0 10 minus3 minus12 1 0 0 1 0 the maximum is nothing when x 1equals nothing, x 2equals nothing, x 3equals nothing, s 1equals3, and s 2equals0. (be sure to simplify to lowest terms if necessary.)
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
Answers: 1
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
Mathematics, 23.03.2021 17:30
question
Computers and Technology, 23.03.2021 17:30
Questions on the website: 13722362