Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve task 1 c++ program Lab5_c125Hs11_211 (Protected View) - Word Jashanpreet Kaur JK Ga File Home Insert Draw Design Layout References Mailings Review View Help

image text in transcribedSolve task 1 c++ program

Lab5_c125Hs11_211 (Protected View) - Word Jashanpreet Kaur JK Ga File Home Insert Draw Design Layout References Mailings Review View Help Tell me what you want to do & Share X 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 1.11.2.1.3.1.1.1.5.1.6 1.7 1.3.1.9., 10, 11, 12 13 L 11 15 16 | 17 | 19 . Page 3 of 5 CSCI 125H.s11 Lab #5 Perform the Following Tasks Task 1: Array 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 Page 2 of 5 476 words BE E + 110% H Type here to search o W ? ENG 20:56 16-02-2021 Q 99+

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago