Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

code... 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

College Physics

Authors: Jerry D. Wilson, Anthony J. Buffa, Bo Lou

7th edition

9780321571113, 321601831, 978-0321601834

More Books

Students also viewed these Programming questions

Question

an identifier can

Answered: 1 week ago

Question

Describe how an operations strategy is formulated.

Answered: 1 week ago