Question
The planet of Mars is implementing a new planetary tax structure for its inhabitants. Mars has contracted you to implement a program that calculates take-home
The planet of Mars is implementing a new planetary tax structure for its inhabitants. Mars has contracted you to implement a program that calculates take-home pay for employees. You must implement this new plan using one Employee class for all employees.
Employees have either a weekly hourly wage or a monthly salary pay type.
Weekly hourly wage earners have the following deductions:
Mars planetary taxes are (specified in Martian pounds ):
If wages are >= 100.00 per hour 10%
If wages are >= 50.00 and < 100.00 and last name is Constant 2%
If wages are >= 50.00 and < 100.00 and last name is not Constant 8%
If wages are < 50.00 5%
Mars planetary social security is 10%
Mars planetary air tax is 0.25 per hour.
Monthly salary earners have the following deductions:
Mars planetary taxes are (specified in Martian pounds ):
If last name is Constant - 0.00
If salary is >= 10,00.00 per month 22%
If salary is >= 5,000.00 and < 10,000.00 18%
If salary is < 5,000.00 15%
Mars planetary social security is 10%
Mars planetary air tax is 0.25 per 1,000.00 salary.
The Main() method must ask the user for employee name, pay type and rate. It must then instantiate an Employee object and call a display method in the Employee class.
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