



Year-Goop x 5 Part 2- GooglexMicrosoft Word-ch le.php/12344 9/ch6-1 Jab_array_single.pdf (array.cpp) You are going to make a program with an array of integer values. You will create 2 operations on the array for this lab (and 6 more for assignment 6) and call each operation from a switch using a do-while loop. 1. main function Declare a const for the size of the array inside the main (don’t make it global). Use 5 for the size of the array Create an array with SIZE. Compile your program now Make sure it compiles before you move onto 2 2. fillArray function Fill the array with numbers entered from the keyboard. Check page 10 in “Lecture Notes 6-1: arrays” on CC Call fillArray in the main function. Compile & Run your program now Make sure it runs perfectly (the user gets to enter 5 numbers) before you move onto #3. 3. printArray function. Output the contents of the array as shown below → Check page 10 in “Lecture Notes 6-1 : arrays” on CC Don’t forget to use const if you are not changing the array in a function. void printArraycons int all, ????) Sample run The numbers in the array are 20 16 32 80 10 Call printArray in the main function. Compile & Run your program now Make sure it runs perfectly (the user gets to enter 5 numbers and those 5 numbers should be shown in the same format as the above sample run) before you move onto 4