Question: Main Function: Control of operation Class will contain the methods below and an array as the data structure. The array will be a Class Variable
Main Function: Control of operation
Class will contain the methods below and an array as the data structure.
The array will be a Class Variable
In your Class declare and fill an array with 1000 random integers between 1 - 1000 from your .txt file used in previous tasks.
Filling the array with random integers should happen in the class constructor.
***Hint: use the class constructor.
Algorithm outputs below should remain the same
main function :
class constrctor:
1.output all value:
2.output sum all value:
3.output All odd numbers:"
4. Output All even numbers:
5.Enter a search value / Implement Linear Search
6.: Output Middle Value (Values in the Middle)
Not Average
7. Output First Value in the Array
8.Output Last Value in the Array
9.Output the Highest Value and its location in the array. (Hardcode the algorithm.)
10.Output the Lowest Value and its location in the array. (Hardcode the algorithm.)
11. BUBBLE SORT:
please put it menu step by step and comment every line
code by C++ thanks.
do not copy code from somebody pleaae
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
