Question: In this project, you are asked to implement a program that controls bank accounts for a certain bank. The accounts should be stored in a

In this project, you are asked to implement a program that controls bank accounts for a
certain bank. The accounts should be stored in a data structure that facilitates a set of
operations. The operations will be performed based on the selection of the user (interactive
menu-driven system). The program starts by displaying a menu that allows the user to
perform the following operations:
1. Add a new account. The user will be asked to enter the information of the account
including ID, account type, initial balance, and the name of the owner. The account will
be active by default.
2. Change Owner name of a specific account (ID should be provided followed by the
new Owner name)
3. Change Balance of a specific account (ID should be provided followed by the new
balance)
4. Change Type of a specific account (ID should be provided followed by S if the new
type is Salary, or P is the new type is Surprise)
5. Activate a specific account (ID should be provided)
6. Deactivate a specific account (ID should be provided)
7. Withdraw from a specific account (ID should be provided followed by the amount to
be withdrawn)
8. Deposit to a specific account (ID should be provided followed by the amount to be
deposited)
9. Delete an account (ID should be provided).
10. Display number of chances to win (ID should be provided)
11. Display all information of a specific account (ID should be provided).
12. Display the information of all the accounts (sorted in an increasing order according to
the accounts ID).
13. Exit the program.

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!