Write a Python code to input the name and basic salary of an employee. Calculate and display the name, gross salary and net salary of the employee when: da = 30% of basic / hra = 18 % of basic/pf = 12.5% of basic/gross = basic + da + hra / net=gross – pf.
Write a Python code to input the name and basic salary of an employee. Calculate and display the name, gross salary and net salary of the employee when:
da = 30% of basic
hra = 18 % of basic
pf = 12.5% of basic
gross = basic + da + hra
net=gross - pf.
Sol :-
name = input(“Enter name of the employee :- “) basic = int(input(“Enter the basic salary :- “)) da = basic * 30/100 hra = basic * 18/100 pf = basic * 12.5/100 gross = basic + da + hra net = gross-pf print(“Name of the employee : Mr”,name) print(“Gross Salary :”,gross) print(“Net salary:”,net)
Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable
Popular Videos
Play Video
UX for Teams
Learn the basics and a bit beyond to improve your backend dev skills.
Chris Matthews
Designer
Play Video
SEO & Instagram
Learn the basics and a bit beyond to improve your backend dev skills.