Question: Task 10 Write a Python program to compute and display a person's weekly salary as determined by the following conditions: - If the hours worked

 Task 10 Write a Python program to compute and display a

Task 10 Write a Python program to compute and display a person's weekly salary as determined by the following conditions: - If the hours worked is less than or equal to 40 , then the person receives Tk 200 per hour. - If the hours worked is greater than 40 , then the person receives Tk 8000 plus Tk 300 for each hour worked over 40 hours. The program should request the hours worked as an input from the user and display the salary as output. You need to make sure that user input is valid. For example, a person cannot work for 5 hours or more than 168 hours in a week. So, the valid hours range is 0 to 168 . For invalid hours, print outputs as given in the samples below. Hint: you can consider the hour (user input) to be an integer

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!