Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program and utilize a class that will read random number data from the .txt file. Your program will read data from the

Write a C++ program and utilize a class that will read random number data from the .txt file.

Your program will read data from the file and push into an array.

Once data is in the array create methods that will output values.

  • Attach Snipping Photo of Source Code and Output

    • Make sure to include a photo of each method executing.

  • Attach Snipping Photo of Text File

Method 1:

Output all values

Method 2:

Output the sum of all values

Method 3:

Output all odd numbers

Method 4:

Output all even numbers

Method 5:

Output Middle Value (Values in the Middle)

Not Average

Method 6:

Output First Value in the Array

Method 7:

Output Last Value in the Array

Method 8:

Output the Highest Value and its location in the array. (Hardcode the algorithm.

Method 9:

Output the Lowest Value and its location in the array

Method 10:

Sort and then output values. Hardcode the bubble sort algorithm you will implement.

Method 11:

Harcode and Implement Binary Search Algorithm.

Allow user to input value to search.

The method should output value does not exist if not present in the array.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

Evaluate employees readiness for training. page 289

Answered: 1 week ago

Question

=+5 Does this case provide an example of the future for IHRM?

Answered: 1 week ago

Question

=+4 How did it affect HR?

Answered: 1 week ago