Assignment 11
Due Thursday, May 17 at 9:20am on Canvas


Assignment 11.1: What's Your Sign? (10 pts)


Venice ast sm.jpg

  • 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)
  • Then, determine the user's sign based on their input.
        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

  • Expect to need to use if, else if and else statements.
  • Expect to use logical operators (&&, ||).
  • Submit your source code in a file called astrology.cpp to Canvas when finished

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.