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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!