Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started