lab10 - Lab 10: Java Programming By the end of this lab,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 10: Java Programming By the end of this lab, you will have practiced JAVA arrays, and looping structures that could be on your next exam: 1. Write a program called ArrayDemo using the specifications below: a. Create a method called fillArray that will take in an array of integers as a parameter and using a looping structure will fill each array element with 25* it’s index value b. Create a method called printArray that will take in an array of integers as a parameter and using a looping structure print each element. c. Create a method called searchArray that will take in an integer value as a parameter that represents a key value to be found within the array. This method will return a true if the value is found and a false if not found. Use a linear search algorithm and your code should be as efficient as possible. d. See the start of ArrayDemo below: public class ArrayDemo{ public static void main (String [] args){ int [] numbers = new int[50]; fillArray(numbers);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/09/2012 for the course BIO 1 taught by Professor Smith during the Spring '11 term at Cuyahoga CC.

Page1 / 3

lab10 - Lab 10: Java Programming By the end of this lab,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online