Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions