Page 1 of 1

in c please now n Exercise 2 - Exercise Objective using nested loops working with functions to possess arrays ion Proble

Posted: Fri Apr 29, 2022 7:02 am
by answerhappygod
in c please now
n
Exercise 2 -
Exercise Objective
using nested loops
working with functions to possess arrays
ion
Problem Description
Create a new project named LabRevisionEx2. Use this project to create
• A function named rand_array that takes as argument an array of integers and its size. The function should initialize the array elements with random values between -5 and 5 (inclusive)
• A function named print_array that takes as argument an array of integers and its size, the function prints the elements of the array separated by comma","
• A function named process _array that takes as argument an array of integers and its size, the function returns how many elements in the first half of the array appears in the second half of the array
• Create a program that
o prompts the user to enter an integer N
o creates an array of integers of size N
o uses rand_array function to initialize the array with random values
o uses print array to print array elements
o uses process array to count how many elements in the first half of the array appears in the second half of the array