Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write it in python language and spyder server In XYZ company, the employees take their salaries and allowances according to specific equations and sometimes the

write it in python language and spyder server

image text in transcribed

In XYZ company, the employees take their salaries and allowances according to specific equations and sometimes the company deduce from their salaries some deductions for some purposes. Write a Python program to do the following: - 1) Ask the user to input the following data one employee:- a) Basic Salary b) Transport allowance c) Utility allowance 2) Calculate the following according to the mentioned formulas: - Basic allowance =0,05 x basic salary. Accommodation Allowance-0.10 * basic salary Overtime allowance = 0.06 x basic salary Gross salary-Basic salary Transport allowance + Utility allowance Basic allowance+ Accommodation Allowance+ Overtime allowance. Provident Fund = 0.04x basic salary. Retirement Deduction = Gross salary * 0.08. Income Tax = 0.03 x Gross salary Sum of deductions - Provident Fund + Retirement Deduction + Income Tax Net salary - Gross Salary. Sum of deductions. Your input & output should be as the following sample of data: please enter value of Basic Salary:600 please enter value of transportation allowance:60 please enter the value of utility allowance :40 -Enployee Salary Details allowances Basic salary 600.00 Transport allowance - 60.00 utility allowance =$0.00 Basic Allowance 30.00 Overtine allowance - 36.00 Accommodation Allowance - 60.00 Gross Salary -826.00 Deductions Provident Fund - 20.00 Retirement Deduction - 66.08 Income Tax 20.78 Sun of deductions - 114.86 Met Salary 711.14 You should write all the above values in 2-decimal digits. You should include the following comments at the beginning of your program make sure that you replace with the appropriate information # File Name : employee.py # Student Id # Student Name: Your Name>

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

Step: 3

blur-text-image

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

What magazine and ads did you choose to examine?

Answered: 1 week ago

Question

Knowledge of process documentation (process flow charting)

Answered: 1 week ago