Question
Use C# programming Create a program that will calculate employees monthly gross pay as follows: Inputs: Name Annual Salary Monthly Sales Keeps asking for additional
Use C# programming
Create a program that will calculate employees monthly gross pay as follows:
Inputs:
Name
Annual Salary
Monthly Sales
Keeps asking for additional inputs and creating the outputs until an empty name is entered.
Outputs:
Name
Monthly Base Pay (Salary / 12)
Commission calculated as follows:
Subtract 10 * Monthly Base Pay from Monthly Sales giving Net Sales
If the Net Sales is <= 0, then the Commission is 0
Otherwise the First $10,000 in Net Sales is commissioned at 5%
The next $15,000 in Net Sales is commissioned at 10%
The next $25,000 in Net Sales is commissioned at 15%
Any Net Sales over $50,000 is commissioned at 20%
Gross Pay (Monthly Base Pay + Commission).
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).
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