# programming

posted by .

Design an algorithm that accepts two values, the hourly rate and the number of hours worked by an employee. If the number of hours exceeds 40, then the excess hours should be paid at an overtime rate of twice the hourly rate. Calculate wages (including overtime, if any) due to the employee.

• programming -

<br />
hrly wage
<br />

• I.T -

start
enter h1 (hrly wage), h2 (# of hoursworked by employee)
IF h2 > 40 then
product- 40 - extra

## Similar Questions

1. ### Math-Asap

I have another expression that I need help with. If the hours worked are less than or equal to 40 return the pay as hours worked times hourly wage. -hours*hourlywwage (this is my expression) Otherwise return the pay as the first 40 …
2. ### ??

why do you times 8.6x1.5x8? where does the 8 come from?
3. ### Logic and Design

You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work …
4. ### Programming

Write a program that inputs (from the user) the number of hours worked and hourly rate for employees and outputs the total pay. The program should process an arbitrary number of employees; the user will terminate input by entering …
5. ### Visual Basic (Computer Programming)

ALGORITHM EXERCISES 1. Wilma Peterson is paid by the hour. She would like a program that both calculates and displays her weekly gross pay. For this exercise, you do not need to worry about overtime pay, as Wilma never works more than …
6. ### c++

MACHINE PROBLEMS #2 1. Create a C++ program that would input the following data about a merchandise: Product Number, Item Description, Original Price, Estimated Years of used of a Merchandise, Salvage Value of Merchandise. Compute …
7. ### Programming

Write a program that inputs (from the user) the number of hours worked and hourly rate for employees and outputs the total pay. The program should process an arbitrary number of employees; the user will terminate input by entering …
8. ### Programming

Develop a Java application that will determine the gross pay for each of three employees. The company pays “straight line” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess …
9. ### Math

When Alexa works overtime any hours over 40 hours a week she is paid 1.5 times her regular hourly rate in the week she worked 52 hours if her regular hourly rate is 6.80 what did she earn that week
10. ### Bachelor of computer science

A program is required to calculate the weekly pay for an employee. The pay clerk inputs an employee ID, hours worked and an hourly rate. The program will output the employee ID, and Gross Pay. Gross Pay is the sum of regular pay plus …

More Similar Questions