Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need this in Java Grouper Program The goal of this program is to create groups based on the person's date of birth. To reduce the

image text in transcribed Need this in Java
Grouper Program The goal of this program is to create groups based on the person's date of birth. To reduce the amount of code you need to write, we will keep it simple and just make 2 groups. Tasks 1. Prompt the user for their date of birth using the format (day/month/year). 2. Ensure that it is a valid date by checking that it has 2 slashes. 3. Also check that the entire entry is an appropriate length, keeping in mind the user could enter dates such as: 1/5/2001 or 29/12/2001. 4. Keep looping and asking them to re-enter the date of birth until you get a valid one. 5. Extract the month from the valid date of birth. 6. Group the students into 2 groups. If they were born in December, print "Red Group". If they were not born in December, print "Green Group

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_2

Step: 3

blur-text-image_3

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions