Question: The first Array Assignment Outcome: Student will demonstrate the ability to use arrays Student will demonstrate the ability to sort and search arrays Student will

The first Array Assignment

Outcome:

  • Student will demonstrate the ability to use arrays
  • Student will demonstrate the ability to sort and search arrays
  • Student will demonstrate the ability to use methods

Program Specifications:

Write a program that does the following:

  1. Allows the user to determine how many random numbers between 1 and 100 are to be stored. In other words, the user could pick 10,500. You would generate and store 10,500 numbers randomly generated all between 1 and 100.
  2. Declare an array that stores the random numbers (total determined by user).
  3. Print out the array
  4. Sort the array
  5. Print out the array
  6. Search the array for a number between 1 and 100display found or not found
  7. Display each number from 1 to 100 and the number of times found in the array
  8. Display the average of the numbers in the array
  9. Display the highest number in the array
  10. Display the lowest number in the array
  11. Everything should be done using METHODS
  12. NO NEED FOR A MENU SYSTEM. Just call the methods in the sequence above
  13. Design tool = No

Submission Requirements:

  • You must follow the rules from the second assignment.

YOU CANNOT:

  • Use global variables
  • Use the word goto
  • Use the break command outside a case statement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!