chap 4 notes 18 - && score< 70 grade='D else...

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

View Full Document Right Arrow Icon
18 #include <iostream> using namespace std; int main( void ) { int score; char grade; cout << "Enter the score : " ; cin >> score; if (score >= 90 ) grade= 'A' ; else if (score >= 80 && score < 90 ) grade= 'B' ; else if (score >= 70 && score < 80 ) grade= 'C' ; else if (score >= 60
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: && score < 70 ) grade= 'D' ; else grade= 'E' ; cout << "\ nThe Letter Grade for this score “ << score << " is " << grade; return ; } if…else if Example Since the previous expression is true, the remaining branches are skipped....
View Full Document

This note was uploaded on 11/16/2011 for the course COP 2271 taught by Professor Staff during the Fall '11 term at University of Florida.

Ask a homework question - tutors are online