Question: Write a program in C++ that identifies a users astrology sign, according to their birth month and date. The user should be prompted to enter

Write a program in C++ that identifies a users astrology sign, according to their birth month and date. The user should be prompted to enter month and date, as integers, in that order. The program will then determine their astrological sign and return the appropriate sign. The program repeats. You must use the following astrological calendar:

AQUARIUS January 20-February 18

PISCES February 19-March 20

ARIES March 21-April 19

TAURUS April 20-May 20

GEMINI May 21-June 20

CANCER June 21-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

All other date combinations are considered an INVALID DATE

PROGRAM INPUT:

-Two positive integers, the first integer represents month and the second number represents the day as a date (1-31).

-One character will be entered by the user, after receiving their astrological sign, to indicate whether they wish to continue.

-The program will repeat until the user enters something other than {'Y', 'y'}.

PROGRAM OUTPUT:

-You will be sending some of your outputs to standard error (cerr), rather than standard output (cout)

-Outputs sent to cerr will be directed to the screen unless redirected to an error file with 2>

-Outputs sent to cout will be directed to the screen, unless redirected to an output file with >

-The ONLY output to be sent to cout should be the astrology sign once it is determined

-All other outputs must be sent to cerr , including the program introduction and prompt.

IMPLMENENTATION REQUIREMENTS:

-You must incorporate a separate FUNCTION for each astrological sign.

-You will need to include FUNCTION PROTOTYPES, complete with function headers, above main.

-You will need to include FUNCTION DEFINITIONS, below main.

-You will need to INVOKE the appropriate function whenever the associated month/date is entered.

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!