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. _
-
Solve Problem 3-9 in Chapter 3 to construct a c-chart to monitor late order deliveries at the National Bread Company.
-
Explain the difference in operation between HEVs with parallel and series designs.
-
Colerain Corporation is a merchandising company that is preparing a profit plan for the third quarter of the calendar year. The companys balance sheet as of June 30 is shown below: Colerain...
-
if there is a no seasonal effect, about how big, on average, would you expect the x2 statistic to be (what is the mean of the x2 distribution)?
-
A marketing researcher wants to test the hypothesis that, in the population, there is no difference in the importance attached to shopping by consumers living in the northern, southern, eastern, and...
-
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
-
Computing Amounts on Financial Statements and Finding Financial Information The following information was provided by the records of Elm Tree Apartments (a corporation) at the end of the annual...
-
A capacitor has a plate area of \(0.0045 \mathrm{~m}^{2}\) and a charge of magnitude \(q\) on each plate. The space between plates has been filled with a dielectric that has a bound surface charge of...
-
A capacitor connected to a battery initially holds a charge of \(+q\) on its positive plate and \(-q\) on its negative plate. The electric field between the plates is initially \(\vec{E}\). A...
-
Using Yahoo! Finance (https://finance.yahoo.com), find the actual fiscal fourth quarter 2019 sales (period ending January 31, 2020) for Target Corp. Which of the models that were used in problems 2...
-
Write a Graph and PathFinder client that takes the name of a movie-cast file and a delimiter as arguments and writes a new movie-cast file, but with all movies not connected to Kevin Bacon removed.
-
Write a version of Graph that supports explicit vertex creation and allows self-loops, parallel edges, and isolated vertices. Hint: Use a Queue for the adjacency lists instead of a SET.
-
What are the reasons for segmentation of capital markets?
-
A 20-cm-square vertical plate is heated to a temperature of 30oC and submerged in glycerin at 10oC. Calculate the heat lost from both sides of the plate.
-
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.
-
The Dougherty Furniture Company manufactures tables. In March, the production department had budgeted allocation base (i.e. cost driver) of 4,000 machine-hours. The budgeted manufacturing overheads...
-
Consider the following pseudocode for calculating ab, where a and b are positive integers. 19 FastPower Input: positive integers a and b. Output: ab. return a if b=1 then else c:=b.b...
-
Consider one disk with 2000 cylinders, numbered 0 to 1 999. Assume the current position of head is at cylinder 500. The request queue is given as follows: 103, 80, 1400, 813, 1714, 748, 1500, 1100...
Study smarter with the SolutionInn App