Write a program to sort name and age the program takes


Write a program to sort name and age. The program takes input as the 1) first name which can be 2 to 10 characters 2) Data of birth as day, month, and year. The program sorts the name from a to z. The output of your program are 1) sorted names and 2) their respective age. If two names have same first character, then the two names are sorted by the 2nd character. If 1st and 2nd characters of two names are same, then the names are sorted by the 3rdcharacter, and so on.

There are only 4 names with age to sort.

For input and output you can use standard system input output in Java. If you want you can also use Java GUI tool such as Swing or JavaFx in your program. Sufficient comments should be placed in the source code. The program also properly checks for wrong input.

Please submit only 1) the source code (.java file) for this project 2) Two sample runs of your program showing the inputs and outputs.

A sample output will look like:

Name                                    Age

Anand                                   43

Andy                                     38

Dora                                      48

Dori                                        8

Request for Solution File

Ask an Expert for Answer!!
Chemistry: Write a program to sort name and age the program takes
Reference No:- TGS01120804

Expected delivery within 24 Hours