Question: 2. Write an astrology program. The user type in a birthday (month and day), and the program responds with the sign and horoscope for that
2. Write an astrology program. The user type in a birthday (month and day), and the program responds with the sign and horoscope for that birthday. The month may be entered as a number from 1 to 12. The day can be from 1 to 31 This program will have at least one switch statement. Make up a horoscope for each sign. Your program should include a loop that lets the user repeat this calculation until the user says she or he is done. The horoscope signs and dates are: Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius Capricorrn Aquarius Pisces March 21 - April 19 April 20- May 20 May 21 June 21 June 22 -July 22 July 23 - August 22 August 23- September 22 September 23 - October 22 October 23- November 21 November 22-December 21 December 22- January 19 January 20 February 18 February 19- March 20 Sample runs nter month (1.. .12): 1e nter day (. 31): 2 oroscope ontinue (Y yes or N- no)? y nter month (.12): 6 sign is Libra -Sophisticated, Sociable, Popular, Diplomatic, Adaptive, Aggressive, Rational nter day (3-31): 10 oroscope ontinue (Y yes or N - no)? sign is Genins -versatile, Adapting to Change, Devoted, witty, Charming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
