create a pusedocode #include #include #include using namespace std; int main (){ float ga,fir,sec,thir,fin, q1, q2, q3, L1, L2, L3, L4, LP,t,fe,le,p,q; char rem; int c; home: cout<<"\t\tComputation of Grades" << endl; cout<<"\n\nMajor Examinations (100 pts each)" <> fir ; cout<<"Second: "; cin>> sec ; cout<<"Third: "; cin>> thir ; cout<<"Final: "; cin>> fin ; cout<<"\nQuizzes (40 pts each)" <> q1 ; cout<<"Qz # 2: "; cin>> q2 ; cout<<"Qz # 3: "; cin>> q3 ; cout<<"\nLaboratory Exercises (50 pts each)" <> L1 ; cout<<"Exer #2: "; cin>> L2 ; cout<<"Exer #3: "; cin>> L3 ; cout<<"Exer #4: "; cin>> L4 ; cout<<"\nLaboratory Project (100 pts): "; cin>> LP ; t=(((((fir+sec+thir)/300)*85)+15)*.3); fe=((((fin/100)*85)+15)*.3); q=(((((q1+q2+q3)/120)*85)+15)*.1); le=(((((L1+L2+L3+L4)/200)*85)+15)*.1); p=(((LP/100)*85+15)*.2); ga= t+fe+q+le+p; cout<< "\n\n\t\t\t\tGen.Av.:" << round(ga) <=95){ cout<< "Excellent"; } else if (round(ga)<=94 && round(ga)>=90){ cout<< "Very Good"; } else if (round(ga)<=89 && round(ga)>=85){ cout<< "Good"; } else if (round(ga)<=84 && round(ga)>=80){ cout<< "Satisfactory"; } else if (round(ga)<=79 && round(ga)>=75){ cout<< "Fair"; } else if (round(ga)<75){ cout<< "Failed"; } else { cout<<"Error! Please Check Input Score!\n"; system("pause"); system ("cls"); goto home; } cout<<"\n\nPress to Re-run the Program" < to exit" <
create a pusedocode
#include<iostream>
#include<cmath>
#include<conio.h>
using namespace std;
int main (){
float ga,fir,sec,thir,fin, q1, q2, q3, L1, L2, L3, L4, LP,t,fe,le,p,q;
char rem;
int c;
home:
cout<<"\t\tComputation of Grades" << endl;
cout<<"\n\nMajor Examinations (100 pts each)" <<endl ;
cout<<"First: ";
cin>> fir ;
cout<<"Second: ";
cin>> sec ;
cout<<"Third: ";
cin>> thir ;
cout<<"Final: ";
cin>> fin ;
cout<<"\nQuizzes (40 pts each)" <<endl ;
cout<<"Qz # 1: ";
cin>> q1 ;
cout<<"Qz # 2: ";
cin>> q2 ;
cout<<"Qz # 3: ";
cin>> q3 ;
cout<<"\nLaboratory Exercises (50 pts each)" <<endl;
cout<<"Exer #1: ";
cin>> L1 ;
cout<<"Exer #2: ";
cin>> L2 ;
cout<<"Exer #3: ";
cin>> L3 ;
cout<<"Exer #4: ";
cin>> L4 ;
cout<<"\nLaboratory Project (100 pts): ";
cin>> LP ;
t=(((((fir+sec+thir)/300)*85)+15)*.3);
fe=((((fin/100)*85)+15)*.3);
q=(((((q1+q2+q3)/120)*85)+15)*.1);
le=(((((L1+L2+L3+L4)/200)*85)+15)*.1);
p=(((LP/100)*85+15)*.2);
ga= t+fe+q+le+p;
cout<< "\n\n\t\t\t\tGen.Av.:" << round(ga) <<endl;
cout<< "\t\t\t\tRemarks:" << rem;
rem:
if (round(ga)<=100 && round(ga)>=95){
cout<< "Excellent";
}
else if (round(ga)<=94 && round(ga)>=90){
cout<< "Very Good";
}
else if (round(ga)<=89 && round(ga)>=85){
cout<< "Good";
}
else if (round(ga)<=84 && round(ga)>=80){
cout<< "Satisfactory";
}
else if (round(ga)<=79 && round(ga)>=75){
cout<< "Fair";
}
else if (round(ga)<75){
cout<< "Failed";
}
else {
cout<<"Error! Please Check Input Score!\n";
system("pause");
system ("cls");
goto home;
}
cout<<"\n\nPress <Enter Key> to Re-run the Program" <<endl;
cout<<"\nPress <any key> to exit" <<endl;
cin.ignore();
c=getch();
if (c==13){
system("pause");
system("cls");
goto home;
}
return 0;}
Step by step
Solved in 3 steps