Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

KEY QUESTION Refer to Figure 3.6, page

Answered: 1 week ago