Question: 3. Consider the following function declarations - void getSeq (double xl, int sX): void showseq (double xl. int sx) int getMax ( (double x), sx)

 3. Consider the following function declarations - void getSeq (double xl,

3. Consider the following function declarations - void getSeq (double xl, int sX): void showseq (double xl. int sx) int getMax ( (double x), sx) The functions perform following task vold shoxsumequare (double xil, int 8%) getseq - performs the task of reading a sequence of numerical values taken as user input and stores them in into a double array. The array to store t parameter to the function and the number of and the number of values to be taken as input is the second parameter input. he data is the first . showseq performs the printing a sequence of numerical values on the standard console which are stored in an array. The array storing the data is the first parameter to the function and the number of and the number of values in the array is the second parameter input. showsumSquare - performs the task of computing the summation of the square of the values stored in an array. The array having the stored data is the first parameter to the function and the number of and the number of values to be taken as input is the second parameter input. getMax- performs the task of finding the maximum value of from a sequence of numerical values which are stored in an array. The array storing the data is the first parameter to the function and the number of and the number of values in the array is the second parameter input. Write a C++ program using the above functions so that the program performs following tasks in order. 1. Take the user input for the number of values to read from the user. 2. Invoke getseq function to read the values from the user. 3. Invoke showseq function to print values passed as the input. 4. Invoke showsumSquare to calculate and print the summation of square of the values taken as input. 5. Invoke getMax to calculate and print the maximum of the values taken as input

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!