Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a Checking Account program using C#, creating classes and objects as need

ID: 3790225 • Letter: C

Question

Create a Checking Account program using C#, creating classes and objects as needed. Make sure you include lots of comments. Using the forms application within C#:

The output should show the information laid out in column form with the appropriate column names from the list below. Each bank customer account should show: [customer name (last name, first name), address, DOB, SS#, email address, telephone number, account number, pin number, and (AV) activation column which will indicate Y or N for whether the pin has been activated, deposits column, withdrawals, transfers, automatic payments]. Fictional people of course

Explanation / Answer

class bank

{

            static int acc_no;

            int acc;

            float bal;

            public:

            int open_ac(float b)

            {

                        acc_no++;

                        acc=acc_no;

                        bal=b;

                        return(acc_no);

            }

            void deposit()

            {

                        int am;

                        cout<<"Enter amount: Rs.";

                        cin>>am;

                        bal=bal+am;

                        cout<<"Amount Deposited! New Balance: Rs. "<

            }

            void withdrawl()

            {

                        int am;

                        cout<<"Enter amount: Rs.";

                        cin>>am;

                        if(bal<(am+500))

                                    cout<<"Sorry! transaction can not be processed. Balance not available.";

                        else

                        {

                                    bal=bal-am;

                                    cout<<"Amount withdrawn.";

                                    cout<

                        }

            }

};

int bank :: acc_no=99;

void main()

{

            int c,x=0,b,id;

            clrscr();

            bank cust[5];

            cout<<"BANK DATABASE";

            do

            {

                        cout<<" 1. Create A/c. 2. Deposit 3. Withdrawl 4. Exit";

                        cout<<" Enter your choice:";

                        cin>>c;

                        switch(c)

                        {

                                    case 1:

                                    cout<

                                    cin>>b;

                                    id=cust[x].open_ac(b);

                                    x++;

                                    cout<<"You a/c is opened! A/c No. "<

                                    break;

                                    case 2:

                                    cout<<"Enter A/c No. for deposit:";

                                    cin>>id;

                                    if(id>(x+99))

                                    {

                                                cout<<"Wrong A/c no.";

                                                break;

                                    }

                                    cust[id-100].deposit();

                                    break;

                                    case 3:

                                    cout<<"Enter A/c No. for withdrawl:";

                                    cin>>id;

                                    if(id>(x+99))

                                    {

                                                cout<<"Wrong A/c no.";

                                                break;

                                    }

                                    cust[id-100].withdrawl();

                                    break;

                                    case 4:

                                    exit(1);

                                    break;

                        }

            }while(x<=4);

            getch();

}