Write a function that asks the user for their birthday month and day and then the function should call a nested function to find out the person’s zodiac sign. Test your program with some user 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 23  Scorpio: October 24 – November 21  Sagittarius: November 22 – December 21  Capricorn: December 22 – January 19  Aquarius: January 20 – February 18  Pisces: February 19 – March 20

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.2: Returning A Single Value
Problem 13E
icon
Related questions
Question
Write a function that asks the user for their birthday month and day and then the
function should call a nested function to find out the person’s zodiac sign. Test your
program with some user 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 23
 Scorpio: October 24 – November 21
 Sagittarius: November 22 – December 21
 Capricorn: December 22 – January 19
 Aquarius: January 20 – February 18
 Pisces: February 19 – March 20

 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr