Question: In c++ how to code In c++ requriements are these ***The parameters of the FindMaxNumber function are Must be a pointer variable first : there
In c++ how to code
In c++
requriements are these
***The parameters of the FindMaxNumber function are Must be a pointer variable
first : there are 10 students' math grades
a. students number : 1,2,3,4,5,6,7,8,9,10
b. math grade : 90,88, 85, 55 , 47, 92, 87, 30 , 89 , 55
seconds : find the studnet who get the higest math grade
third : math grades are only integer
last : using the integer array
write the FindMaxNumber
void main()
{ int grade[10] = { 90, 88, 85, 55, 47, 92, 87, 30, 89, 55 };
int maxGradeIndex = 0;
maxGradeIndex = FindMaxNumber(grade);
cout << "Best grade = " << grade[maxGradeIndex] << ' ';
cout << "StudentID = " << maxGradeIndex + 1 << ' '; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
