10-06-2009, 03:43 AM
Here is my sweet pseudocode for calculating wages.
Code:
float hourWork, hourOver, regPay, overPay, empWage, payCheck
print "Please enter the amount of hours worked: "
hourWork<-readInput
Print "Please enter the wage of the employee per hour: "
wage<-readInput
If(hourWork > 40)
hourOver<-(hourWork-40)
payCheck<-(hourWork*empWage)+(hourOver*(2*empWage))
else
payCheck<-(hourWork*empWage)
print "The employee's paycheck this week is: $" paycheck
