Question: C# Assignment help! Create a windows form application with the following specifications: Create a windows form application with the following specifications: 1. The form should

C# Assignment help! Create a windows form application with the following specifications:C# Assignment help! Create a windows form application with the following specifications:

Create a windows form application with the following specifications: 1. The form should display user's account balance and allow the user to withdraw or deposit money to the account Use a label to display user's account balance Use a text box for the amount Use two buttons for withdraw and deposit 2. 3. 4. When user withdraws money, subtract the amount from the balance and display the new balance When user deposits money, add the amount to the balance and display the new balance Make sure to create a class for "Account" with the following information Fields: Balance (Read Only Field) Methods i. Method to deposit ii. Method to withdraw iii. Class should have a constructor to set the Balance field initially 5. 6. 7. The form event handlers for each button should be interacting with the account object to get the account balance and accommodate withdraw and deposit actions Withdraw should throw ArgumentException if the amount is more than the balance. Make sure to catch this exception. When form is initialized, create an instance of the "Account" class and set its initial balance to $1000. Display this balance on the form Notes: You may want to declare an instance of the Account class as a class level variable (instance variable) to have it available in your methods Form1 Balance Amount 100 $1,000.00 Withdraw Deposit

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!