Question: Write the following functions: void getinput( int & N, int& lower, int& upper) which asks the user to enter three integer values where N is
Write the following functions: void getinput( int & N, int& lower, int& upper) which asks the user to enter three integer values where N is the number of values, and lower and upper represent a range of values. void EvenOdd(int N, int lower, int upper, int & nEvens, int & nOdds) which generates N random numbers between lower and upper and returns the number of evern and odd numbers. Write a function main() that calls the function getlnput() to get N, lower and upper and then pass them to EvenOdd) to get number of even and odd nu umbers, which are printed by the main). Input/output Samples: "CAUsers110400Desktoplspring 2012-2013Programming NLabsVL ab12-Edexe. nber, lower, upper: 10 5 15 nter nu he range of input values is between 5 and 15 nunber of even nunbers is 4 and the nunber of odd nunbers is 6 rocess returned 0 (0x8> execution tine : 16.692 s ress any key to continue CAUsers 10400VDesktop Spring 2012-2013 Programming ALabs ab12-ExL.exe o0 ter nunber, lover, upper 15 38 5S he range of input values is between 38 and 55 he nunber of even nunbers is 9 and the nunber of odd nunbers is 6 rocess returned 0 execution tine : 17.067 s ress any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
