Question: CODING HELP PLS Complete the Java code for a program called Modulus based on this description: Code a program called Modulus. Declare an integer variable

CODING HELP PLS

Complete the Java code for a program called Modulus based on this description:

Code a program called Modulus.

Declare an integer variable called remainder.

Declare Scanner input. Make sure Scanner is imported.

Ask the user for the modulus of 4 and 6: "What is 4 % 6? "

If the answer is correct print: "Stupendous! The answer is ZZ9." where the ZZ9 is the actual remainder value and has to be replaced with the proper format specifier.

If the answer is incorrect print: "Sorry, you answered incorrectly."

Code with the proper spacing, capitalization, indentation, and line advances. 1 line advance at the beginning of a prompt. 1 line advance at the beginning and the end of a message.

Dispense with any comments.

Exit the program.

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!