Question
This is for C# programming Create a program that will calculate employees monthly gross pay as follows: Inputs: 1)Name 2)Annual Salary 3)Monthly Sales 4)Keeps asking
This is for C# programming
Create a program that will calculate employees monthly gross pay as follows:
Inputs:
1)Name
2)Annual Salary
3)Monthly Sales
4)Keeps asking for additional inputs and creating the outputs until an empty name is entered.
Outputs:
1)Name
2)Monthly Base Pay (Salary / 12)
3)Commission calculated as follows:
A.Subtract 10 * Monthly Base Pay from Monthly Sales giving Net Sales
B.If the Net Sales is <= 0, then the Commission is 0
C.Otherwise the First $10,000 in Net Sales is commissioned at 5%
D.The next $15,000 in Net Sales is commissioned at 10%
E.The next $25,000 in Net Sales is commissioned at 15%
F.Any Net Sales over $50,000 is commissioned at 20%
4)Gross Pay (Monthly Base Pay + Commission).
5)If any of the inputs are unreasonable, tell user with a message and force reentry of the data (e.g. Negative Sales, Annual Salary > $120,000 or < $12,000, if not 0).
Additional Requirements:
1) Create a class to contain the employee data.
a. Need class attributes for: name, base pay, sales
b. Create accessors and mutators for all the data above
c. Create routine to return gross pay
d. Create constructor(s)
2) Create an array of that class.
3) Create a menu system that allows:
a. Employees to be added to the employee list
b. Sales for month to be entered
c. Report on pay created
d. Exit the program
4) You may use global variables for the item 2 array and the number elements in the array in use.
5) Create static methods to:
a. Handle menu
b. Add new employees
c. Enter sales for month
d. Produce the pay report.
Can someone please help me with this, I have been working on this for three days and I cannot get the code to execute correctly.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started