- Joined
- Sep 14, 2018
- Posts
- 549
- Solutions
- 54
- Reaction
- 1,145
- Points
- 472
Patulong naman po nito
Class name: Zodiac
Using a combination of if and switch statements, write a program that lets a user enter a month (as an
integer) and a day, and then the program displays the sign of the zodiac for that date.
Here are the dates for each sign:
Aries: March 21–April 20
Taurus: April 21–May 21
Gemini: May 22–June 21
Cancer: June 22—July 22
Leo: July 23—August 22
Virgo: August 23—September 23
Libra: September 24—October 23
Scorpio: October 24—November 22
Sagittarius: November 23—December 21
Capricorn: December 22—January 20
Aquarius: January 21—February 19
Pisces: February 20—March 20
Class name: Zodiac
Using a combination of if and switch statements, write a program that lets a user enter a month (as an
integer) and a day, and then the program displays the sign of the zodiac for that date.
Here are the dates for each sign:
Aries: March 21–April 20
Taurus: April 21–May 21
Gemini: May 22–June 21
Cancer: June 22—July 22
Leo: July 23—August 22
Virgo: August 23—September 23
Libra: September 24—October 23
Scorpio: October 24—November 22
Sagittarius: November 23—December 21
Capricorn: December 22—January 20
Aquarius: January 21—February 19
Pisces: February 20—March 20