Errors:
unable to open include file 'STDIO.H' highlights #
unable to open include file 'CONIO.H' highlights #
Function should return a vaule highlights semi colon
Declaration terminated incorrectly highlights space after brace
Declaration syntax error highlights space in between in int and grade1
Undefined symbol 'A'/ Undefined symbol 'B' highlights |
Undefined symbol 'C'; highlights colon
Expression syntax* and statement missing ; * highlights space between ; and grade

Code:
/*********************
Program Name:Program 1
Author:R Grant
*********************/
/*********PREPREOCESSOR DIRECTIVES*************/
/****************HEADER FILES******************/
#include <stdio.h>/*Standard I/O Header*/ unable to open include file 'STDIO.H'
#include <conio.h>/*Console  I/O Header*/ unable to open include file 'CONIO.H'
/************PRE-DEFINED CONSTANTS*******************/
#define GCSE_Math_Grade_Accepted
#define GCSE_EnglishLit_Grade_Accepted
#define GCSE_EnglishLan_Grade_Accepted
#define GCSE_Science_Grade_Accepted
#define Job_Status_Accepted
#define Age_Accepted 
#define GCSE_Math_Grade_Rejected
#define GCSE_EnglishLit_Grade_Rejected
#define GCSE_EnglishLan_Grade_Rejected
#define GCSE_Science_Grade_Rejected
#define Job_Status_Rejected
#define Age_Rejected 

/****USER-DEFINES AND ENUMERATED DATA TYPES****/
/************FUNCTION PROTOTYPES***************/
void Input_GCSE_Maths_Data (void);
void Input_GCSE_EnglishLit_Data (void);
void Input_GCSE_EnglishLan_Data (void);
void Input_GCSE_Science_Data (void);
void Input_JobStatus_Data (void);
void Input_Age_Data (void);
void Initialise (void);     
void Output_statistics (void);
void Process_Accepted_Data (void);
void Process_Rejected_Data (void);
void Process_Input_GCSE_Maths_Data (void);
void Process_Input_GCSE_EnglishLit_Data (void);
void Process_Input_GCSE_EnglishLan_Data (void);
void Process_Input_GCSE_Science_Data (void);
void Process_Input_JobStatus_Data (void);
void Process_Input_Age_Data (void);
void GCSE_Maths_Data (void);
void GCSE_EnglishLit_Data (void);
void GCSE_EnglishLan_Data (void);
void GCSE_Science_Data (void);
void JobStatus_Data (void);
void Age_Data (void);

/*************GLOBAL VARIABLES*****************/
int grade1;
int grade2;
int grade3;
int grade4;
int num1; 
int num2; 
int num3; 
int num4; 
int num5; 
int num6; 
int num7;
int year;
int status;


int main (void)			   /***************MAIN FUNCTION******************/
{
	Initialise ( );
	Process_Data ( );
	Output_Statistics ( );
}; Function should return a vaule
void Initialise (void);     
{ Declaration terminated incorrectly 
	clrscr();
	GCSE_Maths_Data ();
	GCSE_EnglishLit_Data ();
	GCSE_EnglishLan_Data ();
	GCSE_Science_Data ();
	JobStatus_Data ();
	Age_Data ();
	
};

void Input_GCSE_Maths_Data (void) /*********user inputting 1st grade section*********/

