Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2ip Code 40218: 1 resident Requirements Zip Code: 55101 Fontanella, Alan Luck, Andrew The purpose of this project is to gain an understanding of using

image text in transcribed

2ip Code 40218: 1 resident Requirements Zip Code: 55101 Fontanella, Alan Luck, Andrew The purpose of this project is to gain an understanding of using a hash table, sorting and basic report generation techniques. 2ip Code 55101: 2 residents Zip Code: 55102 2ip Code 55102: 1 resident Report Summary: Smith, Joe You will be provided an input file with each line containing a person's first name, last name, and zip code separated by 1. Create a hash map 2. Read each line from the input file. 3. Parse the data into a Person class instance 2 Records in error 3 Zip Codes encountered 4 Records Processed containing firstName, lastName zipCode. If the parsing is not correctlist that line as in error. Hint there are standard Java library methods to help with the parsing. Add the Person to the hash map. If a person by the same first and last name already exists, display an error and ignore this entry Sort the entries in the hash map by zip code, last name, and then first name. Hint: a HashMap does not support sorting. You wili need to make a copy of all entries in the HashMap into another data structure. Grading Criteria . Methods must be of appropriate length usually less than 1 page in length Appropriate private and public access modifiers must be used. Almost always data is private and methods are public although you may certainly have private or protected methods if appropriate. 4. . 5. . Meets program specifications as described above . The program is robust with no runtime errors or Program is readable 6. 7. Print a report header. Print out the results sorted by zip code with a count of the numbers in each zip code. Print a report summary Comments o Use lavadocs conventions [Appendix H) o Include comments on the class as a whole 8. including A few sample lines in the input file might be: Description of program Your name (use @author) -Date (due or date you started or - Source of any "borrowed" code .Concise description of what ,55101 last modified) BryanHls, 40218 Andreck, 55101 Toe smich, 55102 o For each method include andreK.Luck, 55102 method does Arguments for each method (use @param) For this input file, the generated report should look like: -Returned value (use @returns) Exceptions which are thrown (@throws) Format error on line 5: ?nawaosa Entry on line already encountered: Andres k, 55102 .Consistent and correct indenting Meaningful identifiers Normal capitalization conventions are used The source of any "borrowed" code is clearly identified . Company 2ip Code Distribution April 6, 2018

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. Diagnose and solve a transfer of training problem.

Answered: 1 week ago