We have 20 Students from different levels (4290**** , 4280**** , 4270**** , 4260****) Every ID will start with one of those numbers .. (The ID cosist of 8 digits )
And their Grades in 1 subject..
It is supposed to print :
1- Students ID and their Grades.
2- Student ID that got the highest grade and the lowest grade and their and the ID Second two numbers starting from the left for the two students.
3- The number of students got grades equal to Average or higher.
4- The number of students got grades smaller than the Average.
5- The number os Students from each Level .
This is the program I wrote :
I don't know how to complete it .. ><Code:#include <iostream> #include <conio> void main() { int numberOfStudents [20] ; int score[100]; char grade; int ID ; int i , j ; for( i=0 ; i<20 ;i++) { cout << "Enter Student " << (i+1) << " ID " ; cin>> ID; cout<< "Enter the score "; cin>>score[j]; for( j=0;j<20;j++) { if(score[j]>=90) grade='A'; else if(score[j]>=80) grade='B'; else if (score[j]>=70) grade='C'; else if (score[j]>=60) grade='D'; else grade='F'; } } cout<<"Student "<<(i+1)<<" score is = "<<(score[j]) <<" and grade assigned is "<<grade<<endl; getch (); }
Any Help would be Gratefully Appreciated !!