Question
Create a C# forms program for a banking application. Your program will include an array of Account objects. The Account class should specify; An integer
Create a C# forms program for a banking application.
Your program will include an array of Account objects.
The Account class should specify;
An integer accountID instance variable
A decimal balance instance variable
Properties to get and set those instance variables
A withdraw method which deducts an amount from the balance
A deposit method which adds an amount to the balance.
The following program behavior is required
1. When the Create Account Button is clicked, the program creates an account with an initial balance from the Amount text box. It ignores whatever is in the Account ID text box and displays a new Account ID in that box.
2. When the Execute Button is clicked, the program adjusts the balance for the account specified in the Account ID text box by the amount in the Amount text box. The deposit and Withdraw buttons determine whether the amount is added or subtracted. If the Balance button is selected, the balance for the specified account is displayed.
3. The program must support 19 simultaneous accounts with account IDs of 1 19
4. A report for all transactions must be displayed in the area below the buttons.
5. The transaction report must be in a different color.
Step 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