Computer Science, asked by bishtrohit8501, 5 months ago

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.

Answers

Answered by hars909h
0

Answer:

hours = int(input('how many hours did you work? '))

rate = 1.50

rate = (hours/2)+hours*(rate+1.5)

if hours<40:

print("you earn",rate)

Similar questions