lab14c - -541.00 num 5 :: -8742.00 num 6 :: -12.25 biggest...

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, and then find which of the array values is the largest. Sample Data : 5 154 2451 541 5854 0 3 50.0 100.0 80.0 7 -99 -84 -45 -4554 -541 -8742 -12.254 Sample Output : num 0 :: 154.00 num 1 :: 2451.00 num 2 :: 541.00 num 3 :: 5854.00 num 4 :: 0.00 biggest = 5854.0 num 0 :: 50.00 num 1 :: 100.00 num 2 :: 80.00 biggest = 100.0 num 0 :: -99.00 num 1 :: -84.00 num 2 :: -45.00 num 3 :: -4554.00 num 4 ::
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -541.00 num 5 :: -8742.00 num 6 :: -12.25 biggest = -12.254 A+ Computer Science Arrays - www.apluscompsci.com Computer Science I Lab 14C BIGGEST NUMBER 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 :: Biggest.java Lab14c.java...
View Full Document

This note was uploaded on 01/24/2011 for the course COMP SCI 543 taught by Professor Mark during the Spring '10 term at Brown College.

Ask a homework question - tutors are online