1) Employee salary.py Write a program that asks the user to input the following data for n employees: - • Basic Salary • Experience years • Employee Class Then do the following for each one: - float...


1) Employee salary.py<br>Write a program that asks the user to input the following data for n employees: -<br>• Basic Salary<br>• Experience years<br>• Employee Class<br>Then do the following for each one: -<br>float value.<br>integer value<br>integer value (1 or 2 or 3) only.<br>1. Calculate the Basic allowance according to the following table:<br>Basic Allowance<br>7% of Basic Salary<br>Basic Salary<br>Basic Salary < 200<br>200 s Basic Salary < 400<br>10% of Basic Salary<br>400 S Basic Salary<br>15% of Basic Salary<br>2. Calculate the Technical allowance according to the following table: -<br>Experience Years<br>Technical Allowance<br>Experience Years 2 10<br>20% of Basic Salary<br>Experience Years<br>12% of Basic Salary<br>< 10<br>3. Calculate the Gross salary according to the following formula: -<br>Gross salary = Basic salary + Basic allowance +Technical Allowance<br>4. Calculate the Retirement Deduction according to the following table:-<br>Gross Salary<br>Gross Salary < 300<br>Gross Salary<br>Gross Salary<br>Gross Salary<br>Gross Salary<br>Gross Salary < 600<br>Class<br>Retirement Deduction<br>2% of<br>4% of<br>Gross Salary<br>Gross Salary<br>Gross Salary<br>1<br>300 s<br>< 500<br>500 S<br>6% of<br>< 200<br>< 400<br>5% of<br>Gross Salary<br>200 s<br>400 S<br>78 of<br>Gross Salary<br>Gross Salary<br>Gross Salary<br>2<br>9% of<br>600 S Gross Salary<br>12 of<br>3<br>no retirement deduction for this class<br>5. Calculate the Net Salary according to the following formula<br>Net salary = Gross salary - retirement deduction<br>6. Calculate the average of net salaries for all employees<br>YOUR INPUT AND OUTPUT SHOULD BE AS THE FOLLOWING SAMPLE:-<br>Enter No. of employees:3<br>Enter the basic salary of employee (1):350<br>Enter the class of employee<br>(1):2<br>Enter experience years for employee(1):15<br>------emp(1)----<br>= 350<br>= 15<br>Technical Allowance = 70.0 Gross salary<br>Retirement Deduction=40.95 Net salary = 414.05<br>= 2<br>Basic Allowance= 35.0<br>= 455.0<br>CLASS<br>Basic Salary<br>Experience Years<br>Enter the basic salary of employee (2):500<br>Enter the class of employee<br>(2):1<br>Enter experience years for employee(2):20<br>---emp(2)---<br>= 500<br>= 20<br>Basic Salary<br>Experience Years<br>Technical Allowance = 100.0 Gross salary<br>Retirement Deduction=40.50 Net salary<br>CLASS<br>= 1<br>Basic Allowance= 75.0<br>= 675.0<br>= 634.5<br>-------<br>Enter the basic salary of employee (3):400<br>Enter the class of employee<br>Enter experience years for employee(3):8<br>------------------emp(3)-------<br>Basic Salary<br>Experience Years<br>Technical Allowance = 48.0 Gross salary<br>Retirement Deduction=0.00<br>(3):3<br>= 3<br>Basic Allowance = 60.0<br>= 508.0<br>= 508.0<br>= 400<br>= 8<br>CLASS<br>Net salary<br>-----------<br>-------<br>Average of all net salaries =518.85<br>

Extracted text: 1) Employee salary.py Write a program that asks the user to input the following data for n employees: - • Basic Salary • Experience years • Employee Class Then do the following for each one: - float value. integer value integer value (1 or 2 or 3) only. 1. Calculate the Basic allowance according to the following table: Basic Allowance 7% of Basic Salary Basic Salary Basic Salary < 200="" 200="" s="" basic="" salary="">< 400="" 10%="" of="" basic="" salary="" 400="" s="" basic="" salary="" 15%="" of="" basic="" salary="" 2.="" calculate="" the="" technical="" allowance="" according="" to="" the="" following="" table:="" -="" experience="" years="" technical="" allowance="" experience="" years="" 2="" 10="" 20%="" of="" basic="" salary="" experience="" years="" 12%="" of="" basic="" salary="">< 10="" 3.="" calculate="" the="" gross="" salary="" according="" to="" the="" following="" formula:="" -="" gross="" salary="Basic" salary="" +="" basic="" allowance="" +technical="" allowance="" 4.="" calculate="" the="" retirement="" deduction="" according="" to="" the="" following="" table:-="" gross="" salary="" gross="" salary="">< 300="" gross="" salary="" gross="" salary="" gross="" salary="" gross="" salary="" gross="" salary="">< 600="" class="" retirement="" deduction="" 2%="" of="" 4%="" of="" gross="" salary="" gross="" salary="" gross="" salary="" 1="" 300="" s="">< 500="" 500="" s="" 6%="" of="">< 200="">< 400 5% of gross salary 200 s 400 s 78 of gross salary gross salary gross salary 2 9% of 600 s gross salary 12 of 3 no retirement deduction for this class 5. calculate the net salary according to the following formula net salary = gross salary - retirement deduction 6. calculate the average of net salaries for all employees your input and output should be as the following sample:- enter no. of employees:3 enter the basic salary of employee (1):350 enter the class of employee (1):2 enter experience years for employee(1):15 ------emp(1)---- = 350 = 15 technical allowance = 70.0 gross salary retirement deduction=40.95 net salary = 414.05 = 2 basic allowance= 35.0 = 455.0 class basic salary experience years enter the basic salary of employee (2):500 enter the class of employee (2):1 enter experience years for employee(2):20 ---emp(2)--- = 500 = 20 basic salary experience years technical allowance = 100.0 gross salary retirement deduction=40.50 net salary class = 1 basic allowance= 75.0 = 675.0 = 634.5 ------- enter the basic salary of employee (3):400 enter the class of employee enter experience years for employee(3):8 ------------------emp(3)------- basic salary experience years technical allowance = 48.0 gross salary retirement deduction=0.00 (3):3 = 3 basic allowance = 60.0 = 508.0 = 508.0 = 400 = 8 class net salary ----------- ------- average of all net salaries =518.85 400="" 5%="" of="" gross="" salary="" 200="" s="" 400="" s="" 78="" of="" gross="" salary="" gross="" salary="" gross="" salary="" 2="" 9%="" of="" 600="" s="" gross="" salary="" 12="" of="" 3="" no="" retirement="" deduction="" for="" this="" class="" 5.="" calculate="" the="" net="" salary="" according="" to="" the="" following="" formula="" net="" salary="Gross" salary="" -="" retirement="" deduction="" 6.="" calculate="" the="" average="" of="" net="" salaries="" for="" all="" employees="" your="" input="" and="" output="" should="" be="" as="" the="" following="" sample:-="" enter="" no.="" of="" employees:3="" enter="" the="" basic="" salary="" of="" employee="" (1):350="" enter="" the="" class="" of="" employee="" (1):2="" enter="" experience="" years="" for="" employee(1):15="" ------emp(1)----="350" =="" 15="" technical="" allowance="70.0" gross="" salary="" retirement="" deduction="40.95" net="" salary="414.05" =="" 2="" basic="" allowance="35.0" =="" 455.0="" class="" basic="" salary="" experience="" years="" enter="" the="" basic="" salary="" of="" employee="" (2):500="" enter="" the="" class="" of="" employee="" (2):1="" enter="" experience="" years="" for="" employee(2):20="" ---emp(2)---="500" =="" 20="" basic="" salary="" experience="" years="" technical="" allowance="100.0" gross="" salary="" retirement="" deduction="40.50" net="" salary="" class="1" basic="" allowance="75.0" =="" 675.0="634.5" -------="" enter="" the="" basic="" salary="" of="" employee="" (3):400="" enter="" the="" class="" of="" employee="" enter="" experience="" years="" for="" employee(3):8="" ------------------emp(3)-------="" basic="" salary="" experience="" years="" technical="" allowance="48.0" gross="" salary="" retirement="" deduction="0.00" (3):3="3" basic="" allowance="60.0" =="" 508.0="508.0" =="" 400="8" class="" net="" salary="" -----------="" -------="" average="" of="" all="" net="" salaries="">
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here