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...
-
Brite Beverage Company bottles soft drinks into aluminum cans. The manufacturing process consists of three activities: Mixing: water, sugar, and beverage concentrate are mixed. Fllling: mixed...
-
A metal spoon acts approximately as a spherical mirror. The spoon in Figure P24.56 produces an upright image of an object. (a) Is the front of the spoon (the side that would hold soup) facing toward...
-
Present Value and Multiple Cash Flows What is the present value of $2,000 per year, at a discount rate of 10 percent, if the first payment is received 9 years from now and the last payment is...
-
Please do the whole problem. It is just one whole problem but with mutliple question parts. Also make sure I am correct on some of my answers and finish the rest that are not completed thanks...
-
The homogeneous wire ABC is bent into a semicircular arc and a straight section as shown and is attached to a hinge at A. Determine the value of ( for which the wire is in equilibrium for the...
-
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
-
You are given the following information: (i) The current price of stock Y is 30. (ii) Dividends of 1 per unit of stock will be paid in two months and in eight months. (iii) The continuously...
-
Alvarado Company produces a product that requires 5 standard direct labor hours per unit at a standard hourly rate of $12.00 per hour. If 5,700 units used 29,400 hours at an hourly rate of $11.40 per...
-
7. (30 points) You are a teaching assistant (TA) for a new course in the department and you wish to measure the amount of time that students spend engaging with the online resources. Using the Canvas...
-
Mod Clothiers makes women's clothes. It costs $28,000 to produce 5,000 pairs of polka-dot polyester pants. They have been unable to sell the pants at their usual price of $50.00. The company is...
-
In a mid-sized manufacturing company, the annual financial statements were prepared for audit by an external auditing firm. The company\'s finance team had diligently compiled the financial data, and...
-
Explain the meaning of the SMART acronym. In 100-200 words, define what the words "goal" and "success" mean to you. Summarize your thoughts on whether or not the SMART model can help you become a...
-
The Sun approximates a blackbody at 5800 K. (a) Find the wavelength of peak radiance on the per-unit-wavelength basis implicit in Equation 34.2a.
-
Use of the contraceptive Depo Provera appears to triple women's risk of infection with chlamydia and gonorrhea , a study reports today. An estimated 20 million to 30 million women worldwide use Depo...
-
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...
-
Product Weight Sales Additional Processing Costs P 300,000 lbs. $ 245,000 $ 200,000 Q 100,000 lbs. 30,000 -0- R 100,000 lbs. 175,000 100,000 If joint costs are allocated based on relative weight of...
-
The projected benefit obligation was $380 million at the beginning of the year. Service cost for the year was $21 million. At the end of the year, pension benefits paid by the trustee were $17...
-
CVP Modeling project The purpose of this project is to give you experience creating a multiproduct profitability analysis that can be used to determine the effects of changing business conditions on...
Study smarter with the SolutionInn App