Question
can someone help me create this CLASS for visual basic? A class is created which has a property balance, a subtraction sub, and an addition
can someone help me create this CLASS for visual basic?
A class is created which has a property balance, a subtraction sub, and an addition sub.
The class is created separate from the class form.
On the form load, the user is prompted with an input box to enter the initial balance.
When the Add button is selected the application verifies a value is entered. If a value is not entered the application presents and error and the program does not continue. If there is a value the program will call the class to add the value to the balance and then display the balance to the user using the appropriate property.
When the Subtract button is selected the application verifies a value is entered. If a value is not entered the application presents and error and the program does not continue. If there is a value the program will call the class to subtract the value to the balance and then display the balance to the user using the appropriate property. The application will not subtract the value from the balance if the balance is < the amount. The user will be notified.
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