printf("On a scale of 1 to 10, how introverted are you? ");
scanf("%d",&introverted);
printf("On a scale of 1 to 10, how energetic are you? ");
scanf("%d",&energetic);
printf("On a scale of 1 to 10, how optimistic are you? ");
scanf("%d",&optimistic);
printf("On a scale of 1 to 10, how empathetic are you? ");
scanf("%d",&empathetic);
printf("\nSummary for %s:\n\n",name);
printf("Based on your answers, %s is a person who is\n",name);
if(introverted>=7){
printf("introverted and tends to prefer more solitary activities.\n");
}else{
printf("extroverted and tends to enjoy being in social situations.\n");
}
if(energetic>=7){
printf("They are full of energy and always on the go.\n");
}else{
printf("They are relaxed and tend to take a more laid-back approach to life.\n");
}
if(optimistic>=7){
printf("They have an optimistic outlook on life and are generally hopeful and positive.\n");
}else{
printf("They have a pessimistic outlook on life and tend to focus on the negative.\n");
}
if(empathetic>=7){
printf("%s is a very empathetic person who is able to understand and connect with others.\n",name);
}else{
printf("%s is not as empathetic and may have trouble connecting with others emotionally.\n",name);
}
printf("\n\nThis is just a general summary based on the answers provided.\nEveryone is unique and complex, and these answers only provide a limited \nview into %s's personality.",name);