Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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 DepositStep 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