Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the code i have attached below please assit to complete by having an ATM banking system that is able toallows a user to do
Using the code i have attached below please assit to complete by having an ATM banking system that is able toallows a user to do the following: Login using their id and password. Quit the program.Now if login was successful the user will be able to do the following you can add in other functions as well: i Dashboard: Upon login the user should be presented with a dashboard that displays the login users name. The dashboard should include menu like withdrawal, transfer, checking balance or any other functions you would like to be included in the system. ii Functions Withdrawal Function: Allow the user to withdraw money from the machine with enough balance in the account. Transfer Function: All the user to interbank transfer or to other banks account. Check Balance Function: Allow the user to check the balance in the account. To generate statement or slip for the transaction performed. The program should use appropriate methods, such as Arrays or Structures to store the user information. Appropriate functions need to be used to manage program flow and data manipulation. The program should also have a menu system to allow the user to select which action to perform, and continue to display the menu until the user chooses to exit the program. Your program should be wellstructured, use appropriate error handling, and be able to handle a maximum of products. The program should also validate user input to ensure that the user enters valid values for each field. MUST GET USER INFORMATIONATLEAST FROMTXT FILE #include
#include
using namespace std;
#define S
struct User
int id;
char name;
string password;
double balance;
string transactionHistory;
;
void displaymenuUser acc;
void loginUser acc;
void withdrawUser acc;
void transFUser acc;
void chckBalanceUser acc;
void generateSlipUser acc;
void quitUser acc;
main
struct User acc;
ifstream read;
read.openacctxt;
int i;
for i;i;i
readacciid;
read.getlineacciname,;
readaccipassword;
readaccibalance;
readaccitransactionHistory;
read.close;
int option, withdrawal, transfer, checkbalance;
do
cout
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started