5. Write a program with an "Employee" class having two variables one for the named employee (String) and other for base salary (float). Create a function that calculates the total salary by adding 50% HRA to the salary and returns. Create an objectof this class in main function and set the name of the employee, call the salary function and print the calculated salary returned by the function with name of the employee.
Answers
Answered by
2
Answer:
program in Python
name=str(input("Employee name":))
salary=int(input("Employee salary":))
Explanation:
mark me as brainlest
Similar questions