I have been spending a couple days working on a final assignment for my intro class
The assignment is :
Write a function that takes one double parameter, and returns a char. The parameter represents a grade, and the char represents the corresponding letter grade. If you pass in 90, the char returned will be ‘A’. If you pass in 58.67, the char returned will be an ‘F’ etc. Use the grading scheme on the syllabus for this course to decide what letter to return.
This is what I have so far. At this point i'm not sure if i'm even going in the right direction. Otherwise i feel i'm missing something
\projects\Test\main.cpp||In function 'int main()':|
\projects\Test\main.cpp|20|warning: too many arguments for format [-Wformat-extra-args]|
\projects\Test\main.cpp|21|warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double*' [-Wformat=]|
||=== Build finished: 0 errors, 2 warnings (0 minutes, 0 seconds) ===|