Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OVERVIEW Please write an example of an application which will help an organization calculate the cost of expenses. Write a Visual Basic program to implement

OVERVIEW Please write an example of an application which will help an organization calculate the cost of expenses. Write a Visual Basic program to implement the budget application in the diagram below. The program should have a class called BudgetReceipts that keeps track of the balance and provides the ability to add to the income and subtract to the expenses.

The application is designed with a two listboxs named lstIncome and lstExpenses, two textboxes named txtAmount and txtIncome, two buttons named btnIncome and btnExpense, and a close button named btnClose.

INSTRUCTIONS 1. Form Setup a. Design the screen to look like the one below. b. Use appropriate naming conventions for controls and variables. c. Include access keys for all buttons. d. The user will not be directed to the net balance field. e. The balance text box will be read only. f. Lock all controls. g. All values must be formatted in currency h. On the form load, the user is prompted with an input box to enter the starting balance for the balance sheet. The user is prompted until a value is entered. i. The initial balance is saved by the class.

2. Class a. A class is created which uses a get property for the balance, a sub that subtracts the expenses, and sub that controls the income. 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 income sub will be used to add to the income e. The expenses sub will be used to subtract the expenses

3. Income Button a. When the Income button is selected the application verifies a value is entered in the amount text box. b. The income button prompts the user for the description of the income the amount is for. c. If a value is not entered the application presents and error and the program does not continue. d. The program will call the class to add the value to the balance and then display the total balance to the user using the appropriate property. e. The income button presents the user with a description of the value and the value amount f. The textbox amount is cleared

4. Expense Button a. When the expense button is selected the application verifies a value is entered in the amount text box. 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 subtract the value to the balance and then display the balance to the user using the appropriate property. d. If the balance will go negative the user will be prompted with a message box but the program will continue. e. The income button presents the user with a description of the value and the value amount f. The textbox amount is cleared

Current Form Design Screenshot

image text in transcribed

Expected Application Outcome

image text in transcribed

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

6. Effectively perform the managers role in career management.

Answered: 1 week ago