[SOLVED] JAC444 -Workshop 7

24.99 $

Category:

Description

5/5 - (1 vote)

The following workshop lets you practice basic java coding techniques, creating classes, methods, using arrays, Java I/O, inheritance, polymorphism, Exceptional Handling, JavaFx (GUI), Lambda expressions, Functional Interface, Collection Framework.

 

Task 1:

               In workshop 6 we used baby name ranking files, this workshop going to use the same files,

 

Part – 1.

  1. Write a program that prompts the user to enter one of the filenames from baby ranking and displays the names that are used for both genders in the file.
  2. Use Lists to store the names and find common names in two lists.

 

Here is a sample run:

Enter a file name for baby name ranking: babynamesranking2010.txt

68 names used for both genders

They are Charlie Emerson Morgan …

Part – 2.

  1. Sort all names for boys and girls in their lists.
  2. Remove the duplicates.
  3. Display the sorted names individually
  4. Design out own output for this part.
  5. For sorting method from Collection interface.

 

Task 2: (Design your own output for this you are free to use JavaFX or not)

 

Assume that 25 countries and their capitals are stored in a map. Your program should prompt  the user to enter a country and should display the capital for that country.