Question: (Program should be in Java) Sample Assignment1CData.txt Abilene city, Texas 123420 Akron city, Ohio 197597 Alameda city, California 77624 Albany city, Georgia 72130 Albany city,
(Program should be in Java)

Sample Assignment1CData.txt
Abilene city, Texas 123420 Akron city, Ohio 197597 Alameda city, California 77624 Albany city, Georgia 72130 Albany city, New York 96460 Albany city, Oregon 55338 Albuquerque city, New Mexico 560513 Alexandria city, Virginia 159428 Alhambra city, California 83750 Aliso Viejo city, California 50887 Allen city, Texas 105623 Allentown city, Pennsylvania 121442 Alpharetta city, Georgia 67213 Amarillo city, Texas 199371 Ames city, Iowa 66258 Anaheim city, California 350365 Anchorage municipality, Alaska 288000 Anderson city, Indiana 54765 Ankeny city, Iowa 67355 Ann Arbor city, Michigan 119980 Antioch city, California 111502 Apex town, North Carolina 59300 Apopka city, Florida 53447 Apple Valley city, Minnesota 55135 Apple Valley town, California 73453 Appleton city, Wisconsin 74098 Arcadia city, California 57939 Arlington city, Texas 398854 Arlington Heights village, Illinois 74760 Arvada city, Colorado 121272 Asheville city, North Carolina 92870 Athens-Clarke County unified government (balance), Georgia 126913 Atlanta city, Georgia 506811 Auburn city, Alabama 66259 Auburn city, Washington 81464 Augusta-Richmond County consolidated government (balance), Georgia 197888 Aurora city, Colorado 379289 Aurora city, Illinois 197757 Austin city, Texas 978908 Avondale city, Arizona 87931
ASSIGNMENT 1C Assignment 1C tests your knowledge of Sets and Maps (Chapter 21). Design a program/project/driver class (the program/project/driver class file should be called YourNameAssignment1C replace YourName with your actual name or the name you go by, no spaces) with the following exact/precise 1 functionality, and names: 1. Create an ordered map data structure called YourNameMap (replace YourName with your actual name) - any type of map introduced in Chapter 21 like Map, Linked ListMap, or TreeMap (use your knowledge of the chapter and problem at hand to decide which type is better for this particular problem). 2. Read the data from the attached Assingment1CData.txt file that has the following format (with data separated by commes and tabs): Area, state Population and store the state - Totalpopulation data into YourNameMap with the State as the key and Totalpopulation (the total from all the geographical areas from that state) as the value. For example, when you read "Abilene city, Texas 123420", you are going to add Texas-123420 to the YourNameMap map, then later when you read "Allen city, Texas 105623", you are going to add 105623 to the current Texas value which is 123420 , and so on until at the end you get Texas - 15581916 . You should read the file only once and use your YourNameMap to keep track of the state population for the geographical area you have read/processed (so far). 3. Print the values from YourNameMap in alphabetical order of the states in a table with first column for the state and second column for the total population. You should use print f columns and not tabs to build your table columns. Create a Microsoft Word document called YourNameAssignment1C-Screenshot.docx. (replace YourName with your actual name) that contains screenshots of the editor window showing the complete JAVA source code in editor and screenshots of the complete output, in the logical order. If the entire class JAVA source code or the output does not fit in one screenshot or the screenshots cannot be easily read, create multiple screenshots and add them to the same document. Submit YourNameAssignment1C.java JAVA source code file and YourName-Assignment1C-Screenshots.docx Microsoft Word screenshots document on eCampus under the Assignment 1C. Do not archive the files (no ZIP, no RAR, etc) or submit other file formats. Review the files in your eCampus submission confirmation window. 1 Use the exact names (spelling, caps). You are not going to earn any credit if the classes and methods do not contain your actual name and have the exact/precise names and functionality
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
