Question: C++ Programming The program will generate an array called numArray of 10 random integer numbers greater than 1 and less than or equal to 100.

C++ Programming

The program will generate an array called numArray of 10 random integer numbers greater than 1 and less than or equal to 100. The program should ask the user to enter a number between 1 and 100 (userNum). The program should then display the numbers in the array that are larger than the number the user entered.

You will need a random number generator called ranNumber and use it to populate the integer array called numArray with 10 numbers greater than 0 and less tan or equal to 100. Ask the user to enter a number called userNum between 1 and 100. Create a void method called displayGreaterThan that uses the a for loop to step through the array and an if statement to compare the array contents to the number the user entered. The method should display the numbers from the array that are greater than the number the user entered. Be sure to prevent incorrect entries.

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!