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.
Step by Step Answer:
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 2012 ProjectF184B08FC81C45F6A57F5ABD9991F28F Cerruti Project Cerruti ProjectCerruti Projectvbproj 9F3A0D71F7BF48139E14AB212E42AC...View the full answer
Students also viewed these Computer science questions
-
In this exercise you will prove Theorem 9.8.2. a. Prove that the joint p.d.f. of the data given the parameters 1, 2, and can be written as a constant times b. Multiply the prior p.d.f. times the...
-
What is wrong with this road sign. Memphis 7 mi (11.263km)?
-
What is wrong with this argument? Let H(x) be "x is happy." Given the premise xH(x), we conclude that H(Lola). Therefore, Lola is happy.
-
Let z(k) denote the k-year continuously compounded zero-coupon yield for the current term structure. You are given that z(1) = 0.035, z(2) = 0.041, z(3) = 0.045, z(4) = 0.049, z(5) = 0.051, z(6) =...
-
Let a X, s < r, V = {x X : s < p(x, a) < r), and E = {x X : s < p(x, a) < r). Prove that V is open and E is closed. _
-
Determine the following: (a) A $100,000, 182-day Province of New Brunswick Treasury-Bill was issued 56 days ago. What will it sell at today to yield the purchaser 4.88%? (b) A $2500 promissory note...
-
1. Consider the pressures for small versus large inventories. Which situation does Crayola seem to fit, and why? 2. Explain how both independent and dependent demand items are present at Crayola. 3....
-
Black Hills Corporation is a diversified energy corporation and a public utility holding company. The following gives the firm's earnings per share and dividends per share for the years 2000-2004...
-
erit Industries has $180,000 to invest. The company is trying to decide between two alternative uses of the funds. The alternatives are: Project A Project B Cost of equipment required $ 180,000 $ 0...
-
Table 2.10 presents data on mean SAT reasoning test scores classified by income for three kinds of tests: critical reading, mathematics, and writing. In Example 2.2, we presented Figure 2.7, which...
-
Which of a forms events is triggered when you click the Close button on its title bar? a. Close b. CloseForm c. FormClose d. FormClosing
-
The items listed in the Call statement are referred to as _____________________. a. Arguments b. Parameters c. Passers d. None of the above
-
(a) What are Harry and Belindas major sources of risk from home and automobile ownership, and what is the potential magnitude of loss from each? (b) Given the choices listed in Step 3 of the...
-
Q13. The probability that Ryan will roll a three using a standard die is 1/6. Let Y = number of times that Ryan has to roll a die in order to roll the first three. What is the expected value for Y?...
-
1. The following are data for two IT projects for a new database system. Prepare a spreadsheet for two projects, using the following data. Amounts are in thousands of dollars. Calculate the NPV for...
-
The Matsui Lubricants plant uses the weighted-average method to account for its work-in-process inventories. The accounting records show the following information for a particular day: Beginning WIP...
-
James Cook, a production department worker, is paid on hourly basis at a rate of $15 per hour. James works 40 hours per week. Any time James works over 40 hours, it is considered as overtime and he...
-
You just started working as a Health Service Manager within one of the following healthcare industries. First, choose an industry below to discuss the questions that follow: Ambulatory Surgery center...
-
Modify the servlet for Exercise 11.5 to count the number of visitors and then display that number for each visitor. Data from exercise 11.5 Write the markup document to create a form that collects...
-
As water moves through the hydrologic cycle, water quality changes are common because of natural phenomena or anthropogenic pollution. Using Figure 11.1, describe how water-quality changes occur...
-
Redo the previous problem, but providing an implementation within the class LinkedPositionalList that does not create or destroy any nodes.
-
Suppose we want to extend the PositionalList interface to include a method, positionAtIndex(i), that returns the position of the element having index i (or throws an IndexOutOfBoundsException, if...
-
Describe how to implement the queue ADT using two stacks as instance variables, such that all queue operations execute in amortized O(1) time. Give a formal proof of the amortized bound.
-
Difference between Operating Leverage and Financial Leverage
-
bpmn diagram for misc purchases
-
You have $55,000. You put 15% of your money in a stock with an expected return of 10%, $38,000 in a stock with an expected return of 18%, and the rest in a stock with an expected return of 22%. What...
Study smarter with the SolutionInn App