Question: PROGRAMMING LANGUAGE IS JAVA Generation The approximate ranges of the generations in Western culture are defined as follows: The Lost Generation: 1883 - 1900 The

PROGRAMMING LANGUAGE IS JAVAPROGRAMMING LANGUAGE IS JAVA Generation The approximate ranges of the generations in

Generation The approximate ranges of the generations in Western culture are defined as follows: The Lost Generation: 1883 - 1900 The Greatest Generation: 1901 1927 Silent Generation: 1928 1945 Baby Boomers: 1946 1964 Generation X: 1965 1980 Millennial: 1981 - 1996 Generation Z: 1997 2012 Generation Alpha: 2013 - present Write a program that asks the user to enter a birth year. The program should then indicate which generation a person of that year belongs/would have belonged to. Note: Use Input validation: Make sure the year entered is within the range of 1883 - 2020. Use an if else if statement to select the appropriate ranges of generation. A sample of the output is shown below: Enter a year: 206 Sorry, that year is not within the valid range. Re-enter the year: 2006 You are part of Generation z

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!