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 02:20
The reset circuit used on the four 3-bit counters analyzed in this activity reset the counts to zero (000). it makes sense for the up-counters to start at zero (000), but the down-counters should start at seven (111). what would you need to change so that the 3-bit binary down counter with j/k flip-flops you just created would reset to seven (111)?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Businesses allocate resources for their best and most productive uses. the more a resource, the more costly it will be. a manufacturer that requires scarce and costly resources is likely to charge for its products.
Answers: 2
question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
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, 10.12.2020 08:30
question
Mathematics, 10.12.2020 08:30
question
Mathematics, 10.12.2020 08:30
question
Computers and Technology, 10.12.2020 08:30
Questions on the website: 13722361