chap 4 notes 22 - 80 ) grade= 'C' ; else if (score...

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

View Full Document Right Arrow Icon
22 #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 <
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 80 ) grade= 'C' ; else if (score &gt;= 60 &amp;&amp; score &lt; 70 ) grade= 'D' ; else grade= 'E' ; cout &lt;&lt; &quot;\ nThe Letter Grade for this score &lt;&lt; score &lt;&lt; &quot; is &quot; &lt;&lt; grade; return ; } ifelse if Example, Part 2...
View Full Document

Ask a homework question - tutors are online