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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply