when I run the program it works but is not calculating AT ALL. I know it's probably something stupid and easy I missed but I have been going nuts trying to figure out what
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <stdio.h>
#include <stdlib.h>
usingnamespace std;
int main()
{
float age; /* Applicant's age */
char grad,Y,N; /* College degree status (Y/N) */
float twd, twod; /*Annual Salary Offer*/
#define ADULT 18 /* Age breakpoint for an adult */
#define SMWD 1000.0 /* Salary multiplier with degree */
#define SMWO 600.0 /* Salary multiplier without degree */
cout << "This program will calculate your salary based on your answers. ";
system("cls");
cout << "What is your age? ";
cin >> age;
cout << "Answer the follwing question with a Y,N\n ";
cout << "Did you graduate college? ";
cin >> Y,N;
if (age >= ADULT ) //18 or over
{
if (grad == 'Y') // has college degree
{
twd = age * SMWD;
cout << "Your starting salary based on your.\n";
cout << "input would be " << twd << "dollars. ";
}
else //no college degree
{
twod = age * twod;
cout << "Your starting salary based on your.\n";
cout << "input would be " << twod << "dollars. ";
}
}
else //under 18
{
cout << "Sorry you must be 18 or older to qualify. ";
}
return 0;
}