Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Just B!! Write, compile, and run a C++ program to input 10 integer numbers into

ID: 3646414 • Letter: J

Question

Just B!!



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 used to input the remaining array values.)
b. Repeat Exercise 8a, keeping track of both the maximum element in the array and the index
number for the maximum. After displaying the numbers, display these two messages
(replacing the underlines with the correct values):
The maximum value is: ____
This is element number ___ in the list of numbers

Explanation / Answer

#include int main() { int fmax[10], Temp=0,Number=0; for( int i=0;i