C++ Banking System

ASSIGNMENT 1

EMPLOYEES NAME: LISA-RUFARO MAROWA
EMPLOYEES NUMBER: R2013XXXX
COURSE: C++ PROGRAMMING
LECTURER: MR NDLOVHU
FACULTY: BBM&IT 2016

#include <iostream>

using namespace std;
    //BANKING SYSTEM QUESTION
    //withdrawals or deposits or transfers money
    //bank charges for withdrawals are 1% of the total withdrawal amount within the bank and a flat fee of 4 dollars from the ATM
    //withdrawal limit $5000
    //transfers a maximum charge of $30 and charged 1.5%
    //cannot tranfer or withdraw more than they have
    //should display a receipt of previous bank balance, transaction details and current balance ARRAY TEMP

int atm(double bal)
{
    char x,AccNum;
    double withdrawBal,DepoBal,TransBal,charge=4.00,tcharge;
    double check,limit,prevBal=bal;
    t:
    cout << endl<<endl<< "Press W to Withdraw" << endl;
    cout << "Press D to Deposit" << endl;
    cout << "Press T to Transfer" << endl;
    cout << "Press R to Display Receipt" << endl;
    cout << "Press E to Exit"<< endl;

    cin>> x;

    switch(x)
    {
    case 'W':
        cout << "Enter the Amount You Wish to Withdrawal" << endl<<endl;
        cin >> withdrawBal;
        check =withdrawBal+charge;
        limit = 5000.00;
        if(check>bal)
        {
            cout<< "YOUR HAVE INSUFFIECIENT FUNDS"<<endl;
            goto t;
        } else
        if (check<bal and check < limit)
        {
            prevBal= bal;
            bal=bal-check;
            cout<< "You Have A Remaining Balance of : /t $"<<bal<<endl;
        } else
        {
            cout<< "YOUR HAVE ENTERED AN AMOUNT ABOVE LIMIT"<<endl;
            goto t;
        }

        break;

    case 'D':
        cout << "Enter The Amount your wish to Deposit " << endl<<endl;
        cin >> DepoBal;
        prevBal=...