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

C++ help please Write a program that asks the user to enter student’s numeric Gr

ID: 3754066 • Letter: C

Question

C++ help please

Write a program that asks the user to enter student’s numeric Grade; and display the numeric grade and letter grade. Numerical grades are whole numbers, no fractions. Student letter grades are determined based on the numerical scores as shown in the following table:

80-89

You must use if – else if – else structure to determine the letter grade of the student. Output Screen

Enter your numerical score between 0 and 100

75 Your score: 75

Your letter grade: C

Press any key to continue

Grade Numeric Score A-Excellent 90-100 B-Good

80-89

C-Fair 70-79 D- Minimal 60-69 F-Failure 0-59

Explanation / Answer

#include <iostream>

using namespace std;

int main()
{
int score;
cout<<"Enter your numerical score between 0 and 100:"<<endl;
cin >> score;
cout<<"Your score: "<<score<<endl;
char grade;
if(score >=90){
grade='A';
} else if(score>=80 && score<90){
grade='B';
} else if(score>=70 && score<80){
grade='C';
} else if(score>=60 && score<70){
grade='D';
}else {
grade='F';
}
cout<<"Your letter grade: "<<grade<<endl;
return 0;
}

Output:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote