Question: Language: C++ Language: C++ Write a program with several functions that perform the following tasks: a. Read the following 10 integer numbers from the file
Language: C++

Language: C++ Write a program with several functions that perform the following tasks: a. Read the following 10 integer numbers from the file "data.txt" into array A. 20 15 32 85 90 94 21 3 99 48 Call function ReadArray that reads numbers from the file "data.txt" into an array. b. Copy array A into array B in reverse order. Call function ReverseArray that copies an array into another array in reverse order c. Print the elements of Array A and B. Call function PrintArray that prints the elements of an array of any size d. Find the number of even elements in array A. Call function FindEven that finds and returns the number of even elements in an array of any size e. Find the index of the maximum number in array A. Call function ArrayMax that finds and returns the index of the maximum number in an array of any size f. Ask the user to input a key. Then search for the key in array A and inform the user about the existence (true/false) of the key in array. Call function KeySearch that searches for a key in an array of any size and returns true if the key was found, false otherwise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
