Question: JAVA: The following program calculates yearly and monthly salary given an hourly wage. The program assumes a work-hours-per-week of 40 and work-weeks-per-year of 50. Insert
JAVA:
The following program calculates yearly and monthly salary given an hourly wage. The program assumes a work-hours-per-week of 40 and work-weeks-per-year of 50. Insert the correct number in the code below to print a monthly salary. Then run the program.public class Salary { public static void main(String[] args) { int hourlyWage; hourlyWage = 20; System.out.print("Annual salary is: "); System.out.println(hourlyWage * 40 * 50); System.out.print("Monthly salary is: "); System.out.println((hourlyWage * 40 * 50) / 1); // FIXME: The above is wrong. Change the 1 so the statement prints monthly salary. } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
