SEATWORK: CP6 COMPRO/COMTECH 2ND YR
Monday, November 22, 2010 - - 0 Comments
Create a program that will ask for 5 nos and display the following:
a. sum of 1st and 3rd nos.
b. difference of 4th and 5th nos.
c. product of 2nd and 4th nos.
d. quotient of 1st and 5th nos.
do this in:
a. Scanner Method (SW1.java)
b. JOptionPane Method (SW2.java)
this is under the week3 project.
SAMPLE OUTPUT:
Enter 1st no: 5
Enter 2nd no: 2
Enter 3rd no: 1
Enter 4th no: 2
Enter 5th no: 5
The sum is 6
The difference is -3
The product is 4
The quotient is 1
I will check your program tomorrow.
Thanks
This entry was posted on 3:23 PM
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment