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 .
#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;
}
Comments
Leave a comment