average - return 0 int qualityPoints(float aver if(90<=...

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

View Full Document Right Arrow Icon
# include <iostream> using namespace std; int qualityPoints (float);// The function takes the average as argument and returns the quality points int main (void) { float average; cout << "Enter the average: "; cin >> average; cout << qualityPoints(average);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return 0; } int qualityPoints (float aver) { if (90 <= aver && aver <= 100) return 4; if (80 <= aver && aver <= 89) return 3; if (70 <= aver && aver <= 79) return 2; if (60 <= aver && aver <= 69) return 1; if (aver < 60) return 0; }...
View Full Document

This note was uploaded on 04/24/2010 for the course COS 120 taught by Professor Bonev during the Fall '08 term at American University in Bulgaria.

Ask a homework question - tutors are online