I try to do an Atm STatement But something is wrong and I don't know how to fix it can someone help me.
class Accounts;
Private:
string firstName;
string lastName;
float balance;
Public:
Account (string, string, float);
void depositFunds(float);
void withdrawFunds(float);
float getBalance();
};
using namespace std;
int main()
{
int a;
int selection;
float balance;
balance = amt;
float withdraw;
float deposit
string firstame, lastName;
Accounts = savings, checking, loan;
double Loan_Amt;
cout << " Welcome to Customer Bank Statement " << endl << "By Sandra Allen-Holt" << endl << "this is going to get the customer names: " << endl;
Account a(Kisha Fuentes, Mark Allen, Ronnie Holt, Ashley Holt);
while (selection !=1){
cout << " Please make a selection: " << endl;
cout << "1) Display current Accoun balance:" << endl;
cout << "2) Deposit money: " << endl;
cout << "3) withdraw money:" << endl;
cout << " Exit " << endl;
cin >> selection;
if (selection == 1){
cout << " You have " << a.getBalance() << " dollars in you account.\n" << endl;
system (" pause ");
}
else if (selection ==2){
cout << " How much would you like to deposit:" << endl;
cin >> amt;
cout << " You've successfully deposited: $ " << amt << " in your new balance is: $ " << a.getBalance()+ amt << " \n\n" << endl;
system (" pause ");
else if (selection == 3){
cout << " How much would you like to withdraw: " << endl;
cin >> amt;
if (a.getBalance() >= amount){
cout << " You've successfully withdrawn: $ " << amt << " \n\n " << endl;
system (" pause")
}
else {
cout << " You don't have enough money for that! If \n" << endl;
else if ( selection==4){
cout << endl << endl << " Thank you for using Chase Bank 1.0 !!!\n\n" << endl;
selection++
system ("pause");
}
else{
cout << " only numerical selection 1-4 work ... pleases try again.\n" << endl;
system(" pause ");
}
do
{
cout << " The loan is for 3 account: " << " Display_Approval " << approved << endl;
if ("Loan_Amt < 2000") && ("Annual_Income <= 60,000"));
if ("Loan_Amt >= 60,000")||< "10,000")&& ("annual_income <= 60,000"));
cout << endl << endl;
cout << "Display_Aprove" << disapproved << endl;
return0;
}}
system("PAUSE");
return EXIT_SUCCESS;
}