Java NCC Programming: Exercise 2
Exercise 2
Due on April 12 2009, 12NN
Problem: Create a java program that will ask two numbers of type integer. Use JOptionPane. Compute for:
a. Sum
b. Difference
c. Product (type double)
d. Quotient (type double)
e. Modulo
f. Highest between the two integers
Your output should be (using JOptionPane):
First Number: <1st>
Second Number: <2nd>
Sum: <1st> + <2nd>
Difference: <1st> - <2nd>
Product: <1st> * <2nd>
Quotient: <1st> / <2nd>
Module: <1st> % <2nd>
Highest between the two:
<< Home