Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago

Question

=+ Are unions company-wide, regional, or national?

Answered: 1 week ago