#include<stdio.h>
#include<string.h>
int main (){
char q1[100];
char type[100];
char parentq1[100];
char parentq2[100];
char siblingq1[100];
char siblingq2[100];
char otherq1[100];
char otherq2[100];
char childhoodq1[100];
char childhoodq2[100];
char collegeq1[100];
char collegeq2[100];
printf("Who is getting the gift (family or friend)? ");
scanf(" %s", q1);
if(strcmp(q1, "family")==0){
printf("Which one (parent, sibling, or other)? ");
scanf(" %s", type);}
if(strcmp(type,"parent")==0){
printf("Mom? ");
scanf(" %s", parentq1);}
if(strcmp(parentq1, "yes")==0){
printf("Is she still washing your clothes? ");
scanf(" %s", parentq2);
if(strcmp(parentq2, "yes")==0)
printf("Are you kidding me? You better get her something nice(chocolate or flowers), probably both.\n");
if(strcmp(parentq2, "no")==0)
printf("Get her a funny Valentine's Card.\n");}
if(strcmp(parentq1, "no")==0){
printf("Calls you regularly? ");
scanf(" %s", parentq2);
if(strcmp(parentq2, "yes")==0)
printf("Get them a funny Valentine's card\n");
if(strcmp(parentq2, "no")==0)
printf("Don't get them anything\n");}
if(strcmp(type,"sibling")==0){
printf("Ever beat you up? ");
scanf(" %s", siblingq1);
if(strcmp(siblingq1, "no")==0)
printf("Get them a funny Valentine's card\n");}
if(strcmp(siblingq1, "yes")==0){
printf("Deserve it? ");
scanf(" %s", siblingq2);}
if(strcmp(siblingq2, "no")==0)
printf("Don't get them anything\n");
if(strcmp(siblingq2, "yes")==0)
printf("Get them a funny Valentine's card\n");
if(strcmp(type,"other")==0){
printf("Young or old? ");
scanf(" %s", otherq1);}
if(strcmp(otherq1, "young")==0){
printf("Get them a funny Valentine's card\n");}
if(strcmp(otherq1, "old")==0){
printf("You in their will? ");
scanf(" %s", otherq2);}
if(strcmp(otherq2, "no")==0){
printf("Don't get them anything\n");}
if(strcmp(otherq2, "yes")==0){
printf("Get them a funny Valentine's card\n");}
if(strcmp(q1, "friend")==0){
printf("What type (childhood or college)? ");
scanf(" %s", type);}
if(strcmp(type,"childhood")==0){
printf("Still talk to them? ");
scanf(" %s", childhoodq1);}
if(strcmp(childhoodq1, "yes")==0){
printf("Ever date them? ");
scanf(" %s", childhoodq2);}
if(strcmp(childhoodq1, "sometimes")==0){
printf("Good friend? ");
scanf(" %s", childhoodq2);}
if(strcmp(childhoodq1, "no")==0){
printf("Don't get them anything\n");}
if(strcmp(childhoodq2, "no")==0){
printf("Don't get them anything\n");}
if(strcmp(childhoodq2, "yes")==0){
printf("Get them a funny Valentine's card\n");}
if(strcmp(type,"college")==0){
printf("Roommate? ");
scanf(" %s", collegeq1);}
if(strcmp(collegeq1, "no")==0){
printf("Are you dating them?\n");
scanf(" %s", collegeq2);}
if(strcmp(collegeq1, "yes")==0){
printf("Get them a funny Valentine's card\n");}
if(strcmp(collegeq2, "no")==0){
printf("Don't get them anything\n");}
if(strcmp(collegeq2, "yes")==0){
printf("Don't be a douche! Get them something nice(chocolate or flowers)\n");}
return 0;
}