Write a function called initializeArray that receives an array, its size, and two integers and initializes the array with random values between the first integer and the second integer. Write another function called printArray that receives an array and its size and prints the array elements in a column. Write a test program that declares and initializes an array of size 20 with random values between 0 and 10 inclusive, and then prints the array using the above functions.
1) Write a function called initializeArray that receives an array, its size, and two integers and
initializes the array with random values between the first integer and the second integer. Write another
function called printArray that receives an array and its size and prints the array elements in a column. Write
a test
and then prints the array using the above functions.
2). Write a function called evenOdd that receives an integer and determines if it is even or odd.Write a test program that initializes an integer array of size 50 with random integers between 1 and 99
inclusive using initializeArray (from question 1) and determines and displays the number of odd or even
numbers in the array using evenOdd.
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images