Java program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Java program

Write an application that prompts an employee for an hourly pay rate and hours worked. Compute gross pay (hours times rate), withholding tax, and net pay (gross pay minus withholding tax). Withholding tax is computed as a percentage of gross pay based on the following: Gross Pay <= $300.00 use 10% withholdings Gross Pay > $300.00 use 12% withholdings.

23rd Jan 2018, 7:31 PM
AU Hameed
AU Hameed - avatar
2 Answers
0
System.out.println(); and The Scanner class with the input stream System.in as a parameter for the object will be your best friends for this project. Scanner input = new Scanner(System.in); input.nextLine(); ...etc
23rd Jan 2018, 8:14 PM
John
John - avatar
0
Ok
23rd Jan 2018, 8:26 PM
AU Hameed
AU Hameed - avatar