Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 JAVAimage text in transcribed

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

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 Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions