Sams Teach Yourself Java™ in 24 Hours (Covering Java 7 and Android)

(singke) #1
ptg7068951

Workshop 119

Activities


To g i v e y o u r s e l f a n a r r ay o f e x p e r i e n c e s t o d r aw f r o m l a t e r,you can expand
your knowledge of this hour’s topics with the following activities:


. Create a program that uses a multidimensional array to store student
grades. The first dimension should be a number for each student,and
the second dimension should be for each student’s grades. Display the
average of all the grades earned by each student and an overall aver-
age for every student.
. Write a program that stores the first 400 numbers that are multiples of
13 in an array.


To s e e J av a p r o g r a m s t h a t i m p l e m e n t t h e s e a c t i v i t i e s ,visit the book’s website
at http://www.java24hours.com.

Free download pdf