Remove all those defines.
Local function definitions are illegal (INDENT PROPERLY and you wouldn't have this problem!):
Code:
void Sem_1 ( void )
Void is not necessary for inside argument lists in C++ (which is what you're compiling it as):
Due your indentation problem, the code is all in the wrong places because you missed a }:
Code:
do
{
printf("enter option here: ");
scanf("%d",&option);
switch ( option )
{
case 1:
system ( "cls" );
Sem_1();
break;
case 2:
system ( "cls" );
Sem_2();
break;
case 3:
system ( "cls" );
Sem_3();
break;
}
}
while( option > 4 || option < 4 );
return 0;
}
Missing ;
writing_for_mass_communication: undeclared variable.
Code:
writing_for_mass_communication = Score * 3;
Code:
Score * 3 = computer_studies;
Perhaps you intended:
Code:
computer_studies = Score * 3;
Missing ;
Code:
printf("press 0 to go back to option menu");
Code:
scanf("%d", &back_1);
computer_studies: undeclared variable.
Code:
computer_studies = Score * 3;
gpa_sem_1: undeclared variable.
Code:
cgpa_sem_2 = ( ( gpa_sem_1 + gpa_sem_2 ) / 2 );
Missing ;
Code:
printf("press 0 to go back to option menu");
scanf("%d", &back_2);
gpa_sem_1, gpa_sem_2: undeclared variables.
Code:
cgpa_sem_3 = ( ( gpa_sem_1 + gpa_sem_2 + gpa_sem_3 ) / 3 );
Missing ;
Code:
printf("press 0 to go back to option menu")
scanf("%d", &back_3)
Completely wrong in all sorts of ways and expectations.
Code:
if (strcmp( Grade, A+ || a+ == 0 ))
{
Score += 4.00;
}
else if (strcmp( Grade, A- || a- == 0 ))
{
Score += 3.70;
}
else if (strcmp( Grade, B+ || b+ == 0 ))
{
Score += 3.30;
}
else if (strcmp( Grade, B || b == 0 ))
{
Score += 3.00;
}
else if (strcmp( Grade, B- || b- == 0))
{
Score += 2.70;
}
else if (strcmp( Grade, C+ || c+ == 0 ))
{
Score += 2.30;
}
else if (strcmp( Grade, C || c == 0 ))
{
Score += 2.00;
}
else if (strcmp( Grade, D || d == 0 ))
{
Score += 1.00;
}
else if (strcmp( Grade, F || f == 0 ))
{
Score += 0.00;
}
else
{
printf( "invalid grade\n" );
printf( "please enter again: " );
}
Score: undeclared variable.
Uninitialized variables public_speaking and writing_for_mass_communication used.
Code:
gpa_sem_1 = ( ( english_language + public_speaking + principles_of_accounting +
principles_of_economics + general_mathematics_1 + computer_studies ) / 18 );
You obviously know nothing about C or C++. Go back to school. This isn't a playground.
Make a real effort in making a program and start of small. When you've mastered the basics, come back and we'll help you.