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
Get step-by-step solutions from verified subject matter experts
