Java Converting Celsius and Farenheit Final Project
Description
The popularity ranking of baby names from the year 2010 is downloaded from www.ssa.gov/oact/babynames and stored in the zip file named babynamesrankings.zip.
The file contains two thousand lines. Each line contains the gender, ranking, a babyænbsp;name and number of births.
For example, the first two lines in the file are as follows:
LOOK AT Screenshot 1
Design a BabyName class. Using draw.io, Google Draw or another tool, create the UML diagram for the class and implement BabyName. The BabyName class contains:
- Data fields: name, gender, rank and numberOfBirths
- A constructor that creates a BabyName object with the specified name, gender, rank and numberOfBirths
- The accessor methods for all data fields.
- A method named toString() that returns a string description for the BabyName object.
Create a flowchart and implement a program that inputs the baby name records from the text file. Create two ArrayList objects, one for girl names and one for boy names.
ArrayList<BabyName> boyNames = new ArrayList<>();
ArrayList<BabyName> girlNames = new ArrayList<>();
The fields in each baby name record should be used to instantiate a new BabyName object and add it to the appropriate ArrayList.
Prompt the user with a menu. Your program should look like this when it is run:
LOOK AT Screenshot 2
If the user selects option
1. the program should ask the user for a name and search the boy and girl names to find a match and display the information. Make sure to account for the name being found under both genders.
2. the program should ask the user for a rank value and search boy and girl names to find a match and display baby names matching by rank. Use a linear search to find the baby name. (See linear search code in the slides for Chapter 7) Use the toString() method to display the baby name.
3. the program should stop running
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."