Question: Can you do part B please? . The assignment must be submitted by the end of the lab session. Part A: Basic LO handling each

 Can you do part B please? . The assignment must be

submitted by the end of the lab session. Part A: Basic LO

Can you do part B please?

. The assignment must be submitted by the end of the lab session. Part A: Basic LO handling each user input If the user sclects WITHDRAW SELECTED Then create an array called bank The amay should cuou 10 Implement a C++ class BankAccount depositGint num, int value) This function deposits value dollars into the account with account number num. . withdraw(int num, int value) This function withdraws value dollars from the account with account number balance(int num) This function prints the balance of the account with account number num . . transfer(int numl, int num2, int value). This function transfers value dollars from account with account number numl to account with account number num2 Adapt your LO accordingly: deposit takes 2 parameters. The first parameter is the account number and the second parameter is the dollar amount. withdraw takes 2 parameters. The first parameter is the account number and the second parameter is the dollar amount. Pint out an error message if the amount to be withdrawn exceeds the available balance. balance takes I parameter, which represents the account number. Before any money is deposited into an account, each account has a balance of O transfer takes 3 parameters, which represent the "from" account number, the "to" account number and the dollar amount to be transferred. If the transfer amount exceed the available balance, print out an eror message banko deposit 3 50 banko balance 3 banko balance bank> transfer 3 8 20 bank- balance 3 banko transfer 3 240 Error! Funds e xceeded banko quit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!