Open the Kerry Sales Solution (Kerry Sales Solution.sln) file contained in the VB2015 Chap11Kerry Sales Solution folder.
Question:
Open the Kerry Sales Solution (Kerry Sales Solution.sln) file contained in the VB2015\ Chap11\Kerry Sales Solution folder.
a. Open the Payroll.vb file. Create a base class named Bonus. The class should contain two Public properties: a String property named SalesId and a Double property named Sales. Include a default constructor and a parameterized constructor in the class. Also include a GetBonus method (function) that calculates a salesperson’s bonus using the following formula: sales * 0.05.
b. Create a derived class named PremiumBonus. The derived class’s GetBonus method should calculate the bonus as follows: sales * 0.05 + (sales – 2500) * 0.01. Be sure to include a default constructor and a parameterized constructor in the derived class.
c. Complete the btnCalc_Click procedure, using the comments as a guide, and then test the application appropriately.
Step by Step Answer:
a b c Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Kerry Sales ...View the full answer
Students also viewed these Computer science questions
-
Create a stored procedure named prc_new_rental to insert new rows in the RENTAL table. The procedure should satisfy the following conditions. a. The membership number will be provided as a parameter....
-
Create a stored procedure named prc_new_detail to insert new rows in the DETAILRENTAL table. The procedure should satisfy the following requirements. a. The video number will be provided as a...
-
Create a VB application that lets the user enter his or her weight (in pounds) and height (in inches). If the user fails to enter numeric values, display an appropriate error message and do not...
-
The Commerce Department reported that in December 2015, retail sales rose by 0.2, net exports decreased, inventories held by businesses rose by 0.1 percent, and total sales by businesses fell by 0.6...
-
A friend says that up above the atmosphere, in space shuttle territory, Earth's gravitational field is zero. Explain how your friend has a misconception, and use the equation for gravitational force...
-
In groups, debate the proposition: Employees are an expense, and their numbers should be reduced.
-
Tax-deductibility of clean-up costsasset or liability? The IRS [US Inland Revenue Service] reversed its position on the accounting treatment of environmental clean-up costs in Revenue Ruling 94-38....
-
You are the manager of a firm that receives revenues of $ 40,000 per year from product X and $ 90,000 per year from product Y. The own price elasticity of demand for product X is 1.5, and the cross-...
-
See photo attached for question Homework: MT217 M5 Competency Assessment Score: 0 of 5 pts Problem 7.LO4.16 15 of 20 (17 complete) Save HW Score: 80%, 80 of 100 pts Question Help AU.S. Government...
-
Determine taxable income in each of the following independent cases. In all cases, the company was very profitable in all years prior to 2017 and it had retained earnings of $1,000,000 at the end of...
-
A base class contains a method named GetTax. Which of the following procedure headers can be used in the base class to indicate that a derived class can provide its own code for the method? a. Public...
-
A constructor is ___________________. a. A Function procedure b. A Property procedure c. A Sub procedure d. Either a Function procedure or a Sub procedure
-
The liquid level in a reboiler of a steam-heated distillation column is to be controlled by adjusting the control valve on the steam line, as shown in figure. The process transfer function has been...
-
Assume you are the new global manager for Continental Cruise Ltd, which sails to popular European and Asian cities. You receive the quarterly profit and loss statement reports and notice that it is...
-
A company is considering investing in a new machine to replace an old machine. The estimated operating costs of the two machines per year are: Old Machine New Machine Depreciation $64,000 $96,000...
-
Carnival Co. uses aging of accounts receivable method. At the end of year 2011, Carnival estimated that it needed $500,000 in allowance for doubtful account. Carnival had a previous credit balance of...
-
On December 1, 2007 the Forrest Company issued bonds having a face value of $1,000, each maturing in 30 years and having a coupon rate of 6% per annum, paid semi-annually. On December 1, 2013 the...
-
WHAT'S MORE Activity 1 ESSAY: Choose five (5) statutory benefits of a wage earner. Discuss each and give examples. You will be graded based on the following cnteria Areas of Assessment ideas 1768.63...
-
The following selected information is available for Canfor Corporation, a British Columbia-based forest products company, for three fiscal years (in $ millions): Instructions (a) Calculate the...
-
Evenflow Power Co. is considering a new project that is a little riskier than the current operations of the company. Thus, management has decided to add an additional 1.5% to the company's overall...
-
Suppose Host A sends two TCP segments back to back to Host B over a TCP connection. The first segment has sequence number 90: the second has sequence number I lo. a. How much data is in the first...
-
Repeat R12, hut now with the Selective Repeat Java applet. How are Selective Repeat and Go-Back-N different? Data From Problem R12 Visit the Go-sack-N Java applet at the companion Web site. a. Have...
-
Consider a TCP connection between Host A and Host B. Suppose that the TCP segments traveling from Host A to Host B have source port number x and destination port number y. What are the source and...
-
Critically evaluate the interplay between feedback skills, communication, listening, and assertiveness skills. How do these skills complement each other in the context of providing effective...
-
Chandler Packaged Treats (CPT) sells a specialty pet food to pet stores. CPT management prides itself on its scientific management methods. Applying those methods, the controller estimates the...
-
Several large shelters for the homeless in neighboring cities have closed down due to funding problems. With the warm summer weather, there has been a sharp increase in the transient population. Your...
Study smarter with the SolutionInn App