char testScoreGrade(double totalAvg) { if (totalAvg >=90) return 'A'; else if ( totalAvg >=80 ) return 'B'; else if ( totalAvg>=70 ) return 'C'; else if ( totalAvg >=60 ) return 'D'; else return 'F'; }