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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!