Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just need the C++ code for the Following: Write an astrology program. The user types in a birthday, and the program responds with the sign

Just need the C++ code for the Following:

Write an astrology program. The user types in a birthday, and the program responds with the sign and horoscope for that birthday. The month may be entered as a number from 1 to 12. Then enhance your program so that if the birthday is only one or two days away from an adjacent sign, the program announces that the birthday is on a cusp and also outputs the horoscope for that nearest adjacent sign. This program will have a long multiway branch. 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.

image text in transcribed

Other Requirements:

For this assignment, make sure your program does an input validation, that is, if the user types in an invalid date (month and day), the program needs to process accordingly. An invalid date example: month is 4 and date is 31.

Also, the program needs to check for "cusp" and display the cusp's sign as well as the horoscope.

The program should declare constants (or variables) for the 12 signs at the beginning of the program.

-Needs actual horoscope

-Invalid input must not be given a sign

Thanks :)

The horoscope signs and dates are Aries March 21-April 19 April 20-May 20 Taurus Gemini May 21-June 21 June 22-July 22 Cancer July 23-August 22 Leo August 23-September 22 Virgo Libra September 23-October 22 October 23-November 21 Scorpio November 22-December 21 Sagittarius December 22-January 19 Capricorn January 20-February 18 Aquarius February 19-March 20 Pisces

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

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

Students also viewed these Databases questions

Question

Psychological, financial, and career counseling.

Answered: 1 week ago