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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started