Question: Using the library and the library, please write a C++ program, which uses the srand(), time() and rand() system library function calls to create a

Using the library and the library, please write a C++ program, which uses the srand(), time() and rand() system library function calls to create a series of 100 positive pseudo-random numbers. Please allow the user to enter a seed value for the srand function call. Also, please establish two counters which keep count of two types of random numbers as follows. The first will tally the count of odd numbers generated and the second will tally the count of even numbers generated. Please display each random number and its type either even or odd. After the 100 random number have been processed, the program should display the total of each type. Please test all cin >> inputs appropriately.

Thank you so much,

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!