1.2. * Copyright (c) 2014, yantai university computer college
3. * All rights reserved.
4. * file name: test. CPP
5. * : Zhang Zhengang
6. * completion date: on November 24, 2014
7. * this version number: v1.0
8. *
9. * problem description: in the array will be stored in a certain group c + + program design, implementation and minimum points and the average score, the number of the students in the highest and lowest points, the output of their student id, finally and group size and performance is guaranteed within 0 ~ 100,
Description: 10. * input without
11. No
* program output:12. */
(CPP) view plaincopy in CODE view CODE to my CODE derived pills
# include & lt; Iostream>
using namespace std;
Int main (void)
{
Int I, n;
int a[100];//save the result array, not more than one hundred,
cout<& lt;" Team: how many students are there?" ;
cin> n;
cout<& lt;" Please enter the student achievement: ";
for(i=0; i
{
cout<& lt;" Enter the first "& lt; cin> a[i];
}
While (a [I] <0 | | a [I] & gt; 100);
Int=1, Max min=999, s=0 x;
for(i=0; i
If (a [I] & gt; Max)
Max=a, [I].
If (a [I]
S +=a, [I].
}
X=s/n.
cout
for(i=0; i
If (Max==a [I])
E++;
If (min==a [I])
F++;
}
cout<& lt;" The highest achievements "& lt;
If (a [I]==Max)
cout}
cout<& lt;" Get the lowest grades "& lt;
If (a==[I] min)
cout}
return 0;
}
Feeling: c + + rookie, guidance, and encourage comments, hey hey
CodePudding user response:
No problem, very good very good
CodePudding user response:
Wish the building Lord, in front of the pick up points...CodePudding user response:
to continue refuelingCodePudding user response:
very awesome