Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program to calculate the gross pay for some employees as shown in the following run samples. Any hours worked over 30 are

Write a Python program to calculate the gross pay for some employees as shown in the following run samples. Any hours worked over 30 are paid at time and a half (1.5 times the regular hourly rate)

Run sample 1: Enter the number of employees: 2 Enter the hours worked by employee 1: 32 Enter the hours worked by employee 2: 20 Enter the hourly pay rate: 10 Gross pay for employee 1 with 2.0 hours overtime : $330.00 Gross pay for employee 2: $200.00
Run sample 2: 
Enter the number of employees: 3 Enter the hours worked by employee 1: 30 Enter the hours worked by employee 2: 20 Enter the hours worked by employee 3: 10 Enter the hourly pay rate: 10 Gross pay for employee 1: $300.00 Gross pay for employee 2: $200.00 Gross pay for employee 3: $100.00

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_2

Step: 3

blur-text-image_3

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago