Question: in c++ Problem 1 Overview: You will write a program that reads up to 100 numbers from a file. As you read the numbers, insert

in c++
Problem 1 Overview: You will write a program that reads up to 100 numbers from a file. As you read the numbers, insert them into an array in ascending order. Specifications: 1A. Write a function called addToArrayAsc. i. It should take three arguments - a. sortedArray[]: sorted array that should be able to hold at most 100 floats. b. numElements : the number of elements inserted so far. C. newValue : the incoming float value to be inserted into the sortedArray. ii. The addToArrayAsc function should return a count of the elements inserted so far (i.e. the current size of the array). The function header will appear as follows: int addToArrayAsc(float sortedArray[], int numElements, float newValue); NOTE: You should NOT use the in-built sort function provided by the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
