Question: in C++ Main Function: ***Read random 1000 random integers from a .txt file***** USE FILE BUFFER Class will contain the methods below and an array

in C++

Main Function: ***Read random 1000 random integers from a .txt file***** USE FILE BUFFER

Class will contain the methods below and an array as the data structure.

Please use comments to identify constructors and methods in the program.

1. output all values

2. sum all values

3. output all add numbers

4. output al even numbers

5. enter a search value (should output the entered input of the value's locations)

6. output middle value (should be the values located in the middle of the array, but not an average value)

7. output first value in the array

8. output last value in the array

9. output highest value and print its location

10. output lowest value and print its location

11. Sort the values and print. ( Hardcode the bubble sort algorithm you will implement. )

12. Exit the program

please include all 12 functions and run the program check if the code is working. Thank you if you attach the pics of output of the program.

in C++

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!