Ask Question

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

+2
Answers (1)
  1. 15 April, 21:29
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Modify the program so the output is: Annual pay is 40000 Note: Whitespace (blank spaces / blank lines) matters; make sure your whitespace ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers