Cop2551 intro to oop homework - create a java program that


Intro to OOP Homework-

Purpose - Practice sorting arrays 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 unsorted contents of the array on a single line.

A. Separate the values using commas and spaces.

4. Sort the array in ascending order using the Bubble Sort algorithm.

5. Display the sorted contents of the array on a single line.

A. Separate the values using commas and spaces.

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:- TGS02765620

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)