Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED TO USE PYTHON PLS HELP!! Exercise 3. Write a program to calculate a person's weekly wage. The user should be asked to input the

NEED TO USE PYTHON PLS HELP!!
image text in transcribed
Exercise 3. Write a program to calculate a person's weekly wage. The user should be asked to input the number of hours worked, the normal hourly rate of pay and the overtime hourly rate of pay. A normal working week is 40 hours and if an employee works less than 40 hours, pay is deducted at the overtime rate. This may seem a little unfair but it enables the calculation to be done in ONE simple command without the need to test whether the number of hours worked is greater or less than 40 (using commands we have not met yet). Include appropriate print statements to provide a summary of the hours worked, the normal and overtime hourly rates and the person's weekly wage. It is recommended to use more than one print statement in order to obtain an easier to read summary on several lines. Your program should also include suitable comments. Run your program with 11.30 as the normal hourly rate of pay, 16.60 as the overtime hourly rate and for 30, 40 and 50 hours

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

11.1 Explain the strategic importance of total rewards.

Answered: 1 week ago

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago