Answer to Question #275248 in C++ for Younes

Question #275248

The administrator will log in to the system using their admin usernames and passwords. They will then be given an option of making a cash deposit for normal users, create an account for new users and also be able to change their own administrator passwords.


1. Administrators should be able to do all the 4 minimum roles stated, which are:

a. Login to the system

b. Deposit money for client

c. Register a new Client

d. Change their own admin password from the default


2. Normal users should be able to do all the 4 minimum roles stated, which are:

a. Login to the system

b. Withdraw cash

c. Check their account balance

d. Change their own use passwords from the one they were registered with

3. Develop and correctly implement an algorithm that will enable the administrator to store user details in a local database file, usersDB.txt .



1
Expert's answer
2021-12-04T01:27:53-0500
#include <iostream>
#include <vector>


using namespace std;


int main()
{
    int choice, i = 0;
    vector <string> users;



    while (true) {
        string input;
        cin >> input;
        if (input == "q") {
            for (auto x : users) cout << x << '\n';
        } else users.push_back(input);
    }
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment