Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 quitStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started