Browse Source

Modifications to Horoscope and welcome msg

main
fdlt3859 2 years ago
parent
commit
5d46cbad45
  1. 56
      src/main/quizproject.c

56
src/main/quizproject.c

@ -2210,146 +2210,146 @@ void v_horoscope(int day, int month){
if ((month == 3 && day >= 21) || (month == 4 && day <= 19)) { if ((month == 3 && day >= 21) || (month == 4 && day <= 19)) {
char horo; char horo;
printf("Your horoscope is Aries.\n");
printf("\nYour horoscope is Aries.\n\n");
printf("Do you want to know more about Aries personalities?\n"); printf("Do you want to know more about Aries personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Like their fellow fire signs, Leo and Sagittarius, \nAries is a passionate, motivated, and confident leader who builds community with their cheerful disposition \nand relentless determination. \nUncomplicated and direct in their approach, they often get frustrated by exhaustive details and unnecessary nuances.\n");
printf("\nLike their fellow fire signs, Leo and Sagittarius, \nAries is a passionate, motivated, and confident leader who builds community with their cheerful disposition \nand relentless determination. \nUncomplicated and direct in their approach, they often get frustrated by exhaustive details and unnecessary nuances.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 4 && day >= 20) || (month == 5 && day <= 20)) { } else if ((month == 4 && day >= 20) || (month == 5 && day <= 20)) {
char horo; char horo;
printf("Your horoscope is Taurus.\n");
printf("\nYour horoscope is Taurus.\n\n");
printf("Do you want to know more about Taurus personalities?\n"); printf("Do you want to know more about Taurus personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Taureans aren't afraid to roll up their sleeves \nand work hard to earn big rewards. \nThey're ambitious, focused, and resilient and they feel most secure \nwhen steadily putting money into a savings account.\n");
printf("\nTaureans aren't afraid to roll up their sleeves \nand work hard to earn big rewards. \nThey're ambitious, focused, and resilient and they feel most secure \nwhen steadily putting money into a savings account.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 5 && day >= 21) || (month == 6 && day <= 20)) { } else if ((month == 5 && day >= 21) || (month == 6 && day <= 20)) {
char horo; char horo;
printf("Your horoscope is Gemini.\n");
printf("\nYour horoscope is Gemini.\n\n");
printf("Do you want to know more about Gemini personalities?\n"); printf("Do you want to know more about Gemini personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Playful and intellectually curious, Gemini is constantly juggling a variety of passions, \nhobbies, careers, and friend groups. \nThey are the social butterflies of the zodiac: \nThese quick-witted twins can talk to anyone about anything. \nFind them buzzing between happy hours, dinner parties, and dance floors.\n");
printf("\nPlayful and intellectually curious, Gemini is constantly juggling a variety of passions, \nhobbies, careers, and friend groups. \nThey are the social butterflies of the zodiac: \nThese quick-witted twins can talk to anyone about anything. \nFind them buzzing between happy hours, dinner parties, and dance floors.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 6 && day >= 21) || (month == 7 && day <= 22)) { } else if ((month == 6 && day >= 21) || (month == 7 && day <= 22)) {
char horo; char horo;
printf("Your horoscope is Cancer.\n");
printf("\nYour horoscope is Cancer.\n\n");
printf("Do you want to know more about Cancer personalities?\n"); printf("Do you want to know more about Cancer personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Cancer is the fourth sign of the zodiac and is represented by the Crab. \nThey're primarily known for being emotional, nurturing, and highly intuitive, \nas well as sensitive and at times insecure\n");
printf("\nCancer is the fourth sign of the zodiac and is represented by the Crab. \nThey're primarily known for being emotional, nurturing, and highly intuitive, \nas well as sensitive and at times insecure\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 7 && day >= 23) || (month == 8 && day <= 22)) { } else if ((month == 7 && day >= 23) || (month == 8 && day <= 22)) {
char horo; char horo;
printf("Your horoscope is Leo.\n");
printf("\nYour horoscope is Leo.\n\n");
printf("Do you want to know more about Leo personalities?\n"); printf("Do you want to know more about Leo personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Typical sun in Leo traits include being confident, comfortable being the center of attention, \ndrama-adoring, ambitious, loyal, fiercely protective of their nearest and dearest, \ngenerous, luxury-loving, sunny, and big-hearted.\n");
printf("\nTypical sun in Leo traits include being confident, comfortable being the center of attention, \ndrama-adoring, ambitious, loyal, fiercely protective of their nearest and dearest, \ngenerous, luxury-loving, sunny, and big-hearted.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 8 && day >= 23) || (month == 9 && day <= 22)) { } else if ((month == 8 && day >= 23) || (month == 9 && day <= 22)) {
char horo; char horo;
printf("Your horoscope is Virgo.\n");
printf("\nYour horoscope is Virgo.\n\n");
printf("Do you want to know more about Virgo personalities?\n"); printf("Do you want to know more about Virgo personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Virgos are logical, practical, and systematic in their approach to life. \nThis earth sign is a perfectionist at heart and isn't afraid to improve skills through diligent and consistent practice.\n");
printf("\nVirgos are logical, practical, and systematic in their approach to life. \nThis earth sign is a perfectionist at heart and isn't afraid to improve skills through diligent and consistent practice.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 9 && day >= 23) || (month == 10 && day <= 22)) { } else if ((month == 9 && day >= 23) || (month == 10 && day <= 22)) {
char horo; char horo;
printf("Your horoscope is Libra.\n");
printf("\nYour horoscope is Libra.\n\n");
printf("Do you want to know more about Libra personalities?\n"); printf("Do you want to know more about Libra personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Libras are extremely agreeable and honest people \nwho believe strongly in the importance of social connections. \nLibras are among the most fascinating and intelligent individuals on the planet, \nand they have a lot to give.\n");
printf("\nLibras are extremely agreeable and honest people \nwho believe strongly in the importance of social connections. \nLibras are among the most fascinating and intelligent individuals on the planet, \nand they have a lot to give.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 10 && day >= 23) || (month == 11 && day <= 21)) { } else if ((month == 10 && day >= 23) || (month == 11 && day <= 21)) {
char horo; char horo;
printf("Your horoscope is Scorpio.\n");
printf("\nYour horoscope is Scorpio.\n\n");
printf("Do you want to know more about Scorpio personalities?\n"); printf("Do you want to know more about Scorpio personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Scorpios are known for their loyalty and devotion — and also their passion. \nIn fact, they are known to have such intense personalities that they are often confused with vibrant fire signs. \nAlas, they just have deep feelings and emotions.\n");
printf("\nScorpios are known for their loyalty and devotion — and also their passion. \nIn fact, they are known to have such intense personalities that they are often confused with vibrant fire signs. \nAlas, they just have deep feelings and emotions.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 11 && day >= 22) || (month == 12 && day <= 21)) { } else if ((month == 11 && day >= 22) || (month == 12 && day <= 21)) {
char horo; char horo;
printf("Your horoscope is Sagittarius.\n");
printf("\nYour horoscope is Sagittarius.\n\n");
printf("Do you want to know more about Sagittarius personalities?\n"); printf("Do you want to know more about Sagittarius personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Represented by the archer (a half-man, half-horse centaur), \nSagittarius isn't afraid to use its bow and arrow to explore expansive terrain, \nseeking answers in places and spaces others wouldn't dare venture.\n");
printf("\nRepresented by the archer (a half-man, half-horse centaur), \nSagittarius isn't afraid to use its bow and arrow to explore expansive terrain, \nseeking answers in places and spaces others wouldn't dare venture.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 12 && day >= 22) || (month == 1 && day <= 19)) { } else if ((month == 12 && day >= 22) || (month == 1 && day <= 19)) {
char horo; char horo;
printf("Your horoscope is Capricorn.\n");
printf("\nYour horoscope is Capricorn.\n\n");
printf("Do you want to know more about Capricorn personalities?\n"); printf("Do you want to know more about Capricorn personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Capricorns are overachievers, persistent, practical, and sensitive. \nThey're known for their hardworking habits, and they're overachievers who make success look effortless \n— even though they put a lot of time and care into their careers and relationships.\n");
printf("\nCapricorns are overachievers, persistent, practical, and sensitive. \nThey're known for their hardworking habits, and they're overachievers who make success look effortless \n— even though they put a lot of time and care into their careers and relationships.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 1 && day >= 20) || (month == 2 && day <= 18)) { } else if ((month == 1 && day >= 20) || (month == 2 && day <= 18)) {
char horo; char horo;
printf("Your horoscope is Aquarius.\n");
printf("\nYour horoscope is Aquarius.\n\n");
printf("Do you want to know more about Aquarius personalities?\n"); printf("Do you want to know more about Aquarius personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Aquarius is actually the final air sign, which means it deals with air-related concepts from a macro-perspective. \nOf all the zodiac signs, Aquarius is undoubtedly the most innovative, progressive, rebellious, and humanitarian.\n");
printf("\nAquarius is actually the final air sign, which means it deals with air-related concepts from a macro-perspective. \nOf all the zodiac signs, Aquarius is undoubtedly the most innovative, progressive, rebellious, and humanitarian.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
} else if ((month == 2 && day >= 19) || (month == 3 && day <= 20)) { } else if ((month == 2 && day >= 19) || (month == 3 && day <= 20)) {
char horo; char horo;
printf("Your horoscope is Pisces.\n");
printf("\nYour horoscope is Pisces.\n\n");
printf("Do you want to know more about Pisces personalities?\n"); printf("Do you want to know more about Pisces personalities?\n");
printf("Your Answer(Y/N): "); printf("Your Answer(Y/N): ");
scanf(" %c", &horo); scanf(" %c", &horo);
horo = toupper(horo); horo = toupper(horo);
if (horo == 'Y'){ if (horo == 'Y'){
printf("Pisces people are known for being emotionally sensitive, gracious, and emotionally aware. \nPisces characters are regarded for being among the most sympathetic of the zodiac signs, \nand they will go to great lengths to ensure the happiness of those around them. \nThey're also creative and imaginative.\n");
printf("\nPisces people are known for being emotionally sensitive, gracious, and emotionally aware. \nPisces characters are regarded for being among the most sympathetic of the zodiac signs, \nand they will go to great lengths to ensure the happiness of those around them. \nThey're also creative and imaginative.\n");
}else{ }else{
printf("Okay no worries! But you missed the fun!"); printf("Okay no worries! But you missed the fun!");
} }
@ -2361,12 +2361,20 @@ void v_horoscope(int day, int month){
void v_play_horoscope(void) { void v_play_horoscope(void) {
int day, month; int day, month;
printf("*********************\n");
printf("Check your Horoscope!\n");
printf("*********************\n\n");
printf("Enter your birth day: "); printf("Enter your birth day: ");
scanf("%d", &day); scanf("%d", &day);
printf("Enter your birth month (in number): "); printf("Enter your birth month (in number): ");
scanf("%d", &month); scanf("%d", &month);
v_horoscope(day, month); v_horoscope(day, month);
printf("****************\n");
printf("Have a nice day!\n");
printf("****************\n\n");
} }
void feedbackForm(void){ void feedbackForm(void){

Loading…
Cancel
Save