Instruction:
For this lab, we are continuing the program that we wrote in class to practice further working with array in functions.
First copy the following program into your lab9, and then work implemen
several functions. You don't need to modify the main function, which already includes
calls to these functions.
lab9.cpp
Functions:
Implement the following functions one by one, and test them one by one.
void MultiplyData (int a[], int size, int factor);
//search for value in the (partially-filled) array int Search (int a[], int size, int value);
/* repeat for all i in 0, size-2 compare a[i] with a[i+1] if a[i] is larger than a[i+1] then the array is not sorted (return false) if we finish the loop, and hasn't return false, then the array is sorted (return true) */
bool IsSorted (int a[], int size);
Coding Style Requirement:
How to submit
Please submit your program (which has to be named lab9.cpp) to the following webpage: lab9 submission link.