Answered step by step
Verified Expert Solution
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:
- 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.
- Declare an array that stores the random numbers (total determined by user).
- Print out the array
- Sort the array
- Print out the array
- Search the array for a number between 1 and 100display found or not found
- Display each number from 1 to 100 and the number of times found in the array
- Display the average of the numbers in the array
- Display the highest number in the array
- Display the lowest number in the array
- Everything should be done using METHODS
- NO NEED FOR A MENU SYSTEM. Just call the methods in the sequence above
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started