PROGRAMMING ASSIGNMENT 6 INSTRUCTIONSYou have been tasked to write an application which will help your organization calculate the
monetary donations and expenses. Write a Visual Basic program to implement the cash
register in the diagram below. The program should have a class called CashRegister that keeps
track of the balance and adds and subtracts. The class should not permit a negative balance
since your organization would be fined heavily if you spend more than you take in. If the user
tries to subtract a number that would result in a negative balance, the system should produce a
messagebox indicating that the transaction would result in a negative balance, which is not
permitted.
Requirements:
1. Form Setup
a. You must save your project using your initials in the name** This is required and
the project will not be accepted otherwise.
b. Design your screen to look like the one below.
c. The background image of the form will be set to an appropriate image of your
choice.
d. Use appropriate naming conventions for controls and variables.
e. Include shortcuts and access keys for each menu item (such as Ctrl-A for Add,
Ctrl-E for Exit)
f. The user will not be directed to the balance field.
g. The balance text box will be read only.
h. Lock all controls.
i. All values must be formatted in currency
j. On the form load, the user is prompted with an input box to enter the initial
balance.
k. The initial balance is saved by the class
2. Class
a. A class is created which has a property balance, a subtraction sub, and an
addition sub.
b. The class is created separate from the class form.
c. The property balance will be called to display the balance each time
d. The addition sub will be used to add the number entered
e. The subtraction sub will be used to subtract the number entered
f. The subtract sub will not subtract the value from the balance if the balance is <
the amount. The user will be notified.
3. Add Button
a. When the Add button is selected the application verifies a value is entered.
b. If a value is not entered the application presents and error and the program does
not continue.
c. 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.
4. Subtract Button
a. When the Subtract button is selected the application verifies a value is entered.
b. If a value is not entered the application presents and error and the program does
not continue.
c. 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.
This assignment is due by 11:59 p.m. (ET) on Monday of Module/Week 6.