grade - cout<< "EXCELLENT" << endl...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 GRADES # include <string> using namespace std int main() { string name float mg float fg float sg cout<<"Name:" cin>> name cout<<" "<< endl cout<<"Midterm Grade:" cin>> mg cout<<" "<<endl cout<<"Final Grade:" cin>> fg cout<<" "<<endl sg= (mg/3)+(2*fg/3) cout<<"Semester Grade:"<< sg <<endl
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 cout<<" "<<endl cout<<"Remarks:"
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout<< "EXCELLENT" << endl else if ((sg >= 80) && (sg <=89)) cout<< "SATISFACTORY" << endl else if ((sg >= 75) && (sg <=79)) cout<< "PASSED" << endl else if ((sg >= 50) && (sg <=74)) cout<< "FAILED" << endl else if (sg <= 50) cout<< "INVALID" << endl else if (sg >= 100) cout<< "INVALID" << endl return 0 }...
View Full Document

This note was uploaded on 07/27/2011 for the course COL 201 taught by Professor Magtibay during the Winter '10 term at De La Salle Lipa.

Page1 / 2

grade - cout<< "EXCELLENT" << endl...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online