So this is my C++ question :
Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D and F, possibly followed by + or -. Th
If the input is A+ or B-, then it is not a character anymore. So, get it using a string of chars, and check the values.
char a[3];
float m,n;
cin>>a;
if(a[1]=='+')
m=0.3;
else if (a[1]=='-')
m=-0.3;
else
m=0;
switch(a[0])
{
//Assign the value of n as 4,3,2,1 depending upon the grade.
}
cout<
will print the grade