Develop an algorithm that computes gross pay. The inputs are the number of hours worked per week and the hourly pay rate. This job provides overtime pay. If the number of hours is greater than 40, then the worker receives 1.5 times the hourly pay rate for all hours worked over 40 hours. Print the amount due to the worker.

icon
Related questions
Question

Develop an algorithm that computes gross pay. The inputs are the number of hours worked per week and the hourly pay rate. This job provides overtime pay. If the number of hours is greater than 40, then the worker receives 1.5 times the hourly pay rate for all hours worked over 40 hours. Print the amount due to the worker.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, data-structures-and-algorithms and related others by exploring similar questions and additional content below.