Saturday
April 19, 2014

Homework Help: Programming

Posted by Lee on Sunday, October 31, 2010 at 3:03am.

This is a problem with mathmatics. the Question is: Federal law requires hourly employees be paid "time-and-a-half" for work in excess of 40 hours in a week. For example, if a person's hourly wage is $8 and he works 60 hours in a week, his gross pay should be
(40 * 8) + (1.5 * 8 * (60-40)) = $560

below is my formula:
egularwages = hoursworked * wages
grosspay = hoursworked * wages + (1.5 * wages * (hoursworked - hoursworked))
If wages <= 40 Then
txtGrossPay.Text = (regularwages * hoursworked)
ElseIf wages >= 40 Then
txtGrossPay.Text = (regularwages * hoursworked + (1.5 * wages * (wages - regularwages)))
End If
Please help by telling me what I have wrong? Thanks..

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

math - what does over time and time in a half mean? Employees who earn an hourly...
Math - Assume you work at a company where you are paid hourly. You are paid $8....
algebra - Assume you work at a company where you are paid hourly. You are paid $...
math - amy is paid time and a half for hours worked in excess of 40 hours and ...
Accouting - Please can you show me how to do it. An employee receives an hourly ...
S.A.T Math - I do not understand This: Employee x is paid $12.50 an hour for the...
programming - Design an algorithm that accepts two values, the hourly rate and ...
math - Angelo is paid double time for each hour he works over 40 hours in a week...
math - Angelo is paid double time for each hour he works over 40 hours in a week...
math - Angelo is paid double time for each hour he works over 40 hours in a week...

Search
Members