This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Exercise1 { | |
| public static void main(String[] args) { | |
| java.util.Scanner input = new java.util.Scanner(System.in); | |
| System.out.print("Enter employee name: "); | |
| String employeeName = input.nextLine(); | |
| System.out.println("Number of hours worked: "); | |
| int numberOfHoursWorked = input.nextInt(); | |
| System.out.println("Hourly wage rate: "); | |
| double wageRate = input.nextDouble(); | |
| System.out.println("Enter the Federal tax rate: "); |
NewerOlder