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. _
-
A fisherman has netted a torpedo ray. As he picks it up, this electric fish creates a short-duration 50 V potential difference between his hands. His hands are wet with salt water, and so his skin...
-
The promoter of the film venture offers a new investment designed to attract reluctant investors. One unit of this new investment has a payoff of three times the original investment if the venture is...
-
Collyer Products Inc. has a Valve Division that manufactures and sells a standard valve as follows: The company has a Pump Division that could use this valve in the manufacture of one of its pumps....
-
Windsor Advertising was founded in January 2013. Presented below are adjusted and unadjusted trial balances as of December 31, 2020. WINDSOR ADVERTISING TRIAL BALANCE DECEMBER 31, 2020 Unadjusted Dr....
-
Gruden Company produces golf discs which it normally sells to retailers for $7 each. The cost of manufacturing 20,000 golf discs is: Materials ...... $ 10,000 Labor ........ 30,000 Variable overhead...
-
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
-
Let a = [1, -3, 5], b = [4, 0, 8], c = [-2, 9, 1]. Find: a (b - c), (a - b) c
-
What are the three different perspectives that performance measurement can take in a supply chain environment?
-
Name and briefly describe the three main steps of the risk management process.
-
Do you believe that all slips of the tongue, conversational faux pas, and unintentional nonverbal behaviors should be considered communication? Why or why not? What examples can you provide to...
-
Hay Minion Inc. is an agricultural machinery manufacturer. With agriculture becom-ing more and more industrialized in many markets, Hay Minions customer base is increasingly marked by big...
-
What are the main factors that influence a firms cost of capital? Explain, why a companys cost of capital is not independent of its supply chain partners.
-
Snow Rides manufactures snowboards. Richard May, the CEO, is trying to decide whether to adopt a lean thinking model. He expects that adopting lean production would save $105,000 in warehousing...
-
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 quality-control department of Starr Communications, the manufacturer of video-game DVDs, has determined from records that 1.6% of the DVDS sold have video defects, 0.9% have audio defects, and...
-
What is the half-life in hours of procainamide in a patient whose total clearance is estimated to be 20 L/h and the volume of distribution is 120 L assuming one compartment, open model, first- order...
-
1. The technologies, such as ChatGPT, has been launched before introducing even a baseline of safety measures. This goes back to trade-offs that companies make, and people just watch the impact from...
Study smarter with the SolutionInn App