Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# visual studio This project tests your skills at building an Object-Oriented Programming project. The purpose is to calculate pay for various types of employees.

C# visual studio This project tests your skills at building an Object-Oriented Programming project. The purpose is to calculate pay for various types of employees. Use your same file for your [Your Name] Review.cs that contains your 2D Shape classes.

Submit only your [Your Name] Review.cs file.

The classes will contain:

Employee

Abstract class with the following properties:

  • EmployeeId int
  • FirstName string
  • LastName string
  • Pay (abstract, read only) double

Sales

Concrete class inherits Employee. Contains the following properties:

  • Draw double
  • CommissionRate double
  • GrossSales double
  • Pay double. Calculated as CommissionRate * GrossSales. If that calculation is less than the Draw, then the Draw is used.

Salary

Concrete class inherits Employee. Salaried employees are paid a salary at a monthly rate. They are paid the same salary each pay period. They are paid twice a month so the pay is half of the monthly salary amount. They are sometimes paid a bonus in addition to their salary. Salary contains the following properties

  • MonthlySalaryAmount double
  • Bonus: double
  • Pay double: Salaried employees are paid twice / month. Calculated as half of Monthly Salary Amount + Bonus.

Hourly

Concrete class inherits Employee. Hourly employees are paid by the hour at an hourly rate. They are paid weekly. Any week where the Hourly employee works more than 40 hours earns overtime pay. Overtime pay is for the hours over 40 and is paid at 1.5 times the hourly rate. Hourly contains the following properties:

  • Hours: double
  • HourlyRate double
  • Pay (read only) double. Pay is the Hourly Rate * the number of hours up to 40. Overtime pay is paid at the rate of 1.5 * the Hourly Rate for all hours over 40 hours / week. Overtime pay is in addition to the pay for the first 40 hours / week.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago