Question: A. Write a C++ program that will read in month and day (as numerical value). The program will return the equivalent zodiac sign. Use switch

A. Write a C++ program that will read in month and day (as numerical value). The program will return the equivalent zodiac sign. Use switch statement.

Use the table of Zodiac Sign below: Aquarius: Jan 20 Feb 18 Pisces: Feb 19 Mar 20 Aries: Mar21 Apr 19 Taurus: Apr 20 May 20 Gemini: May 21 Jun 20 Cancer: Jun 21 July 22 Leo: Jul 23 Aug 22 Virgo: Aug 23 Sep 22 Libra: Sep 23 Oct 22 Scorpio: Oct 23 Nov 21 Sagittarius: Nov 22 Dec 21 Capricorn: Dec 22 Jan 19

Sample Output:

Enter the month: 10

Enter the day: 25

The Zodiac Sign for October 25 is Scorpio.

A.1 What is your horoscope? (Using if-statement | C++ Program)

A.2 What is your horoscope? (Using switch statement | C++ Program)

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!