Question: In C ++ implement the following two functions: void printTable( double *values, int n, intperRow); void sortValues(double *first, double *last); #endif With requirements: To test:

In C ++ implement the following two functions:
void printTable( double *values, int n, intperRow);
void sortValues(double *first, double *last);
#endif
With requirements:
 In C ++ implement the following two functions: void printTable( double
To test:
*values, int n, intperRow); void sortValues(double *first, double *last); #endif With requirements:
Array x[ ]
To test: Array x[ ] Results should look like this o void
Results should look like this
print Table (double *values, int n, int perRow) print the values as

o void print Table (double *values, int n, int perRow) print the values as a neatly-formatted table with the specified number of values per row, and each value in a field of width 10 showing 2 significant digits. o void sortvalues (double *first double *last) sort the values from first through last, where these parameters are pointers into the same dynamic array. Write your own sorting routine, such as the selection sort procedure presented in Chapter 7 but remember you should use pointer notation, not array notation to do it. You may write helper functions if you want, but they should use pointer notation too Use ptrtest2.cpp to test your implementations. Compile it as you did above, subsituting ptrtest2 for ptrtest1 in both places. This program expects three command line arguments in this order: an input filename, the number of values to read from the file, and the number of values to print per row. Here are two sample runs using data1.txt as the input file test2-out txt. Your results must exactly match if we test your program the same way, but you should ensure the program works for different inputs too

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!