From 5d46cbad4549acaaca1077bec01d7d8901575e08 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Tue, 7 Feb 2023 00:35:42 +0000 Subject: [PATCH] Modifications to Horoscope and welcome msg --- src/main/quizproject.c | 56 ++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index e1f2103..29fa82a 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -2210,146 +2210,146 @@ void v_horoscope(int day, int month){ if ((month == 3 && day >= 21) || (month == 4 && day <= 19)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 4 && day >= 20) || (month == 5 && day <= 20)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 5 && day >= 21) || (month == 6 && day <= 20)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 6 && day >= 21) || (month == 7 && day <= 22)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 7 && day >= 23) || (month == 8 && day <= 22)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 8 && day >= 23) || (month == 9 && day <= 22)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 9 && day >= 23) || (month == 10 && day <= 22)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 10 && day >= 23) || (month == 11 && day <= 21)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 11 && day >= 22) || (month == 12 && day <= 21)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 12 && day >= 22) || (month == 1 && day <= 19)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 1 && day >= 20) || (month == 2 && day <= 18)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ printf("Okay no worries! But you missed the fun!"); } } else if ((month == 2 && day >= 19) || (month == 3 && day <= 20)) { 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("Your Answer(Y/N): "); scanf(" %c", &horo); horo = toupper(horo); 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{ 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) { int day, month; + printf("*********************\n"); + printf("Check your Horoscope!\n"); + printf("*********************\n\n"); + printf("Enter your birth day: "); scanf("%d", &day); printf("Enter your birth month (in number): "); scanf("%d", &month); v_horoscope(day, month); + + printf("****************\n"); + printf("Have a nice day!\n"); + printf("****************\n\n"); } void feedbackForm(void){