int grade1; Declaration syntax error 
{ Declaration terminated incorrectly 
printf ("Please input math grade[A, B or C ]: \n");
do {
grade1 = getch();
grade1 = toupper(letter);
grade1 = tolower(letter);
};
while ((grade1 !=A) && (grade1 !=B) && (grade1 !=C) && (grade1 !=D) && (grade1 !=E) && (grade1 !=F) && (grade1 !=a) && (grade1 !=b) && (grade1 !=c) && (grade1 !=d) && (grade1 !=e) && (grade1 !=f) && (grade1 != ));
if(grade1 ==A) printf("The grade inputted was A and is acceptable\n");
if(grade1 ==a) printf("Please input in capitals not lower case");
else if(grade1 ==B) printf("The grade inputted was B and is acceptable\n"); 
else if(grade1 ==b) printf("Please input in capitals not lower case");
else if(grade1 ==C) printf("The grade inputted was C and is acceptable\n");
else if(grade1 ==c) printf("Please input in capitals not lower case");
else if(grade1 ==D) printf("The grade inputted was D and is not acceptable\n");
else if(grade1 ==d) printf("Please input in capitals not lower case");
else if(grade1 ==E) printf("The grade inputted was D and is not acceptable\n");
else if(grade1 ==e) printf("Please input in capitals not lower case");
else if(grade1 ==F) printf("The grade inputted was D and is not acceptable\n");
else if(grade1 ==f) printf("Please input in capitals not lower case");
else (grade1 == ) printf("Please input math grade[A, B or C ]: \n");
};

void Input_GCSE_EnglishLit_Data (void)	/*********user inputting 2nd grade section*********/

int grade2; Declaration syntax error 
{ Declaration terminated incorrectly
printf ("Please input english lit grade[A, B or C ]: \n");
do {
grade2 = getch();
grade2 = toupper(letter);
grade2 = tolower(letter);
};
while ((grade2 !=A) && (grade2 !=B) && (grade2 !=C) && (grade2 !=D) && (grade2 !=E) && (grade2 !=F) && (grade2 !=a) && (grade2 !=b) && (grade2 !=c) && (grade2 !=d) && (grade2 !=e) && (grade2 !=f) && (grade2 != ));
if(grade2 ==A) printf("The grade inputted was A and is acceptable\n");
if(grade2 ==a) printf("Please input in capitals not lower case");
else if(grade2 ==B) printf("The grade inputted was B and is acceptable\n");
else if(grade2 ==b) printf("Please input in capitals not lower case");
else if(grade2 ==C) printf("The grade inputted was C and is acceptable\n");
else if(grade2 ==c) printf("Please input in capitals not lower case");
else if(grade2 ==D) printf("The grade inputted was D and is not acceptable\n");
else if(grade2 ==d) printf("Please input in capitals not lower case");
else if(grade2 ==E) printf("The grade inputted was D and is not acceptable\n");
else if(grade2 ==e) printf("Please input in capitals not lower case");
else if(grade2 ==F) printf("The grade inputted was D and is not acceptable\n");
else if(grade2 ==f) printf("Please input in capitals not lower case");
else (grade2 == ) printf("Please input english lit grade[A, B or C ]: \n");
};

void Input_GCSE_EnglishLan_Data (void)	/*********user inputting 3rd grade section*********/

int grade3; Declaration syntax error 
{ Declaration terminated incorrectly
printf ("Please input english lan grade[A, B or C ]: \n");
do {
grade3 = getch();
grade3 = toupper(letter);
grade3 = tolower(letter);
};
while ((grade3 !=A) && (grade3 !=B) && (grade3 !=C) && (grade3 !=D) && (grade3 !=E) && (grade3 !=F) && (grade3 !=a) && (grade3 !=b) && (grade3 !=c) && (grade3 !=d) && (grade3 !=e) && (grade3 !=f) && (grade3 != ));
if(grade3 ==A) printf("The grade inputted was A and is acceptable\n");
if(grade3 ==a) printf("Please input in capitals not lower case");
else if(grade3 ==B) printf("The grade inputted was B and is acceptable\n");
else if(grade3 ==b) printf("Please input in capitals not lower case");
else if(grade3 ==C) printf("The grade inputted was C and is acceptable\n");
else if(grade3 ==c) printf("Please input in capitals not lower case");
else if(grade3 ==D) printf("The grade inputted was D and is not acceptable\n");
else if(grade3 ==d) printf("Please input in capitals not lower case");
else if(grade3 ==E) printf("The grade inputted was D and is not acceptable\n");
else if(grade3 ==e) printf("Please input in capitals not lower case");
else if(grade3 ==F) printf("The grade inputted was D and is not acceptable\n");
else if(grade3 ==f) printf("Please input in capitals not lower case");
else (grade3 == ) printf("Please input english lan grade[A, B or C ]: \n");
};

