Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Writea program that will accept up to ten names (first and last names)and associ

ID: 3608858 • Letter: W

Question

Writea program that will accept up to ten names (first and last names)and associated birthdate.

Yourprogram should ask the user for how many people s/he wants to enterand then read the names

(firstand last) and the corresponding birth-date in the following format:MM/DD/YYYY. Your program

shouldthen use a menu that allows the user to select either the way s/hewants to display the list of the

entries, sorted by last name, first name, or birth-date, or tosearch for a specific entry by a specificfield

(lastname, first name or birth-date) from data entered by the user. Theprogram should terminate when the

user selects exit fromthe menu.

}

Explanation / Answer

please rate all -thanks import java.util.*; import java.io.*; public class NameAndDate {     public static void main(String[] args)     {         int input, count = 1,menu;//stores the number of inputs the user needs.         String [][] data = newString[30][3];// an array to store the names and dates         String firstName,lastName, birthDate;//variables for the input by the user.         String key;               //Creates object so thatit is able to read input from keyboard.         Scanner keyboard = newScanner(System.in);                        //asks the user for thenumber of inputs.         System.out.println("Howmany inputs do you need?");         input =keyboard.nextInt();               //a loop for the numberof inputs         for (int y =0;y