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
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.
Step by Step Solution
3.42 Rating (155 Votes )
There are 3 Steps involved in it
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 2012 ProjectF184B08FC81C45F6A57F5ABD9991F28F Cerruti Project Cerruti ProjectCerruti Projectvbproj 9F3A0D71F7BF48139E14AB212E42AC... View full answer
Get step-by-step solutions from verified subject matter experts
