cout<<"Answer the following question with either Y for Yes or N for No."<<endl;
cout<<"Are you employed?";
cin>>employed;
cout<<"Have you graduated from college in the past 2 years?";
cin>>recentGrad;
if(employed=='Y')
{
if (recentGrad=='Y')
{
cout<<"You qualify for the special interest rate"<<endl;
}
else
{
cout<<"You must have graduated from college in the past two years to qualify."<<endl;
}
}
else
{
cout<<"You must be employed to qualify."<<endl;
}
#include <iostream>
usingnamespace std;
int main()
{
char employed, recentGrad;
cout<<"Answer the following question with either Y for Yes or N for No."<<endl;
cout<<"Are you employed?";
cin>>employed;
cout<<"Have you graduated from college in the past 2 years?";
cin>>recentGrad;
if(employed=='Y' && recentGrad=='Y' )
{
cout<<"You qualify for the special interest rate"<<endl;
}
elseif (employed == 'Y' && recentGrad =='N')
{
cout<<"You must have graduated from college in the past two years to qualify."<<endl;
return EXIT_SUCCESS;
system("PAUSE");
}
else
{
cout<<"You must be employed to qualify."<<endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}