Question: (program) a. write,compile, and run a C++ program to input 10 integer numbers into an array named fmax and determine the maximum value entered. your

(program) a. write,compile, and run a C++ program to input 10 integer numbers into an array named fmax and determine the maximum value entered. your program should contain only one loop, and the maximum should be determined as array element values are being input (Hint: set the maximum equal to the first array element, which should be input before the loop uesd to unput the remaining array values.)

b. Repeat Exercise (a) , keeping track of both the maxim element in the array and the index number for the maximum. after displaying the numbers, display these two massages(replacing the underlines with the correct values):

the maximum value is:________

this is element number ______ in the list of numbers.

c.repeat exercise (b), but have your program locate the minimum value of data entered.

Find the maximum and minimum in the same program. Use an array of 10 integers. Use three functions - one to input the values in the array, one to find the maximum and one to find the minimum. Use the following numbers in the array: 23, 55, 2, 60, 58, 12, 13, 11, 89, 5.

Find both the maximum and minimum

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!