void Input_GCSE_Science_Data (void)	/*********user inputting 4th grade section*********/

int grade4; Declaration syntax error 
{ Declaration terminated incorrectly
printf ("Please input science grade[A, B or C ]: \n");
do {
grade4 = getch();
grade4 = toupper(letter);
grade4 = tolower(letter);
};
while ((grade4 !=A) && (grade4 !=B) && (grade4 !=C) && (grade4 !=D) && (grade4 !=E) && (grade4 !=F) && (grade4 !=a) && (grade4 !=b) && (grade4 !=c) && (grade4 !=d) && (grade4 !=e) && (grade4 !=f) && && (grade4 != ));
if(grade4 ==A) printf("The grade inputted was A and is acceptable\n");
if(grade4 ==a) printf("Please input in capitals not lower case");
else if(grade4 ==B) printf("The grade inputted was B and is acceptable\n");
else if(grade4 ==b) printf("Please input in capitals not lower case");
else if(grade4 ==C) printf("The grade inputted was C and is acceptable\n");
else if(grade4 ==c) printf("Please input in capitals not lower case");
else if(grade4 ==D) printf("The grade inputted was D and is not acceptable\n");
else if(grade4 ==d) printf("Please input in capitals not lower case");
else if(grade4 ==E) printf("The grade inputted was D and is not acceptable\n");
else if(grade4 ==e) printf("Please input in capitals not lower case");
else if(grade4 ==F) printf("The grade inputted was D and is not acceptable\n");
else if(grade4 ==f) printf("Please input in capitals not lower case");
else (grade4 == ) printf("Please input science grade[A, B or C ]: \n");
};

void Input_Age_Data (void)		/**********user inputting age section**********/

int num1;  Declaration syntax error 
int num2; 
int num3; 
int num4; 
int num5; 
int num6; 
int num7;
int year;
{ Declaration terminated incorrectly

printf("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993]: \n");
printf("Please input current year[2009]:\n");
while ((num1 !=1988) && (num2 !=1989) && (num3 !=1990) && (num4 !=1991) && (num5 !=1992) && (num6 !=1993) && (num7 !=1994)&&(year !=2009));
if((num1 ==1988) && (year ==2009)) printf("Person is 21 and fine to do course\n");
else if((num2 ==1989) && (year ==2009)) printf("Person is 20 and fine to do course\n");
else if((num3 ==1990) && (year ==2009)) printf("Person is 19 and fine to do course\n");
else if((num4 ==1991) && (year ==2009)) printf("Person is 18 and fine to do course\n");
else if((num5 ==1992) && (year ==2009)) printf("Person is 17 and fine to do course\n");
else if((num6 ==1993) && (year ==2009)) printf("Person is 16 and fine to do course\n");
else if((num7 ==1994) && (year ==2009)) printf("Person is 15 and cant do course\n");
else if((num1 ==0) && (year ==2009)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num2 ==0) && (year ==2009)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num3 ==0) && (year ==2009)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num4 ==0) && (year ==2009)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num5 ==0) && (year ==2009)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num6 ==0) && (year ==2009)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num7 ==0) && (year ==2009)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num1 ==1988) && (year ==0)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num2 ==1989) && (year ==0)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num3 ==1990) && (year ==0)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num4 ==1991) && (year ==0)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num5 ==1992) && (year ==0)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num6 ==1993) && (year ==0)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
else if((num7 ==1994) && (year ==0)) printf ("Please input person year of birth[1988, 1989, 1990, 1991, 1992 or 1993] and current year[2009]: \n");
};

void Input_JobStatus_Data (void)	/*********user inputting job status*********/

int status; Declaration syntax error *
{ Declaration terminated incorrectly

printf ("Please input stats[employed or unemployed]: \n");
do {;
status = getch();
status = employed(status);
status = unemployed(status);
};
while ((status !=employed) && (status !=unemployed) && (status != ));
if(status ==employed) printf("This person cannot do this course\n");
else if((status ==unemployed)) printf("This person can do this course\n");
else (status != )printf ("Please input stats[employed or unemployed]: \n");
};

void Process_Accepted_Data (void) 		/********PROCESSING ACCEPTED INPUT DAT..........*********/
{
	for ((grade1 ==A)||(grade1 ==B)||(grade1 ==C); grade1 <= 
	Undefined symbol 'A'/ Undefined symbol 'B' Undefined symbol 'C';
GCSE_Math_Grade_Accepted; grade1 ++);
Expression syntax and statement missing ;
	{
		Process_Input_GCSE_Maths_Data ();
	};
	for ((grade2 ==A)||(grade2 ==B)||(grade2 ==C); grade2 <= 
GCSE_EnglishLit_Grade_Accepted; grade2 ++);
Expression syntax and statement missing ;

	{
		Process_Input_GCSE_EnglishLit_Data ();
	};
	for ((grade3 ==A)||(grade3 ==B)||(grade3 ==C); grade3 <= 
GCSE_EnglishLan_Grade_Accepted; grade3 ++);
Expression syntax and statement missing ;

	{
		Process_Input_GCSE_EnglishLan_Data ();
	};
	for ((grade4 ==A)||(grade4 ==B)||(grade4 ==C); grade4 <= 
GCSE_Science_Grade_Accepted; grade4 ++);
Expression syntax and statement missing ;

	{	
		Process_Input_GCSE_Science_Data ();
	};

	for ((num1 ==1988) && (year ==2009); num1 <= Age_Accepted; num1 ++);
	{	
		Process_Input_Age_Data ();
	};
	for ((num2 ==1989) && (year ==2009); num2 <= Age_Accepted; num2 ++);
	{
		Process_Input_Age_Data ();
	};
	for ((num3 ==1990) && (year ==2009); num3 <= Age_Accepted; num3 ++);
	{	
		Process_Input_Age_Data ();
	};
	for ((num4 ==1991) && (year ==2009); num4 <= Age_Accepted; num4 ++);
	{
		Process_Input_Age_Data ();
	};
	for ((num5 ==1992) && (year ==2009); num5 <= Age_Accepted; num5 ++);
	{
		Process_Input_Age_Data ();
	};
	for ((num6 ==1993) && (year ==2009); num6 <= Age_Accepted; num6 ++);
	{	
		Process_Input_Age_Data ();
	};
	for ((status ==unemployed) status <= Job_Status_Accepted; status ++);
	{
		Process_Input_JobStatus_Data ();
	};
};
void Process_Rejected_Data (void)		/********PROCESSING REJECTED INPUT DAT..........*********/
{
	for ((grade1 ==D)||(grade1 ==E)||(grade1 ==F); grade1 <= GCSE_Math_Grade_Rejected; grade1 ++);
	{
		Process_Input_GCSE_Maths_Data ();
	};
	for ((grade2 ==D)||(grade2 ==E)||(grade2 ==F); grade2 <= GCSE_EnglishLit_Grade_Rejected; grade2 ++);
	{
		Process_Input_GCSE_EnglishLit_Data ();
	};
	for ((grade3 ==D)||(grade3 ==E)||(grade3 ==F); grade3 <= GCSE_EnglishLan_Grade_Rejected; grade3 ++);
	{
		Process_Input_GCSE_EnglishLan_Data ();
	};
	for ((grade4 ==D)||(grade4 ==E)||(grade4 ==F); grade4 <= GCSE_Science_Grade_Rejectedd; grade4 ++);
	{	
		Process_Input_GCSE_Science_Data ();
	};

	for ((num1 ==1984) && (year ==2009); num1 <= Age_Rejected; num1 ++);
	{	
		Process_Input_Age_Data ();
	};
	for ((status ==employed) status <= Job_Status_Rejected; status ++);
	{
		Process_Input_JobStatus_Data ();
	};
};

{
system("PAUSE");
return 0;
}; 
/**************OTHER FUNCTIONS*****************/