The Login And New Account Feature Are Not Working Properly. I Wanted To Know How To Fix This Because Every Time I Try To Login Or Create An Account It Tells Me Login Failed. #include #include #include #include Using Namespace Std; Class Howard_COP2513_F1601 { Public: Char UserInput; Char UserInput2; String Id; String Password; String ID; String PASSWORD; …

The Login And New Account Feature Are Not Working Properly. I Wanted To 
Know How To Fix This Because Every Time I Try To Login Or Create An Account 
It Tells Me Login Failed. #include #include #include #include Using 
Namespace Std; Class Howard_COP2513_F1601 { Public: Char UserInput; Char 
UserInput2; String Id; String Password; String ID; String PASSWORD; ...

Transcribed Text:
Question: The login and new account feature are not working properly. I …
(20 bookmarks)
The login and new account feature are not working properly. I wanted to know how to fix this because every time I try to login or create an account it tells me login failed. #include #include #include #include using namespace std; class Howard_COP2513_F1601
public:
char userInput; char userlnput2; string id; string password; string ID; string PASSWORD; double DEPOSIT; double WITHDRAW; double OLDBALANCE; double NEW BALANCE; Howard_COP2513_F16010
userlnput =”; userinput2 =”; id = “?”; password = “?”; ID = “?”; PASSWORD = “?”; DEPOSIT = 0.00; WITHDRAW = 0.00; OLDBALANCE = 0.00; NEW BALANCE = 0.00;
void bankOption
cout << "Please select an option:" << endl; cout << "I -> Login” Create New Account” << endl; cout << "q-> Quit” << endl; cin >> userInput; if (userlnput == T || L’)
login(;
else if (userInput == ‘<|| 'C') createAcnt(); else if (userInput == 'q' | '0') quito; void moneyOption() cout << "d -> Deposit Money” << endl; cout << "W -> Withdraw Money” << endl; cout << "r -> Request Balance” << endl; cout << "q-> Quit” > userInput2; if (userlnput2 == ‘d” || userInput2 == ‘D’)
dMoney0;
else if (userInput2 == ‘w’ || userlnput2 == ‘W’)
wMoneyo;
else if (userInput2 == ‘r’ || userlnput2 == ‘R’)
rBalance();
else if (userInput == ‘q’ || ‘Q’)
quit();
fflush(stdin);
int login
cout << "Please enter your user id:"<> ID; cout << "Please enter your password: " << endl; cin >> PASSWORD; if (id == ID && password == PASSWORD)
cout << "Access Granted -"<< ID << endl; moneyOption(); else cout<<"********" << "LOGIN FAILED!"<<"********" << endl; bankOption(); return 0; int createAcnto cout << "Please enter your user name:"<> ID; cout << "Please enter your password: " > PASSWORD; ID = ID; PASSWORD = PASSWORD; bankOption0; return 0;
int quito
cout << "Thanks for banking with COP2513.F16," << ID<<"!" << endl; system("pause"); return 0; int d Money cout << "Amount of deposit:" << endl; cin >> DEPOSIT; OLDBALANCE = NEW BALANCE; NEW BALANCE = OLDBALANCE + DEPOSIT; moneyOption(); return 0;
int wMoney
cout << "Amount of withdrawal:" << endl; cin >> WITHDRAW; OLDBALANCE = NEW BALANCE; NEW BALANCE = OLDBALANCE – WITHDRAW; moneyOption(); return 0;
intrBalance
cout << "Beginning balance:"<< "$" #include #include #include using namespace std; class Howard_COP2513_F1601 public: char userinput; char userlnput2; string id; string password; string ID; string PASSWORD: double DEPOSIT; double WITHDRAW; double OLDBALANCE; double NEW BALANCE; Howard_COP2513_F16010 userinput ='); userInput2 =''; id = "?"; password = "?"; ID = "?"; PASSWORD = "?"; DEPOSIT = 0.00; WITHDRAW = 0.00; OLDBALANCE = 0.00; NEW BALANCE = 0.00; void bankOption() cout << "Please select an option: " << endl; cout << " -> Login” << endl; cout << "C -> Create New Account” Quit” < endl; cin >> userInput; if (userlnput == T || userlnput == ‘L’)
login();
else if (userInput == ‘<' || userlnput == 'C') create Acnto; else if (userInput == 'q' || userInput == 'Q") quito; void moneyOption cout<<"d -> Deposit Money” << endl; cout << "W -> Withdraw Money” << endl; cout << "r-> Request Balance” << endl; cout << "q-> Quit” << endl; cin >> userlnput2; if (userInput2 == ‘d’ || userInput2 == ‘D’)
dMoneyO;
else if (userInput2 == ‘w’ || userInput2 == ‘W’)
wMoney0;
else if (userInput2 == ‘r’ || userlnput2 == ‘R’)
rBalance();
else if (userInput2 == ‘q’ || userlnput2 == ‘Q”)
quito;
fflush(stdin);
int login
cout << "Please enter your user id:"<> id; cout << "Please enter your password:"<> password; if (id == ID && password == PASSWORD)
cout << "Access Granted - " << ID << endl; moneyOption(); else cout << "********"<< "LOGIN FAILED!" <<"********* << endl; bankOption(); return 0; int createAcnto cout << "Please enter your user name:"<> id; cout << "Please enter your password: "<> password; ID = id; PASSWORD = password; bankOption(); return 0;
int quito
cout << "Thanks for banking with COP2513.F16," << ID << "!"< endl; system("pause"); return 0; int d Money) cout << "Amount of deposit: " << endl; cin >> DEPOSIT; OLDBALANCE = NEW BALANCE NEW BALANCE = OLDBALANCE + DEPOSIT; moneyOption0; return 0;
int wMoneyo
cout << "Amount of withdrawal:" > WITHDRAW;
OLDBALANCE = NEW BALANCE; NEW BALANCE = OLDBALANCE – WITHDRAW; moneyOption0; return 0;
int rBalance
cout << "Beginning balance:" << "$" << fixed << setprecision(2) << OLDBALANCE << endl; cout << "Deposit amount: "<"$"< Currently on Docum Sat 26 Nov 02-07 ANANDA KUMAR THUMMAPUDI Q cheggc 0 X31 OPP-out Macintosh CPP AnandakumarTh e S Howard Password.co Macintosh chCP9 Anandakumar Thu i s / but Please select an option: OLDALANCE EricalANCE - 1.00 Đề unted void barution Account endl; nd Please enter your en cout "Please select an options cout Lone end cout Create Account a cout oc" => Duito endt: can userInput; 11 user input wi ll serinput
Please enter your password:
‘L)
Please select an option

Create
Account
Login : else if (userInput
Il vertrout
C
Please enter your
T LE:
creatent);
Piesenter
a
rd
else if (user input =
Iluser input =
0
Git(:
void moneyOption
(
int login
e l
cout “Please enter your ser d cin > id; cout << "Please enter your password: if (id - ID password PASSWORD) endl; ID endl; cout Access Granted - moneyOption); else cout < bankoption); < LOGIN TAILED csendt return; int create cout << "Please enter your username: cindi endl;

Leave a Reply

Your email address will not be published. Required fields are marked *