I just want modify the program below to print + or - minus after the letter grade based on the last digit.
// Chapter 6 - Exercise 1
// A professor generates letter grades using
/* 0 - 60 F
67 - 70 D
71 - 80 C
81 - 90 B
91 - 100 A
*/
#include <iostream>
int main()
{
std::cout << "Enter the grade #: ";
int grade;
std::cin >> grade;
char letter_grade;
if (grade <= 60)
{
letter_grade = 'F';
}
if ((grade >=61) && (grade <= 70))
{
letter_grade = 'D';
}
if ( (grade >= 71) && (grade <= 80))
{
letter_grade = 'C';
}
if ( (grade >= 81) && (grade <= 90))
{
letter_grade = 'B';
}
if ( grade >= 91)
{
letter_grade = 'A';
}
std::cout << "The letter grade is " << letter_grade << "\n";
std::cin.get();
return 0;
}