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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!