Question: You are to write a C++ program that simulates a simple bank. .You are to work individually Include your name in the code comments. Failure

 You are to write a C++ program that simulates a simplebank. .You are to work individually Include your name in the code

You are to write a C++ program that simulates a simple bank. .You are to work individually Include your name in the code comments. Failure to include your name may lead to a grade of zero. .Submit your program to the Learn page for the Lab 10 assignment .The assignment must be submitted by the end of the lab session. Part A: Basic L/O Create a file labl0a.cpp and write a C++ program that prints out the prompt "bank> " and waits for user input. The user can enter the following commands: "deposit", "withdraw", "balance" and "quit". Repeat the prompt after handling each user input If the user selects "deposit", print out "DEPOSIT SELECTED" . If the user selects "withdraw", print out "WITHDRAW SELECTED" If the user selects "balance", print out "BALANCE SELECTED" If the user selects "quit", exit the program bank> deposit DEPOSIT SELECTED bank> withdraw WITHDRAW SELECTED bank> balance BALANCE SELECTED bank> quit Part B: C++ Classes Create a copy of lab10b.cpp adapt your L/O from part 1 to accommodate the following functionality (Note: You will need to create additional files for the class implementation and you will have to create an instance of type Bank in your lab10b.cpp file) Implement a C++ class Bank. Your bank will contain 10 accounts, whose account numbers range from 0 to 9. Bank contains the following public functions (you can choose the return type) deposit(int 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 num You are to write a C++ program that simulates a simple bank. .You are to work individually Include your name in the code comments. Failure to include your name may lead to a grade of zero. .Submit your program to the Learn page for the Lab 10 assignment .The assignment must be submitted by the end of the lab session. Part A: Basic L/O Create a file labl0a.cpp and write a C++ program that prints out the prompt "bank> " and waits for user input. The user can enter the following commands: "deposit", "withdraw", "balance" and "quit". Repeat the prompt after handling each user input If the user selects "deposit", print out "DEPOSIT SELECTED" . If the user selects "withdraw", print out "WITHDRAW SELECTED" If the user selects "balance", print out "BALANCE SELECTED" If the user selects "quit", exit the program bank> deposit DEPOSIT SELECTED bank> withdraw WITHDRAW SELECTED bank> balance BALANCE SELECTED bank> quit Part B: C++ Classes Create a copy of lab10b.cpp adapt your L/O from part 1 to accommodate the following functionality (Note: You will need to create additional files for the class implementation and you will have to create an instance of type Bank in your lab10b.cpp file) Implement a C++ class Bank. Your bank will contain 10 accounts, whose account numbers range from 0 to 9. Bank contains the following public functions (you can choose the return type) deposit(int 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 num

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!