Question: Program 2 - submit the source code, output screen, and both output data files Write a C++ program that randomly generates 25 numbers between 1...100
Program 2 - submit the source code, output screen, and both output data files Write a C++ program that randomly generates 25 numbers between 1...100 and stores them into an array. The program should contain two functions named PrintEven and Printodd. The PrintEven function prints only the even numbers in the array to the data file evennums.txt. The function also returns to the main program the total number of even numbers in the array. The Printodd function prints only the odd numbers in the array to the data file oddnumbers.txt. This function also returns to the main program the total number of odd numbers in the array. The main program prints the total number of even and odd numbers in the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
