This preview shows page 1. Sign up to view the full content.
Unformatted text preview: cout << "Good Job" break; case 'b' : case 'B' :GPA = 3.0; break; case 'c' : case 'C' :GPA = 2.0; break; default :GPA = 0.0; break; } OR if the input is originally not an int: switch( (int) Avg) //casts the Avg value as an int...
View Full Document
This note was uploaded on 11/01/2009 for the course CS 101 at USC.