Question
Baby Name Popularity GUI From 2006 to 2010. Prompt user for name, gender and year. Use a ComboBox for gender and year. Use a TextBox
Baby Name Popularity GUI
From 2006 to 2010.
Prompt user for name, gender and year.
Use a ComboBox for gender and year.
Use a TextBox for the name
Use a button named Find Popularity
Application should read text from provided files, not be hardcoded.
If there is no ranking for the name/info entered, a message Sorry, no ranking for ..(babys name) in.(year) should be shown in results Textbox.
Sorry, I don't know how to add text files to the question but the files have lists that look like the below:
1 Jacob 21,036 Isabella 22,222
2 Ethan 19,783 Emma 17,830
3 Michael 18,822 Olivia 17,374
4 Alexander 18,175 Sophia 16,869
There are 5 files, each pertaining to a certain year from 2006 to 2010
Example output:
Heres what I have so far. Its really just code setting up the JFrame though.
What I'm really having trouble with is accessing, sorting and then getting results from the text files.
*Note: I removed my code from the question since it didn't seem to help anyone.
Baby Name Popularity Select a Year 2010 Male Gender Enter a Name Ethan Find Ranking Ethan was #2 in 2010 Baby Name Popularity Select a Year 2010 Male Gender Enter a Name Ethan Find Ranking Ethan was #2 in 2010Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started