Question: Write Python code of a program to compute and display a persons weekly salary as determined by the following conditions: If the hours worked are
Write Python code of a program to compute and display a person’s weekly salary as determined by the following conditions:
If the hours worked are less than or equal to 40, the person receives Tk200.00 per hour.
Else the person receives Tk8000.00 plus Tk300.00 for each hour worked over 40 hours.
The program should request the hours worked as input and should display the salary as output.
Sample Input 1:
30
Output 1:
Salary: 6000
Sample Input 2:
50
Output 2:
Salary: 11000
Step by Step Solution
3.63 Rating (161 Votes )
There are 3 Steps involved in it
code... View full answer
Get step-by-step solutions from verified subject matter experts
