0% found this document useful (0 votes)
7 views1 page

PROG 8010-2 - Lab 6 - s23

Uploaded by

akshay.j.uperia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

PROG 8010-2 - Lab 6 - s23

Uploaded by

akshay.j.uperia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PROG 8010 – Lab 6 14-07-23

Classes and objects


In this lab, you write a C# programs that does the following:
Create a class Manager that contains a few fields and their properties with two constructors.
Define a method that calculates the manager’s gross pay (define gross pay as another property
in your class). Define another method that calculates the manager’s bonus. Define one more
property of sales amount in your class ( do the following comparison to determine the bonus: if
the sales she made is greater than $8000 then the bonus is 7.5% of the sales amount, otherwise
the bonus = 0). The bonus should be added to her gross pay. Implement the ToString() method
to print all the manager’s information. Your application includes creating the ManagerTest class
to instantiate Manager objects and to test the methods.

Instructions:

- To submit copy the code of the program here or upload the program into
Lab 3 drop box in the Assignments folder on eConestoga.
- The deadline to submit is 14-07 at 11 am.
- Rubrics: all requirements are met, simplicity/code is easy to follow and
understand, proper naming conventions, using comments, proper code
indentation, correct inputs/outputs.

You might also like