Question: Write a C++ Program that utilizes link lists and filestream to read from a user inputted data file and sort/modify the data. Write a program

Write a C++ Program that utilizes link lists and filestream to read from a user inputted data file and sort/modify the data.

Write a C++ Program that utilizes link lists and filestream to readfrom a user inputted data file and sort/modify the data. Write a

Write a program named "ManagelinkedUsers" with the following usage syntax: ManageLinkedUser user-data file-name Here is a sample user data file: "users.txt" You must define a "User" class that manages user info Well structure, easy to understand with the proper use of reusable functions, methods and classes. Handle user errors with proper error messages such as error message or successful indication after each login and command user data reoor user01 password01 teg user01yahoo com toot secetl23 adm oot@localhost.com supsruscr Hidden456 admin admin123 adm adminclass springville.edu hello greeting123 ez d: username password role email-address Handle data lines starting with"as comment lines . You must not use any C container class such as list or vector to manage the list of User objects. Instead, you must use "linked list" data structure to link these User objects together and manipulate them through the linkced list cg .You must allow and test for deleting the lst and last user in the linked list as well as deleting all users in the linked list (e g handling an empty user list) You must handle the case of the empty data file where there is no user data record (eg, empty linked list) Note: the value for role can be adm" for admin or Ieg" for regular user type. The program will ask the user to log in first by entering the correct username and password. If the user enters a correct combination of username and password and the user's role is regular (e.g. "Ieg", wmply display only the logged-in user's info (username and email) and then exit the program But if the user's role is admin (e.g. "adm"), it wll support the following commands: SHOW list all user account info ADD add new user by asking for user info (usemame, password, role and email adress) DELETE delete a user by asking for username SAVE save the changes back to the data file given on the comand line EXIT exit the program Notc: . You can assume that the usemame is always unique. Requirements: .All data members in your classes must be declared as "private

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!