You will need the two files attached to this note: GirlNames.txt and BoyNames.txt. GirlNames.txt file contains a list of the 200 most popular names given to girls born in the United States from the year 2000 through 2009. BoysNames.txt does the same for boys. Write a program that reads the contents of the two files into two separate lists. The user should be able to enter a boy’s name, a girl’s name, or both, and the application will display messages indicating whether the names were among the most popular. Hint: there might be list functions that do a fast search versus using an IF statement.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question

You will need the two files attached to this note: GirlNames.txt and BoyNames.txt.
GirlNames.txt file contains a list of the 200 most popular names given to girls born in the United
States from the year 2000 through 2009. BoysNames.txt does the same for boys.
Write a program that reads the contents of the two files into two separate lists. The user should be able
to enter a boy’s name, a girl’s name, or both, and the application will display messages indicating
whether the names were among the most popular.
Hint: there might be list functions that do a fast search versus using an IF statement.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT