Cop2551 intro to oop homework - create a java program that


Intro to OOP Homework

Purpose - Practice using arrays and array functions in a Java program.

Instructions - Create a Java program that performs the following tasks:

1. Declare an integer array capable of storing 15 values

2. Generate 15 random numbers using the java.util.Random class

A. The range of the random numbers should be between 0 and 1000

B. Store the random values in the array

3. Display the contents of the array on a single line

A. Separate the values using commas and spaces

4. Perform the following array-based functions

A. Determine the location of the minimum value in the array

B. Determine the location of the maximum value in the array

C. Determine the average value of the array

5. Display the results of the results of the array-based functions (see Example Output section)

A. Display average result to two (2) decimal places

Notes -

Display homework number and programmer's name at top of program output.

Ensure source code comments conform to class commenting standards.

Ensure program development conforms to class programming standards.

Submit the project source code as a single *.java file.

Submit a capture of the program output as a *.txt file.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Cop2551 intro to oop homework - create a java program that
Reference No:- TGS02765611

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)