Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question # 2 write an astrology program. The user types in a birthday, and thepr

ID: 3617860 • Letter: Q

Question

Question # 2

write an astrology program. The user types in a birthday, and theprogram responds with the sign and horoscope for that birthday. themonth may be entered as a number from 1 to 12. Then enhance yourprogram so that if the birthday is only one or two days away froman adjacent sign, the program announces that the birthday is on a"cusp" and also outputs the horoscope for the nearest adjacentsign. This program ill have a long multiway branch. Make up ahoroscope for each sign. you program should include a loop thatlets the user repeat this calculation until the user say she or heis done.



The horoscope signs and date are :



Aries                 March 24-April 19

Taurus              April 20- May 20

Gemini              May 21- June 21

Cancer              June 22-July 22

Leo                   July 23-August 22

Virgo                 August 23-September 22

Libra     September 23-October 22

Scorpio           October 23-November21

Sagittarius           November 22- December 21

Capricorn            December 22-January 19

Aquarius             January 20-February 18

Pisces                 February 19-March 20

Explanation / Answer

Basically if I ma understanding your question I think theproblem would be very easy to solve using a bunch of if statementsand all this in a while loop which would keep the program loopinguntil the user wants to exit: *First you would ask the user for the birthdate which can bedone by printf("Please enter your birthdate:"); and thenscanf("%d......" &(your variable name/names if the user is alosentering the day and year of birth) *then you would use the variable let's say that your monthvariable was month and in your if condition put something likeif(month == 1) && (day >= 20).....so like a serious ofconditions to satisfy the signs date period like form jan 20 to feb18..... *and all this would be in a while loop that has a conditionthat if users response does not equal done or (whatever you chose)then keep on executing the stuff underneath the while loop soeverything except your printf and scanf in the beginning should bein a while loop again I don't know the details of what the user is going toenter in what format and so I really can't explainthoroughly....hope it helps and sorry if i confused youfurther