Question: 1. Write a C++ program that generates 1000 random integers ranging from 5 to 100 and stores them in an array called List. Then, the

 1. Write a C++ program that generates 1000 random integers ranging

1. Write a C++ program that generates 1000 random integers ranging from 5 to 100 and stores them in an array called List. Then, the program should display on the screen the contents of the array List in a reverse order (i.e. the last number in the list is displayed first and the number before last is displayed second, and so on). 2. Write a C++ function, lastLargestIndex, that takes as parameters an int array and its size and returns the index of the last occurrence of the largest element in the array. Also, write a program to test your function. CS.VS.976

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!