Question: 11.1: What's Your Sign? For this assignment, let's write an astrology program. Welcome the user (see sample output below) Prompt the user to enter a

11.1: What's Your Sign?

 11.1: What's Your Sign? For this assignment, let's write an astrology

  • For this assignment, let's write an astrology program.
  • Welcome the user (see sample output below)
  • Prompt the user to enter a numerical value (1-12) for the month of his/her birth (see sample output)
  • Prompt the user to enter a numerical value (1-31) for the day of his/her birth (see sample output)
  • Using the chart below for the astrological signs, determine the user's sign based on his or her input.
  • Expect to need to use if, else if and else statements.
  • Expect to use logical operators (&&, ||).
  • Submit your source code in a file called Sign.java to Canvas when finished

Aries March 21-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 - November 21

Sagittarius November 22 - December 21 Capricorn December 22 - January 19 Aquarius January 20 - February 18 Pisces February 19 - March 20

Your sample output must be identical to mine:

What's your sign? Please enter the month of your birth (1-12): 3 Please enter the day of your birth (1-31): 3 Your Sign is Pisces.

Alternately,

What's your sign? Please enter the month of your birth (1-12): 4 Please enter the day of your birth (1-31): 12 Your Sign is Aires.

Alternately,

What's your sign? Please enter the month of your birth (1-12): 100 Please enter the day of your birth (1-31): -2 Invalid Entry. Please run the program to try again.

IIX- xXII IX

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!