I dont know what ya all make of this but Ive spend the morning writing code that I think should hopefully fulfil the requirements of my assignment, I know it doesnt work but I'd like peoples advice and input on what to change and stuff to make it work.
Code:#include <conio.h>
#include <stdio.h>
void main (void)
{
char ch;
int year1;
int year2;
int name
int +1
printf ("Press C to check if accepted and failed applications folder is created: ");
// Im unsure how and if borland complier can create and/or check folders if someone knows how please share thanks
printf ("If you would like to display how many applications have beed processed, Please press p: ");
// Im unsure how and if borland complier can display how many applications have beed processed if someone knows how please share thanks
printf ("Please input applicates full name");
if (name = %d)printf($d "application record");
else printf ("Please input applicates name");//if nothing is enterd
printf ("Please input" %d "maths grade: ");
ch = getche(a, b, c, d);
if(get che = a)printf("passed");
if(get che = b)printf("passed");
if(get che = c)printf("passed");
if(get che = d)printf("fail");
else printf("Please input" %d "maths grade: ");// if nothing is entered
printf ("Please input" %d "english lit grade: ");
ch = getche(a, b, c, d);
if(get che = a)printf("passed");
if(get che = b)printf("passed");
if(get che = c)printf("passed");
if(get che = d)printf("fail");
else printf("Please input" %d "english lit grade: ");// if nothing is entered
printf ("Please input" %d "english lag grade: ");
ch = getche(a, b, c, d);
if(get che = a)printf("passed");
if(get che = b)printf("passed");
if(get che = c)printf("passed");
if(get che = d)printf("fail");
else printf("Please input" %d "english lag grade: ");// if nothing is entered
printf ("Please input" %d "science grade: ");
ch = getche(a, b, c, d);
if(get che = a)printf("passed");
if(get che = b)printf("passed");
if(get che = c)printf("passed");
if(get che = d)printf("fail");
else printf("Please input" %d "science grade: ");// if nothing is entered
printf ("Please enter the year of" %d "born: ");//year1
printf ("Please enter current year: ");//year2
if (year1 = 1994 - year2 = 2009)printf("15 is not accepted age");
if (year1 = 1993 - year2 = 2009)printf("16 is an accepted age");
if (year1 = 1992 - year2 = 2009)printf("17 is an accepted age");
if (year1 = 1991 - year2 = 2009)printf("18 is an accepted age");
if (year1 = 1990 - year2 = 2009)printf("19 is an accepted age");
if (year1 = 1989 - year2 = 2009)printf("20 is an accepted age");
else (year1 = 0 - year = 0)printf("Please input the year of" %d "born and current year" );//if nothing is entered
printf ("Please state if" %d "is employed or unemployed: ");
ch = getche(e, u);
if (get che = e)printf (%d "is employed therefore cannot do course");
if (get che = u)printf (%d "is unemployed therefore can do course");
else printf ("Please state if" %d "is employed or uneployed: ");//if nothing is entered
printf ("Please confirm" %d "information: ");
printf ("Math grade entered: ");
printf ("English lit grade entered: ");
printf ("English lag grade entered: ");
printf ("Science grade entered: ");
printf ("Age: ");
printf ("Job status: ");
printf ("If this information is correct, press y, If this information isnt correct, press n");
ch = getche(y, n);
if (getche = y)
printf ("Based on information entered the math grade is: ");//
printf ("Based on information entered the english lit grade is: ");//
printf ("Based on information entered the english lan grade is: ");//
printf ("Based on information entered the science grade is: ");//
printf ("Based on information entered age is: ");//
printf ("Based on information entered job status is: ");//
if (getche = n) //loop to be entered in here
else printf ("If this information is correct, press y, If this information isnt correct, press n");//if nothing is entered
printf ("Application is: ");//states whether application is accepted or failed
if (Application = accepted)save to C:\Documents and Settings\Administrator\My Documents\Accepted;
if (Application = accepted)save as %d; //save under students name
if (Application = accepted) +1 ;//once the folder has 6 accepted applications:
printf ("Sorry no more postions left");
if (Application = failed)save to C:\Documents and Settings\Administrator\My Documents\Failed;
if (Application = failed)save as %d; // save under students name
if (Application = failed) +1 ;
printf ("Total applications accepted: ");
printf ("Total applications failed: ");
system("pause");
return 0;
}