Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include #include using namespace std; int main () { int score; cout<<\"Function

ID: 3660456 • Letter: #

Question

#include #include using namespace std; int main () { int score; cout<<"Function score"<<endl; cout<<"Enter score"<<endl; cin>>score; cout<<"score = "<<score<<endl; if(score>=90) return 'A'; else if(70<=score<=89) return 'B' ; else if(50<=score<=69) return 'C'; else return 'D'; } // I am trying to get the coursegrade by the use of return function. But every time i input the score, i get a incorrect output. I am not getting the char A,B,C,D in the return statement. Please help me i am not able to figure out where the problem is.//

Explanation / Answer

Instead of calling return,write print the grade in if loop. i.e.,for example : if(70