Question: JAVA 1. Insert the correct number in the code below to print a monthly salary. Then run the program. Load default template... 1 public class

JAVA

JAVA 1. Insert the correct number in the code below to print

1. Insert the correct number in the code below to print a monthly salary. Then run the program. Load default template... 1 public class Salary { 2 public static void main(String[] args) { 3 int hourlyWage; 4 5 hourlyWage = 20; 6 7 System.out.print("Annual salary is: "); 8 System.out.println(hourlyWage * 40 * 50); 9 10 System.out.print("Monthly salary is: "); 11 System.out.println(ChourlyWage * 40 * 50)/12.0); 12 // FIXME: The above is wrong. Change the 1 so the statement prints monthly salary. 13 14 } 15 } Run Annual salary is: 40000 Monthly salary is: 3333.3333333333335 Feedback

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!