Question
Draw the flowchart and write the corresponding Python code for the following program. The program is used to calculate the monthly net salary of different
Draw the flowchart and write the corresponding Python code for the following program. The program is used to calculate the monthly net salary of different types of employees as detailed below:
1. Employees with code equal to 1 are paid a fixed salary at the end of the month.
2. Employees with code equal to 2 are paid at the end of the month an amount equal to multiplying the number of working hours by their rate per hour.
3. Employees with code equal to 3 are paid at the end of the month an amount equal to multiplying their sales by their commission rate.
4. Employees with code equal to 4 are paid at the end of the month a fixed salary in addition to the value calculated by multiplying their sales by their commission rate.
. Assuming that the company has 10 employees, your program should input the type of the employee and the needed values for each of the 10 employees i.e. if the employees code is equal to 1, your program should input a value for fixed salary.
Moreover, a 2% income tax is deducted from every employee before calculating the net salary.
At the end, your program should output the net salary of each of the 10 employees and the total amount of salaries paid to the 10 employees at the end of the month.
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