Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ Please compile & execute code in Command Prompt or Terminal / DO NOT USE IDE Please Include a Snipping Photo of the Whiteboard

Using C++

Please compile & execute code in Command Prompt or Terminal / DO NOT USE IDE

Please Include a Snipping Photo of the Whiteboard / Pseudo Code of the program below for hardcoded common algorithms

Implement a class for Task 1 and Hardcode algorithms for Linear Search, Middle Value, First Value, Last Value, Highest Value, Lowest Value, and Bubble Sort.

Main Function: Control of operation

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

In your Class declare and fill the array with 1000 random integers read from the .txt file

use fstream to import from randomly generated out side txt 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: New Enter a search value / Implement Linear Search

Method 6:New Output Middle Value (Values in the Middle)Not Average

Method 7:New Output First Value in the Array

Method 8: New Output Last Value in the Array

Method 9: New Output the Highest Value and its location in the array. (Hardcode the algorithm.)

Method10: New Output the Lowest Value and its location in the array. (Hardcode the algorithm.)

Method 11: New Sort and then output values. Hardcode the bubble sort algorithm you will implement.

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago