Jun 14, 2009 at 7:07pm UTC
My all Dear friends.
I want to calculate the Semester Gpa.
i am taking the subject grade individualy then from Grades i want to calculate the semester Gpa.
I have coded this program but with 102 errors
so plz help me to remove these errors.
THanks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
#include <iostream>
using namespace std;
void main()
{
char grade1[5];
char grade2[5];
char grade3[5];
char grade4[5];
char grade5[5];
double gpa1,gpa2,gpa3,gpa4,gpa5;
double add,SGPA1;
cout<<"Enter grade of Calculus1 :" <<endl;
cin>>grade1;
if (grade1=='A' ||grade1=='a' )
gpa1=4;
else if (grade1==Am||grade1==am)
gpa1=3.67;
else if (grade1==Bp||grade1==bp)
gpa1=3.33;
else if (grade1=='B' ||grade1=='b' )
gpa1=3.00;
else if (grade1==Bm||grade1==bm)
gpa1=2.67;
else if (grade1==Cp||grade1==cp)
gpa1=2.33;
else if (grade1=='C' ||grade1=='c' )
gpa1=2.00;
else if (grade1==Cm||grade1==cm)
gpa1=1.67;
else if (grade1==Dp||grade1==dp)
gpa1=1.33;
else if (grade1=='D' ||grade1=='d' )
gpa1=1.00;
else if (grade1=='F' ||grade1=='f' )
gpa1=0;
else if (grade1=='I' ||grade1=='i' )
gpa1=0;
cout<<"Enter grade of Intro to Information Technology :" <<endl;
cin>>grade2;
if (grade2=='A' ||grade2=='a' )
gpa2=4;
else if (grade2=='Am' ||grade2=='am' )
gpa2=3.67;
else if (grade2=='Bp' ||grade2=='bp' )
gpa2=3.33;
else if (grade2=='B' ||grade2=='b' )
gpa2=3.00;
else if (grade2=='Bm' ||grade2=='bm' )
gpa2=2.67;
else if (grade2=='Cp' ||grade2=='cp' )
gpa2=2.33;
else if (grade2=='C' ||grade2=='c' )
gpa2=2.00;
else if (grade2=='Cm' ||grade2=='cm' )
gpa2=1.67;
else if (grade2=='Dp' ||grade2=='dp' )
gpa2=1.33;
else if (grade3=='D' ||grade2=='d' )
gpa2=1.00;
else if (grade2=='F' ||grade2=='f' )
gpa2=0;
else if (grade2=='I' ||grade2=='i' )
gpa2=0;
cout<<"Enter grade of Physics :" <<endl;
cin>>grade3;
if (grade3=='A' ||grade3=='a' )
gpa3=4;
else if (grade3=='Am' ||grade3=='am' )
gpa3=3.67;
else if (grade3=='Bp' ||grade3=='bp' )
gpa3=3.33;
else if (grade3=='B' ||grade3=='b' )
gpa3=3.00;
else if (grade3=='Bm' ||grade3=='bm' )
gpa3=2.67;
else if (grade3=='Cp' ||grade3=='cp' )
gpa3=2.33;
else if (grade3=='C' ||grade3=='c' )
gpa3=2.00;
else if (grade3=='Cm' ||grade3=='cm' )
gpa3=1.67;
else if (grade3=='Dp' ||grade3=='dp' )
gpa3=1.33;
else if (grade3=='D' ||grade3=='d' )
gpa3=1.00;
else if (grade3=='F' ||grade3=='f' )
gpa3=0;
else if (grade3=='I' ||grade3=='i' )
gpa3=0;
cout<<"Enter grade of Communication Skills :" <<endl;
cin>>grade4;
if (grade4=='A' ||grade4=='a' )
gpa4=4;
else if (grade4=='Am' ||grade4=='am' )
gpa4=3.67;
else if (grade4=='Bp' ||grade4=='bp' )
gpa4=3.33;
else if (grade4=='B' ||grade4=='b' )
gpa4=3.00;
else if (grade4=='Bm' ||grade4=='bm' )
gpa4=2.67;
else if (grade4=='Cp' ||grade4=='cp' )
gpa4=2.33;
else if (grade4=='C' ||grade4=='c' )
gpa4=2.00;
else if (grade4=='Cm' ||grade4=='cm' )
gpa4=1.67;
else if (grade4=='Dp' ||grade4=='dp' )
gpa4=1.33;
else if (grade4=='D' ||grade4=='d' )
gpa4=1.00;
else if (grade4=='F' ||grade4=='f' )
gpa4=0;
else if (grade4=='I' ||grade4=='i' )
gpa4=0;
cout<<"Enter grade of Religious Studies :" <<endl;
cin>>grade5;
if (grade5=='A' ||grade5=='a' )
gpa5=4;
else if (grade5=='Am' ||grade5=='am' )
gpa5=3.67;
else if (grade5=='Bp' ||grade5=='bp' )
gpa5=3.33;
else if (grade5=='B' ||grade5=='b' )
gpa5=3.00;
else if (grade5=='Bm' ||grade5=='bm' )
gpa5=2.67;
else if (grade5=='Cp' ||grade5=='cp' )
gpa5=2.33;
else if (grade5=='C' ||grade5=='c' )
gpa5=2.00;
else if (grade5=='Cm' ||grade5=='cm' )
gpa5=1.67;
else if (grade5=='Dp' ||grade5=='dp' )
gpa5=1.33;
else if (grade5=='D' ||grade5=='d' )
gpa5=1.00;
else if (grade5=='F' ||grade5=='f' )
gpa5=0;
else if (grade5=='I' ||grade5=='i' )
gpa5=0;
cout<<"GPA in Calculus1 :" <<gpa1<<endl;
cout<<"GPA in Intro to Information Technology :" <<gpa2<<endl;
cout<<"GPA in Physics :" <<gpa3<<endl;
cout<<"GPA in Communication skills :" <<gpa4<<endl;
cout<<"GPA in Religious Studies :" <<gpa5<<endl;
add=(gpa1+gpa2+gpa3+gpa4+gpa5);
SGPA1=(add*4)/17;
cout<<SGPA1<<endl;
}
Last edited on Jun 14, 2009 at 8:05pm UTC
Jun 15, 2009 at 2:55am UTC
I can't help but get angry. Your retarded and you need to pay attention in class.
Last edited on Jun 15, 2009 at 2:58am UTC
Jun 15, 2009 at 3:19am UTC
Please note the fact that both threads were created almost at the same time.
It wouldn't be too hard to think that he created this thread after failing to get what he wanted in the other one, so I'm just saying.
Jun 15, 2009 at 3:40am UTC
Notice:
Calculus1 + Intro to Information Technology + Physics ->ok those are vaguely related...
+Communication skills + (!)Religious Studies ---> weird combination!!!!