Question: In Python, create a function calculateSalary() in such a way that it should accept monthly salary, name of the employee, number of leave and calculate
In Python, create a function calculateSalary() in such a way that it should accept monthly salary, name of the employee, number of leave and calculate and display the yearly salary. If the number of leave is greater than 5 in a year, then for each extra day deduct 200 from the salary. If the salary is missing in function call it should take a default value $5,000.
Input: Monthly_salary=5000 Leave=8
Output: Yearly_salary=59,999,400
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
