Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
1.2 kB
8
Indexable
Never
#include <iostream>
// #include <windows.h>
using namespace std;

main () {
	int choice;
	float CS, PE, PG, ME, MG, FE, FG, GWA;
	// system ("cls");
	cout<<"Enter Class Standing:";
	cin>>CS;
	cout<<"Enter Prelim Exam:";
	cin>>PE;
	PG=((CS*2)+PE)/3;
	cout<<"Prelim Grade is "<<PG<<endl;
	cout<<"Enter Class Standing:";
	cin>>CS;
	cout<<"Enter Midterm Exam:";
	cin>>ME;
	MG=(((CS*2)+ME)/3+PG)/2;
	cout<<"Midterm Grade is "<<MG<<endl;
	cout<<"Enter Class Standing:";
	cin>>CS;
	cout<<"Enter Final Exam:";
	cin>>FE;
	FG=(((FE*2)+CS)/3+MG)/2;
    if (FG>=95 && FG<=100) {
        cout<<"1.00 Passed";
    }else if(FG>=94 && FG<=96) {
        cout<<"1.25 Passed";
    }else if(FG>=91 && FG<=93) {
        cout<<"1.50 Passed";
    }else if(FG>=88 && FG<=90) {
        cout<<"1.75 Passed";
    }else if(FG>=85 && FG<=87) {
        cout<<"2.00 Passed";
    }else if(FG>=82 && FG<=84) {
        cout<<"2.25 Passed";
    }else if(FG>=79 && FG<=81) {
        cout<<"2.50 Passed";
    }else if(FG>=76 && FG<=78) {
        cout<<"2.75 Passed";
    }else if(FG==75) {
        cout<<"3.00 Passed";
    }else if(FG>=73 && FG<=74) {
        cout<<"4.00 Conditional";
    }else if(FG>=70 && FG<=72) {
        cout<<"5.00 Failed";
    }
    
	return 0;
}
Leave a Comment