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.

  1. 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

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!