You have been hired by the world famous celebrity astrologer Terry Nazon to help her create a program. Given a person’s birth date (day and month) the program will figure out a person’s horoscope sign. She requested that this initial program prompts the user for a number of persons. For each person, the program needs to automatically generate day and month of birth and display the corresponding horoscope sign. The program needs to prompt the user if they want to go again, and repeats the process until the user says that s/he is done. (Hint: use random number generator function to generate day and month for each person) The horoscope signs and dates are: Dates Sign December 22 – January 19 Capricorn January 20 – February 18 aquarius February 19 – March 20 pisces March 21 – April 19 aries April 20 – May 20 taurus May 21 – Jun 21 Gemini Jun 22 – July 22 Cancer July 23 – August 22 Leo Aug 23 – September 22 Virgo September 23 – October 22 Libra October 23- November 21 Scorpio November 22 – December 21 Sagittarius The output should look something like this: Enter number of persons: 10 Born on Horoscope Sign --------------------------------------------------- 7/3 Cancer 7/13 Cancer 7/20 Cancer 1/21 Aquarius 7/1 Cancer 3/7 Pisces 10/11 Libra 12/20 Sagittarius 12/7 Sagittarius 2/4 Aquarius Would you like to try again?
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Get Free Quote!
340 Experts Online