Post a New Question


posted by .

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 hours worked times the hourly wage plus those hours worked over 40 times the hourly wage times 1.5.

but then when I first read the rules for the second expression, this is what I thought it would be 40*hourlywage+(hours*1.5)

could you help me out please? Thanks!

It is the number of hours over 40 *1.5 added to the 40hours * regular pay.

Example: I worked 45 hours and I make $15.00/hour, My pay would be 40hrs * $15.00 + (5 hours * $22.50)

I hope that helps

So, the expression would be 40*1.5+(hours*hourlywage)

Nevermind, I've asked my teacher and my teacher said the expression was wrong. Now, I still don't understand what to use for an expression.

You were not TOO far off, just a little bit. The first one is correct. It's the 2nd one that needs addressed.

Let's take a look at the equation you had:


You forgot to pay him for those extra hours (no hourly wage in that 1.5 times part) Plus he's not getting paid regular rate plus 1.5 times the regular rate for ALL hours. He's getting paid that 1.5 times for any hour over 40.

So it should be like this if it's over 40.

(40 * HourlyWage) + ((HoursWorked-40)* 1.5 * Hourly Wage)

In other words, you are taking 40 and multiplying it by your hourly wage.

Then you're taking the total number of hours worked and subtracting 40 (or else you'd be paying for the 40 original hours again). That will tell you how many hours more than 40 the person worked that week. (If they worked 45, you take the number of hourse (45) and subtract 40 and it leaves you with 5...he worked 5 hours overtime). Following me so far? I'm writing a lot, but trying to be detailed.

So you figure out how much overtime the person is owed by taking the 5 hours and multiplying it by 1.5 times his normal rate.


I understand. Thanxs!

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. math

    amy is paid time and a half for hours worked in excess of 40 hours and double time for hours worked on sunday. If her weekly wage was $342 for working 50 hours, 4 of which were on sunday, what is her regular hourly rate?
  2. programming

    Week 3 - Expand Pseudo Code The accounting office indicated the code must be able to handle overtime hours. Add functionality to your pseudo code so that if more than 40 hours are worked, the hours over 40 receive time and a half (1.5 …
  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 with Eclipse

    Design, implement, test, and debug an application to compute an employee’s weekly pay. If the employee works more than 40 hours a week, the employee earns 1.5 times the basic hourly pay for any time worked over 40 hours. The program …
  5. programming

    Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours worked, and a withholding percentage. Prompt the user to enter values for each of these fields. Compute and display net weekly pay, …
  6. math

    If Sue worked 6 3/4 hours on Monday, 4 hours on Tuesday, 7 3/4 hours on Wednesday, 8 hours on Thursday, and 5 1/2 hours on Friday, calculate her weekly wage at $7.20 per hour.
  7. help with math!

    Evonne earns $10.50 per hour for a 40 hour week. She earns time and a half (1 1/2 times the normal $10.50 per hour rate) for all hours worked OVER 40 hours. Answer the following question based on Evonne's information. This week Evonne …
  8. math

    One month, ruby worked 6 hours more than Isac, and Svetlana worked 4 times as many hours as Ruby. Together they worked 126 hours. Find the number of hours each person worked
  9. algebra

    a student worked w hours on tuesday x hours on wednesday y hours on thursday and z hours on friday which algebraic expression represent the average arithmetic mean number of hours per day the student worked for the four days for any …
  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

Post a New Question