Question: Solve Task 2 C++ program Lab5_c125Hs11_211 (Protected View) - Word Jashanpreet Kaur JK Ga File Home Insert Draw Design Layout References Review View Help &
Solve Task 2 C++ program
Lab5_c125Hs11_211 (Protected View) - Word Jashanpreet Kaur JK Ga File Home Insert Draw Design Layout References Review View Help & Share X 3 Mailings Tell me what you want to do PROTECTED VIEW Be careful_files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing 3.1 2.1.1 3.1.1.1.5.6.1:7:19 9 110 111 12 | 13 | 11:15 | 16 | 17 18 First, create a function called incNumber, which receives a parameter for an array of double types and increase the value of each array element by a random integer number between 5 to 80. 0 You may add any other formal parameters that are necessary. . Second, create another function called printValue that prints the sum of these array elements only for values that are greater than 30 and below 70. Write a complete C++ program to test the use of these two functions. Task 2: Array manipulation Write a program that initializes an array with twenty random integers and then displays the following outputs: All the odd numbers in the array. All elements in reverse order. Task 3: Array function and Two-dimensional array Write a function called show2D. Page 3 of 5 476 words BE ES + 150% H Type here to search o CH w ? ENG 21:19 16-02-2021 99+
Step by Step Solution
There are 3 Steps involved in it
To solve Task 2 in C you need to perform the following steps Step 1 Initialize an Array Create an ar... View full answer
Get step-by-step solutions from verified subject matter experts
