hello guys...
can you help me to find coding for grading system for my new assingment...( grade n grade point)
grade A= 4.00
A- = 3.70
B+ = 3.50
B = 3.00
B- = 2.67
C+ =2.50
C = 2.00
C- = 1.67
D+ = 1.33
D = 1.00
E = 0.00
its must cout for the grade point..when the user/students enter the grade,the cout must be the grade point??did you get my question...I'm a malay student so my english is not very well...
this what I've done so far but it doesnt work..
/* Program to find out students grade pointer*/
#include<iostream.h>
void main()
{
char grade[2];
//grade = 0;
cout<< " please enter your grade : ";
{
if (grade =="A")
cout<< grade;//4.00";
else if (grade =="A-")
cout<< "3.70";
else if (grade == "B+")
cout<< "3.50";
else if (grade == "B")
cout<< "3.00";
else if (grade == "B-")
cout<< "2.67";
else if (grade == "C+")
cout<< "2.50";
else if (grade == "C")
cout<< "2.00";
else if (grade == "C-")
cout<< "1.67";
else if (grade == "D+")
cout<< "1.33";
else if (grade == "D")
cout<< "1.00";
else if (grade == "E")
cout<< "0.00";
}
//return 0;
}