Question
In C++, Write a function called fillArray that will fill an array of any size with random numbers in the range of 1 - 100.
In C++, Write a function called fillArray that will fill an array of any size with random numbers in the range of 1 - 100.
Write a separate function called printArray that will print an array of any size.
Write a third function called countEvens which will count and return the number of even numbers in the array.
In main create an array that holds 25 ints. Use your functions to fill, print, and count the number of even numbers. You should
Fill the array
Print the array
Print the number of even numbers in the array
What not to do
Using any of the following will drop your grade for this assignment by 70%
global variables
cin in any funciton other than main
cout in any funciton other than main and printArray
goto statements
Step by Step Solution
3.58 Rating (158 Votes )
There are 3 Steps involved in it
Step: 1
include include ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Fundamental Statistics for the Behavioral Sciences
Authors: David C. Howell
8th Edition
1285076915, 978-1285076911
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App