Code:
printf ("\nSorry, you must be %d or older for this job.\n", ADULT;
You have to match the parentheses.
Code:
else SAL = AGE * SMWO;
}
You have one brace too many.
That should get rid of your immediate trouble, but you have a lot of work to do yet.
Also, you should learn to use code tags if you are posting on forums. Nobody wants to look at a bunch of code without indentation...
Code:
#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 */
}