Modify the program so the output is: Annual pay is 40000 Note: Whitespace (blank spaces / blank lines) matters; make sure your whitespace exactly matches the expected output. Also note: These activities may test code with different test values. This activity will perform two tests: the first with wage = 20, the second with wage = 30

Respuesta :

Limosa

Answer:

The following answer is written in Java Programming Language:

public class Salary {   //define class

 public static void main (String [] args) {  //define main method

   int wage = 20;   //initialize an integer variable

   /* Your solution are here */

   System.out.println("Annual Pay is "+wage * 40 * 50);  //print result

   return;  

 }

}

Explanation:

Here, we define the class  "Salary".

Then, we define the void type main() function inside it we define an integer type variable "wage" and assign value to 20 and after that, we print the result.

After all, we close the main function and then class.