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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started