For purposes of this program, you can assume all months end on the 31st, so you don't have to print "error" on Feb 30 or Sept 31 for example (nor do you have to worry about if the program is run on a leap year). Note also that 8th is spelled eighth, 10th is spelled "tenth", 20th is spelled "twentieth" and 30th is spelled "thirtieth".
Use the following dates to determine the horoscope:
Aries 21 March – 19 April
Taurus 20 April – 20 May
Gemini 21 May – 20 June
Cancer 21 June – 22 July
Leo 23 July –22 August
Virgo 23 August – 22 September
Libra 23 September – 22 October
Scorpio 23 October – 21 November
Sagittarius 22 November – 21 December
Capricorn 22 December – 19 January
Aquarius 20 January – 18 February
Pisces 19 February – 20 March
Sample Run 1:
What month were you born in?(number)
9
What day (number)
25
Your birthday is: September twenty-fifth
Libra
Horoscope: Expect lots of hard work, but also lots of laughs this month.
Sample Run 2:
What month were you born in? (number)
13
What day (number)
1
error
Sample Run 3:
What month were you born in? (number)
6
What day (number)
45
error