lab14d - 2.00 grade 2 :: 3.00 grade 3 :: 4.00 grade 4 ::...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab Goal : This lab was designed to teach you how to use an array. Lab Description : Instantiate an array, load it with values, total up all of the values in the array. Finally, find the average of all of the values. Sample Data : 5 100 90 85 72.5 95.6 3 50.0 100.0 80.0 3 93.4 -90.0 90.0 9 1 2 3 4 5 6 7 8 9 Sample Output : grade 0 :: 100.00 grade 1 :: 90.00 grade 2 :: 85.00 grade 3 :: 72.50 grade 4 :: 95.60 average = 88.62 grade 0 :: 50.00 grade 1 :: 100.00 grade 2 :: 80.00 average = 76.67 grade 0 :: 93.40 grade 1 :: -90.00 grade 2 :: 90.00 average = 31.13 grade 0 :: 1.00 grade 1 ::
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2.00 grade 2 :: 3.00 grade 3 :: 4.00 grade 4 :: 5.00 grade 5 :: 6.00 grade 6 :: 7.00 grade 7 :: 8.00 grade 8 :: 9.00 average = 5.00 A+ Computer Science Arrays - www.apluscompsci.com Computer Science I Lab 14D GRADES Lab Value - 100 +10 Bonus Output the numbers in sorted order! +10 Bonus Use a Scanner to read in the array values from the keyboard. basic array code int array = {3,4,5,65,6,7,8,81}; for(int i=0; i<array.length; i++) { out.println(array[i]); } Files Needed :: Grades.java Lab14d.java...
View Full Document

Ask a homework question - tutors are online