Question: 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.

Sample Data (Input File):


name: String b. count: int c. sex: char You are to define  


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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!