Chapter 4 Exercise 1,2

EX 4-1
1-a.) x * = 2
b.) y % = 2
2-a.) x = x + 5
b.)x = x * 5

EX 4-2
1-a.) z = Math.sqrt(4) = 2
b.) z = Math.round=d(3.6) = 3
c.) z = Math.pow(4,3) = 64
d.) z = Math.roung(Math.sqrt(3.6)) = 1
2-a.) System.out.print(generator.nextInt(20)+1);
b.) System.out.print(generator.nextDouble(10));

Published in:  on September 28, 2007 at 3:28 pm Leave a Comment

The URI to TrackBack this entry is: http://nina19899.wordpress.com/2007/09/28/chapter-4-exercise/trackback/

RSS feed for comments on this post.

Leave a Comment