Application program- help!
Can someone please look at the below code and tell me what my first mistake is. I have enclosed in braces and still keep getting error messages.
#include <stdio.h> /* Include header to allow use of console functions */
#include <stdlib.h> /* Include header to allow use of system functions */
#define ADULT 18 /* Age breakpoint for an adult */
#define SMWD 1,000 /* Salary multiplier with degree */
#define SMWO 600 /* Salary multiplier without degree */
int main (void)
{
float AGE, /* Applicant's age */
WHN; /* When to apply again in years */
char DEG; /* College degree status (Y/N) */
double SAL; /* Annual salary offer */
system ("cls"); /* Clear the Screen */
printf ("Applicant Screening Program\n\n");
printf ("How old are you?");
scanf ("%f", & AGE);
if (AGE >= ADULT)
{
printf ("Do you have a college degree (Y/N)?\n"); scanf ("%c", & DEG);
}
else { printf ("\nSorry, you must be %d or older for this job.\n", ADULT;
printf ("Please apply again in %d years.\n", WHN);
}
if (DEG == 'Y' || 'y') SAL = AGE * SMWD;
else SAL = AGE * SMWO;
}
printf ("You qualify!\n");
printf ("Your annual salary would be $%8.2f.\n", SAL);
printf ("See our staff for an application.\n");
return (0); /* Send a null error code to the parent process */
}