Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question: Sample Data (Input File): 1. Write a class definition named PopularName with the following attributes: a. name: String b. count: int c. sex: char
Question:
1. Write a class definition named PopularName with the following attributes: a. name: String b. count: int c. sex: char You are to define all required methods including normal constructor, mutator, accessor and printer. 2. Write an class application named PopularNameApp to do the followings: a. Read data from input file "popular Registered Name1922_2021.txt" and store the data into ArrayList name name List. Table 1 shows the sample data of "popularRegisteredName1922_2021.txt". To use the input file, you are from repository (link: required to download the file popularRegistered Name1922 2021.txt) Table 1: Input file "popularRegistered Name 1922 2021.txt" Popular names for births in 1922-2021 Timothy; 1072620;M John; 4403862;M Elizabeth; 1411916; F Jesse; 387393;M Richard; 2439835;M Daniel; 1900488;M Jesse; 102317;F Amanda; 773501;F Raymond; 657165;M Janet; 537105;F 3. Display the data into console, as well as write the data into output file named "listOfName001.txt" with the following format: Table 1: Input file "popularRegistered Name 1922_2021.txt" Popular names for births in 1922-2021 Name Total Count Sex TIMOTHY 1072620 M JOHN 4403862 M ELIZABETH 1411916 F JESSE 387393 M RICHARD 2439835 M DANIEL 1900488 M JESSE 102317 F AMANDA 773501 F RAYMOND 657165 M JANET 537105 F ~End of Question~
Step 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