Question: 1411116-Programming I Assignment Arrays & Functions) Due Date: 29/11/2017 1. (Table Max) write a function GetTableMax() that will have three integer parameters a, b and
1411116-Programming I Assignment Arrays & Functions) Due Date: 29/11/2017 1. (Table Max) write a function GetTableMax() that will have three integer parameters a, b and N. The function will do the following job: 1. If a is greater or equal to b, or the value of a or bis less than 1 or greater than 99 then the function will immediately return-1 The function will generate N pairs of random numbers R and Tand display their product on each line. 2. 3. The function will return the maximum value of the product of R and T. 4. Use setw) to format the output The main0 is provided, you will need to implement the function GetTableMax0 4 28 -99 4 12 . 48 735 1112 132 he nax is: 13 The nax i: 144 valid lep mualid Input int main() srand(time(e)) int a, b, N, max; coutcc"Enter a, b, and N: max GetTableMax(a, b, N); = if (max-1) cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
