Question: C# Visual Basic Create an enumeration named Month that holds values for months of the year, starting with JANUARY equal to 1. Write a program

C# Visual Basic

Create an enumeration named Month that holds values for months of the year, starting with JANUARY equal to 1. Write a program named Birthday that prompts the user for a month integer, a day integer, and a 4-digit integer for birth year and current year. Include code to validate the user input to ensure that the only enters a number from 1 to 12. Once the user input is validated, convert the user's entry to a enumeration Month value. Calculate the user's age. Ask the user is the have already celebrated their birthday this year. If they have not, subtract 1 from the age. Display the user's age and birthday like this example:

Your birthday is 25 years

Your birthday is July 8, 1988

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!