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...
-
A marketable security is initially classified as a trading security, an available - for - sale security, or a held - to - maturity debt security. Subsequently, a security can be transferred among...
-
A randomized-block experiment is run with three treatments and four blocks. The three treatment means are \(\bar{y}_{1}=6, \bar{y}_{2 \bullet}=7\), and \(\bar{y}_{3 \bullet}=11\). The total...
-
According to the California Educational Code (www.cde.ca.gov/ (www.cde.ca.gov/ls/fa/sf/peguidemidhi.asp), ls/fa/sf/peguidemidhi.asp), students in grades 7 12 should receive 400 minutes of physical...
-
The head ( pen stock ) is 3 0 meters in Run - of - River Hydro Power Plant as shown in Figure 1 . The typical flow rate of water in the turbine is 2 0 m 3 / s . Express what would be happened in...
-
Choose a Lebanese Company, and answer the following questions: Question 1: Whats next? (Ask yourself if every marketing effort highlights the USP. If it doesnt, dont do it. Or change your messaging...
-
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
-
Arnold Palmer Hospital is studying the number of emergency surgery kits that it uses on weekends. Over the past 40 weekends, the number of kits used was as follows: Number of Kits . Frequency 4...
-
The latest methodology adopted in auditing is the risk-based audit methodologyIn the light of the above statement, answer the following: (a) What is risk-based audit methodology? (b) Why audit risk...
-
Develop a checklist of items to consider in development of the site plan for either the bridge project or the building project.
-
A trader is worried that in spite of substantial increase in sales compared to the earlier year, there is considerable fall in gross profit. After satisfying himself that sales and expenses are...
-
What are some of the reasons schedules need to be shortened?
-
What is the importance of the schedule of values in project financial management?
-
Selected financial data regarding current assets and current liabilities for American Airlines and Delta Airlines are provided as follows: Required: 1. Calculate the current ratio for American...
-
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...
-
Compare life cover end funeral cover stating the advantages and disadvantages of each.
-
What are the change management issues in C 3 solutions?
-
What are 2 key events discussed in the documentary kanyi?
Study smarter with the SolutionInn App