Answered step by step
Verified Expert Solution
Link Copied!

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:image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions