HII ... i was doing this program where i can enter student grades and the program will tell me like the over-roll grade .. and stuff .. i am almost done i think but i am stuck now soo plz if u can make this work plz help .. THANK YOU
#include<iostream.h>
#include<iomanip.h>
void main (void)
{
double ID[100], MExam1[100], MExam2[100], FExam[100], Overall1[100];
char Grade1[100],N,i,A,B,C,D,F;
do{
cout<<"\n<<How many Students will be entered? N= ";
cin>>N;
for (i=1; i<=N; i++)
{
cout<<"\n\n<<Enter Student's ID number: ";
cin>>ID[i];
cout<<"\n<<Enter Student's First Midterm Exam Grade: ";
cin>>MExam1[i];
cout<<"\n<<Enter Student's Second Midterm Exam Grade: ";
cin>>MExam2[i];
cout<<"\n<<Enter Student's Final Exam Grade: ";
cin>>FExam[i];
Overall1[i]=MExam1[i]*0.3+MExam2[i]*0.3+FExam[i]*0.4;
}
do{
if(Overall1[i]>89)
{
cout<<endl<<"Grade1[i]="<<'A';
}
else if(Overall1[i]>79)
{
cout<<endl<<"Grade1[i]="<<'B';
}
else if(Overall1[i]>69)
{
cout<<endl<<"Grade1[i]<<="<<'C';
}
else if(Overall1[i]>59)
{
cout<<endl<<"Grade1i]="<<'D';
}
else
{
cout<<endl<<"Grade1[i]="<<'F';
}
while(Grade1[i]>=0 && Grade1[i]<=100);
cout<<"\n\n\nStudent ID# MTI MTII Final Overall Grade";
cout<<"\n====================================================================";
for (i=0; i<=N-1; i++)
{
cout<<"\n\n Student ID#"<<ID[i]<<"\t";
cout<<"\n"<<setprecision(3)<<setw(5)<<MExam1[i]<<"\t";
cout<<"\n"<<setprecision(3)<<setw(5)<<MExam2[i]<<"\t";
cout<<"\n"<<setprecision(3)<<setw(5)<<FExam[i]<<"\t";
cout<<"\n"<<setprecision(3)<<setw(4)<<Overall1[i]<<"\t";
cout<<"\n"<<setprecision(3)<<setw(4)<<Grade1[i]<<"\t";
}
}