Grades3 - " cin>> score cout<< endl<< endl...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
0.// file: Grades.cpp // author: j. dzuback // modified: // date: / /* ********************************************** The program reads a value from the keyboard ********************************************** */ #include <iostream> #include <iomanip> #include <string> # using namespace std; u int main() { int score; char grade; string newGrade; s cout << "Enter an integer score earned in a course "
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .."; cin >> score; cout << endl << endl; c // STUDENT -- insert code/modify the program according // to the Experiments in this lab. / if (score > 100 && score < 25) cout << "Warning!! The score is outside the valid range." <<endl; else cout <<"Score is in valid range." << endl; c cout << endl << endl << "***** end of Grades.cpp *****"; cout << endl; return 0; } // end of main...
View Full Document

This note was uploaded on 02/08/2011 for the course CSC 101 taught by Professor Joedzuback during the Spring '11 term at Union County.

Ask a homework question - tutors are online