Question: Java: The Assignment Write a program that reads the provided SSA data file and supports the following features: The user should be able to look

Java:

The Assignment Write a program that reads the provided SSA data file and supports the following features: The user should be able to look up a specific name and see a bar graph (produced via text characters) of that names popularity from 1900-2000. The height of each bar should be scaled according to the names rank during each census, with lower rank resulting in a higher bar. (However, rank 0 should result in a bar height of 0.) Each bar should also indicate the names numerical rank during that census. If the name entered by the user does not exist in the data, show an appropriate error message. The next page contains two examples of what this bar graph might look like. Your formatting does not need to match this exactly, as long as the same information is conveyed. Number of People: Individual Due: Monday, April 23, by 11:59 pm Submission: Zip your entire Eclipse project into a single file and upload it to the proper folder in the eCourseware dropbox at https://elearn.memphis.edu. Grader: This project will be graded based on your COMP 1900 lecture section: 001 Aashis Ghimire, ghimire1@memphis.edu 002 Mishfaq Ahmed, mahmed1@memphis.edu 003 Keli Cheng, kcheng@memphis.edu Historical popularity of Erica: (Ranks shown above each bar, 0 indicates not popular enough to be ranked) 62 36 57 xxxx xxxx xxxx 105 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 397 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 806 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 0 0 0 0 0 xxxx xxxx xxxx xxxx xxxx xxxx +----+----+----+----+----+----+----+----+----+----+----+ 1900 1910 1920 1930 1940 1950 1960 1970 1980 1990 2000 Historical popularity of Horace: (Ranks shown above each bar, 0 indicates not popular enough to be ranked) 133 128 143 xxxx xxxx xxxx 194 229 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 301 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 471 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 670 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 849 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 0 0 +----+----+----+----+----+----+----+----+----+----+----+ 1900 1910 1920 1930 1940 1950 1960 1970 1980 1990 2000 The user should be able to change the height of the bar graph above. The example graphs above are scaled to a maximum height of 15 lines of text, but the user should be able to specify any height from 10-30 lines. Include error checking to catch invalid input. The user should be able to request a list of the top n names from any of the census years in the data (1900, 1910, 1920, , 2000). The program should show a list of the names with rank ? n from that census, sorted by ascending rank. Note that since both male and female names are included in the file, there may be more than one name per rank! Your program should list all names of the same rank. Include error checking to ensure that the census year is valid and that n is between 1-1000. I will demonstrate a working version of the project in class, but yours does not have to match mine exactly as long as it supports the features above. Be sure to include error checking on all user inputs in your program. Code Organization Your program should use methods to break the code down into manageable chunks. At minimum, include the following methods (although you are welcome to add more if you want): A method that handles reading the data file. A method that prints a bar graph showing the historical popularity of a specific name from 1900-2010. This method should include parameters for name and height of the graph. A method that shows the top n names from a particular census year. This method should include parameters for year and n.

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 Databases Questions!