This preview shows page 1. Sign up to view the full content.
Unformatted text preview: char r = ' '; // find the grade based on the average if (avg > 90 ) r = 'A'; else if ( avg > 80 ) r = 'B'; else if ( avg > 70) r = 'C'; else if (avg > 60 ) r = 'D'; else r = 'F'; //return the grade return r; } //end of method Grade } //method main begins the execution of the program...
View Full Document
This note was uploaded on 09/23/2011 for the course ECO 1123 taught by Professor Josephlichter during the Spring '11 term at FIU.
- Spring '11