Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

define EFFECTIVE PARTICIPATION

Answered: 1 week ago