Question
I need help with Arrays in C++! Please write a program which has a void insertValue(int readInts[],int& count ) function and takes the following 2
I need help with Arrays in C++! Please write a program which has a void insertValue(int readInts[],int& count ) function and takes the following 2 parameters. using
srand(time(NULL));
for(int i = 0; i < 10; i++)
{
readInts[i]= rand() %100;
}
for(int i = 0; i < 10; i++)
{
cout << readInts[i] << " " ; (USE THIS RAND number code to generate random numbers )
in the function using your array with random number , if there is an odd number , INSERT a new value one bigger than the odd number found after every odd number and print the new array.
Please use comments& explain what you are doing in the for loop &etc
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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 Started