Question: In C++ Programming Exercise Write a program that creates an array with nine integer numbers. The program will display the largest number. Modify the program

In C++In C++ Programming Exercise Write a program that creates an array with

Programming Exercise Write a program that creates an array with nine integer numbers. The program will display the largest number. Modify the program so that it generates an array of nine integers randomly between 1- 100, then display its largest number. // main module Module main() // Declare a constant for the array size Constant Integer SIZE = 9 // Declare an integer array Declare Integer numbers[SIZE] -1, 2, Declare a variable to hold the largest number Declare Integer large // Find the largest number Set large = finaMax (numbers, 1, SIZE) // Show result Display "Largest number,large End Module // The findMax function accepts an array // and returns the largest value in the array. Function Integer findMaxInteger array[l, Integer start, Integer end) Declare Integer answer If start-= 1 then End If Set answer = array [start] If start > end then Return answer If arrayIstart] > ansier then End If else Set answer = array[start] Return findMax(array, start + 1, end) End If End Function

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!