Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Compute the monthly net (take-home) income for employees in an organization. The user should be provided with an input box to enter the number
2. Compute the monthly net (take-home) income for employees in an organization. The user should be provided with an input box to enter the number of employees in the organization (use 4 or 5 or 6 employees to test your code). The code should be based on the following conditions: The user should enter the employee name, employee category, the base pay, and two allowances - housing and transport. The system should calculate the gross pay as: base pay plus allowances. The organization remits employee tax to government based on the employee's gross pay and based on the employee category. If the employee earns a gross pay of $3000 or less, no income tax is charged; if the gross pay is above $3000 per month, tax is charged based on the employee category as follows: faculty. ( 15% tax), staff (10% tax), and technical ( 10% tax). The system should compute monthly net income as gross pay less income tax. The system should output the following for each employee: employee name, employee category, base pay, total allowances, gross pay, tax, and net pay. (Please do this print inside the loop) Use the following table to test vour svstem Note the cases used for category (mixed ... should result in upper case) Additional: Though not required, you may decide to print headers before the loop starts. This can be done (for now) using the tab escape sequence
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