QMCS 281

Spring 2003

First Assignment

 

Write a java program (class) with a main method. The program will accept keyboard input. It will run in a loop prompting the user whether or not he or she wishes to run the procedure again. If not, the program ends. If so, it will perform the following procedure:

 

-- It will accept two decimal numbers from the user.

 

-- It will determine which number is larger and display that number with an appropriate message.

 

-- It will then calculate and display the sum of the numbers, the quotient of the first divided by the second, the product of the two numbers, the difference between the first and the second, and the remainder of dividing the first by the second.

 

The program needs to be well documented and structured according to the standard provided.