In this exercise, you modify the application from Exercise 6. Use Windows to make a copy of the Gross Pay Solution folder. Save the copy in the ClearlyVB2012Chap17 folder. Rename the copy Modified Gross Pay Solution. Open the Gross Pay Solution (Gross Pay Solution.sln) file contained in the Modified Gross Pay Solution folder. Open the designer window.

a. Change the form’s Text property to Payroll Calculator. The application should display the federal tax, the state tax, and the net pay. Add label controls for displaying the three amounts.

b. Open the Code Editor window. Create a function that calculates and returns the federal tax. Also create a function that calculates and returns the state tax. For simplicity, use rates of 25% and 5% for the federal and state taxes, respectively. Calculate the taxes by multiplying the tax rate by the gross pay.

c. Modify the btnCalc_Click procedure to call both functions. The procedure will also need to calculate the net pay, as well as display the federal and state taxes and the net pay. Use the Math.Round method, which you learned about in Chapter 6’s Exercises 15 and 16.

d. Create an independent Sub procedure to clear the calculated results when a change is made to the hours or rate.

e. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!