CARMA C++
PDB_Grade.h
1 /*
2  * Utilities to handle grade conversion to/from floats/letters
3  */
4 
5 #ifndef PDB_GRADE_H
6 #define PDB_GRADE_H
7 
8 #include <string>
9 
10 namespace carma {
11 namespace observertools {
12 
19 std::string convertNumericGradeToLetter(const float grade);
20 
26 float convertLetterGradeToNumeric(const std::string &letter);
27 
28 } // namespace carma::observertools
29 } // namespace carma
30 
31 #endif /* PDB_GRADE_H */
32 
33 /* vim: set ts=4 sts=4 sw=4 noet tw=92: */
float convertLetterGradeToNumeric(const std::string &letter)
Convert a string grade (A+, A, A-, B+, etc.) to a numeric grade (0-100)
std::string convertNumericGradeToLetter(const float grade)
Convert a numeric grade (0-100) to a string grade (A+, A, A-, B+, etc.)