Question: 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

 Need this in Java Grouper Program The goal of this program 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

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!