Question: Exercise 1: Write a C++ program that asks the user: How many random numbers would you like to see?, then the program will: a. Generate

 Exercise 1: Write a C++ program that asks the user: "How

Exercise 1: Write a C++ program that asks the user: "How many random numbers would you like to see?, then the program will: a. Generate and print the random numbers between 1 and 1000. b. Display how many even numbers were generated. c. Display how many odd numbers were generated. Sample run: How many random numbers would you like to see? 24 597 529 364 825 427 566 654 152 300 118 368 553 89 275 470 187 287 539 674 306 31 984 426 580 Number of even random numbers: 13. Number of odd random numbers: 11

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!