Computers and Technology

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]

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:40, debo4965
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
image
Computers and Technology, 23.06.2019 08:30, Bradgarner772
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, jason9394
Facial expressions and gestures are examples of messages.
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, herchellann302
To check whether your writing is clear , you can
Answers: 2
Do you know the correct answer?
Currently the application only supports insert and print. In this part we want to add new commands f...

Questions in other subjects:

Konu
Mathematics, 08.02.2021 19:50
Konu
Mathematics, 08.02.2021 19:50
Konu
English, 08.02.2021 19:50
Konu
Mathematics, 08.02.2021 19:50