Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago