Question: Help me with this in c++ thanks!!!!!! 04. Code, compile and upload the following program. Name it Q5.cpp Create an integer array of size 10.

Help me with this in c++ thanks!!!!!!

Help me with this in c++ thanks!!!!!! 04. Code, compile and uploadthe following program. Name it Q5.cpp Create an integer array of size

04. Code, compile and upload the following program. Name it Q5.cpp Create an integer array of size 10. Use a constant CAPACITYy a) Create a time based seed for random number generation. ET-575 Second M IaterH EXdi 1 the array with random numbers between 0 and CAPACITY 1 inclusive. c) Use a separate loop to output the array values to console. d) Verify that array values change every time the program is executed e) Create another array and add the necessary code to make each element in the new array unique. Output the array. Hint: do steps a to d first and then do e. Example Output1 Random array: 8 2 1 3 9 2 3 40 6 Unique array: 6 8 7 3 1 45 2 0 9 Example Output 2 Random array: 9 47 5 3 4 251 6 Unique array: 8 1 3 2 9 6 7 5 4 0 05: Code, compile and upload the following program. Name it 05.cpp Create a 2 dimensional integer array named "numbers" of size 5x5. Use a global constant integer SIZE a) Create a void function named "print" that will output the array in the form of a matrix(i.e. by rows and columns) b) Print the contents of the un-initialized array. c) Create a void "populate" function which fills the array with random numbers between 0 and 10. Use a time based seed. d) Print the contents of the initialized array. e) Create a void function "toodd" that changes all even values in the array to odd values. Print the array f) Create a void function "toEven" that changes all odd values in the array to even values. Print the array Your main code should look like this: main() Introduction to C+t Programming Design and Impiementation Page 4 print( numbers); populate( numbers print( numbers) toEven ( numbers print( numbers) toodd( numbers ) print ( numbers return 0 sample output: The array is: Row 0: 6422284, 1970233336, 8, 1970170515, 1970170506, Row 1: 264870077, 4199136, 4199136, 0, 4201552, Row 2: 6422240, 6422296, 6422476, 1970194544, 2061180777, Row 3: 2, 1970170506, 1970170749, 4201552, 6422368, Row 4: 4201643, 4201552, 0, 3756032, 4194432, The array is: Row 0: 1, 7, 4, 0, 9, Row 1: 4, 8, 8, 2, 4, Row 2: 5, 5, 1, 7, 1, Row 3: 1, 5, 2, 7, 6, Row 4: 1, 4, 2, 3, 2 The array is: Row 0 2, 8, 4, 0, 10, Row 1: 4, 8, 8, 2, 4, Row 2: 6, 6, 2, 8, 2, Row 3: 2, 6, 2, 8, 6, Row 4: 2, 4, 2, 4, 2, The array is: Row 0: 3, 9, 5, 1, 11, Row 1: 5, 9, 9, 3, 5, Row 2: 7, 7, 3, 9, 3, Row 3: 3, 7, 3, 9, 7, Row 4: 3, 5, 3, 5, 3, Introduction to C++ Programming Design and Implementation Pa

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!