#include #include using namespace std; char coursegrade(int score) { switch (sco
ID: 3660601 • Letter: #
Question
#include #include using namespace std; char coursegrade(int score) { switch (score/10) { case 0: case 1: case 2: case 3: case 4: case 5: return 'F'; case 6: return 'E'; case 7: return 'D'; case 8: return 'C'; case 9: return 'B'; case 10: return 'A'; } } int main() { int score; char coursegrade; cout<<"Enter your score"<<endl; cin>>score; cout<<"score = "<<score<<endl; return 0; } // I am trying to get grade as return function but it always returns 0; and doesnot show any grades. Where did i do wrong? Please correct my mistake//Explanation / Answer
your entire program is wrong what is the output yuou want exactly
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.