Answered step by step
Verified Expert Solution
Link Copied!

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: 1) Login using their id and password. 2) 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 inter-bank 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 well-structured, use appropriate error handling, and be able to handle a maximum of 100 products. The program should also validate user input to ensure that the user enters valid values for each field. MUST GET USER INFORMATION(ATLEAST 3 FROMTXT FILE) #include
#include
using namespace std;
#define S 3
struct User
{
int id;
char name[50];
string password;
double balance;
string transactionHistory;
};
void displaymenu(User acc[]);
void login(User acc[]);
void withdraw(User acc[]);
void transF(User acc[]);
void chckBalance(User acc[]);
void generateSlip(User acc[]);
void quit(User acc[]);
main()
{
struct User acc[3];
ifstream read;
read.open("acc.txt");
int i;
for (i=0;i<3;i++)
{
read>>acc[i].id;
read.getline(acc[i].name,50);
read>>acc[i].password;
read>>acc[i].balance;
read>>acc[i].transactionHistory;
}
read.close();
int option, withdrawal, transfer, check_balance;
do
{
cout<<"---------------------------------------------------"<>option;
}while(option <=0|| option >4);
switch (option)
{
case 1:
//withdraw(acc); break;
case 2:
//transF(acc); break;
case 3:
//chckBalance(acc); break;
case 4:
cout<<"Thank you for using Maybank. Goodbye!"<

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions