Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DOT NET Expert

Assignment

For this lab you are going to make an enhancement to the iLabs you have been working on this session. You will be adding two classes to your UML and developing those classes in C#. You will also add code to the Main() to demonstrate that the new classes work as expected.

The first class you'll add is Commissioned. This represents a commissioned employee. This class is derived from Employee. There are two attributes that are both double: commissionRate and salesAmount. The class should include a default constructor and an overloaded constructor similar to what you did for Hourly and Salaried. The class should also include properties for each attribute, a ToString(), a CalculateWeeklyPay() and a CalculateNetPay(). You will need to set the Annual Salary equal to salesAmount * commissionRate. HINT: look at the properties in the Hourly class for guidance. The weekly pay will be AnnualSalary/52. The TAX_RATE constant will be .75 to calculate the net pay. There is no max for commissionRate or salesAmount however the min is 0.

The second class you'll add is CommissionedPlusBase. This represents a commissioned employee who earns a base salary in addition to commission for sales. This class is derived from Commissioned. There is one attribute that is a double: baseSalary. The class should include a default constructor and an overloaded constructor similar to Commissioned. The class should also include a property for the attribute, a ToString(), a CalculateWeeklyPay() and a CalculateNetPay(). You will need to set the Annual Salary equal to baseSalary + (commissionRate*salesAmount). See HINT above. The weekly pay will be AnnualSalary/52. The TAX_RATE constant will be 75 to calculate the net pay. There is no max for baseSalary however the min is 0.

In the Main, add 2 elements to you array, one for each new class. Prompt the user for values and display the results just like the other classes.

DOT NET, Programming

  • Category:- DOT NET
  • Reference No.:- M92053528
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in DOT NET

Scenariouser modelling inc would like to organize a series

Scenario User Modelling Inc. would like to organize a series of conferences focusing on research topics in the area of user adaptive systems and personalization. They need to organize annual conferences for researchers a ...

Assignment specificationthis assignment is split into two

ASSIGNMENT SPECIFICATION This assignment is split into two documents. 1. Assignment Specification. This document contains the specification for what you will be required to do. 2. Assignment Addendum. This document conta ...

Summarythis assessment requires you to develop a simple

Summary This assessment requires you to develop a simple text editor with a basic offline user login. It is a windows application that will allow new uses to be added, existing users to login, and to create/save/edit tex ...

Casewe sell pdfs from our site and pdfs can be ordered from

Case We sell pdf''s from our site and pdfs can be ordered from the site by selecting a book, putting it in a shopping cart, then signing in with a password or as a guest, and then checking out. For some reason, when a pu ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As