Can someone check these C++ code for me to see they\'re right (formatting, spaci
ID: 3596480 • Letter: C
Question
Can someone check these C++ code for me to see they're right (formatting, spacing, indenting)
Assignment 4 Assignment 4 Global Scope 48I7 and implement the functionality 49 poid seedRNG(int seed) 50 51 // gets min and max void getMinMax(int a, int b, int c, int & min, int & max) 99 100 101 102 103 104 105 106 107 108 109 110 srand (seed); if (a>b && a>c) ax = a //gets random numbers between min and max int getRand (int min, int max) if (b>a &&bc;) 54 *max = b; else return rand() % max + min; *max = c; if (akb && aExplanation / Answer
Answer
In the above code the formatting,indenting & spacing is correct.
Since for every function,
the first line i.e function prototype shouldn't have any indentation
the next level of lines in side the function scope should have one tab space indentation.
Further level of lines inside should have 2 tab spaces of indentation
The above rules are followed within all the functions you provided .
Even you provided single line comments at the top of every function to give its description which is also appropriate.