Question: Write a C++ program that contains the following functions ReadIn (A Function that request the user to fill up 2 arrays of size 10) CompareFunc

Write a C++ program that contains the following functions

ReadIn (A Function that request the user to fill up 2 arrays of size 10)

CompareFunc (A function that takes in 2 arrays and compares them, and outputs an appropriate message)

ReverseFunc ( A function that takes in 2 arrays, and copies the content of the the 1st into the 2nd in reverse order)

PrintForward (A function that prints the content of an array in normal order)

PrintBackword (A function that prints the content of an array in reverse order)

PrintBoth (A function that takes two arrays and prints them, one forward, one backwards)

e.g

1 5

2 4

3 3

4 2

5 1

Write a C++ program that contains the following functions

A function that reads in 15 numbers from a file and into an array passed as an input parameter

A function that takes in an integer array, and a particular key (item to be searched) and returns the location of the item in the array

A function that takes in an integer array and a particular key and returns true if the key is contained in the array, and false otherwise

A function that takes in an integer array and a particular key and returns the location of the 3rd occurrence of the key, when this function is used, it should output the location or an appropriate message otherwise.

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!