Write a program, “NumSort”. The program will create an array of
type integer that holds 30 numbers between 0 and 50. The integers
have to be created randomly. Use the title, “The list before being
sorted”. Print the list in a 5 rows by 6 columns format. Then sort
the list in descending order, (big to small), using an insertion
sort. Print the new list using the title, “The list after being
sorted”, in the same format as the unsorted list. After the list is
sorted search for the number 27. If found print,
“27 was found in position # on the LIST”. If not found print,
“27 is not in the list”.
Java
Write a program, “NumSort”. The program will create an array of type integer that holds 30 numbers between 0 and 50. The
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am