Design a program that generates the general average of four grading systems (Prelim, Midterm, Prefinals and Finals). Display the remarks and Equivalent Grade as output based on the following given scale. *
#include<iostream>
using namespace std;
int main()
{
double Prelim, Midterm, Prefinals,Finals,total=0;
cout<<"Enter prelim grade: ";
cin>>Prelim;
cout<<"Enter Midterm grade: ";
cin>>Midterm;
cout<<"Enter prefinals grade: ";
cin>>Prefinals;
cout<<"Enter Finals grade: ";
cin>>Finals;
total=Prelim*0.3+Midterm*0.3+Prefinals*0.4+Finals*0.4;
cout<<"Final grade: "<<total<<endl;
return 0;
}
Comments
Leave a comment