Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?

image text in transcribed

  • 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

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions