Ask Question
15 February, 05:05

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 February, 09:03
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers