In this exercise, you will remove the Math.Round function from the payroll application created in the lesson;

Question:

In this exercise, you will remove the Math.Round function from the payroll application created in the lesson; doing this will allow you to observe the “penny off” error. Use Windows to make a copy of the Cerruti Solution folder. Rename the copy No Rounding Cerruti Solution. Open the Cerruti Solution (Cerruti Solution.sln) file contained in the No Rounding Cerruti Solution folder. Open the Code Editor window. The Math.Round function appears in three statements in the btnCalc_Click procedure. Type an apostrophe at the beginning of each of the three statements, making them into comments. Save the solution and then start the application. Test the application by clicking 38.5 in the Hours list box and 10.50 in the Rate list box. Click the Calculate button. What is wrong with the net pay amount? Stop the application and close the solution.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: