Question: Java only. Is it a good idea to divide this? Write a program that declares the following: A final int variable named divisor , set
Java only.
-
Is it a good idea to divide this?
Write a program that declares the following:
-
A final int variable named divisor, set this equal to 360.
-
A int variable named numerator
-
A int variable named remainder
Have your program ask, What number should I divide by
Store the users response inside of numerator.
Use the modulus operator to determine the remainder of (numerator / divisor) and store that remainder inside of the variable named remainder.
Have your program print the result.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
