> Java program to calculate wages with Boolean operators?

Java program to calculate wages with Boolean operators?

Posted at: 2014-12-18 
Here are requirements:

1.Prompt the user to input the total hours worked. That number will

be input from the keyboard.

2.Use an if/else statement to determine the appropriate wage, based

on the number of hours input by the user. The hourly pay rate is

$12.50 and any hours over 40 will be paid at a rate of 1.5 times the

regular rate.

3.Declare the necessary variables. Set a variable for the standard pay

rate as a constant. Set another constant for the standard 40 hour

work week. Note that in the calculation of the wage, the result will

potentially have a fractional part.

4.Use the if/else statement to determine the appropriate wage based

on whether the user worked over 40 hours or not.

5.Output the number of hours entered by the user, the number of

regular hours worked, and any overtime worked, and finally, the total wages earned.

6.Use text labels on the output which make it clear what information

is being displayed.

7.Use: good variable names, indentations of four spaces, comments

within the program, and label the output appropriately.

8.Test your program with numbers above and below the commission

limits for accuracy in its calculations.

9.Include comments within the body of the program.