majorlab3 - CS 112 Major Lab #3 BabyNames Application...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 112 Major Lab #3 BabyNames Application (version 1.1) Due : Friday, November 9, 3pm. How : Submit printouts to me, and save a copy of the project in your network account folder. Working alone, solve the following programming assignment. Keep in mind that academic dishonesty is defined as the giving or receiving of unauthorized aid (see the course syllabus for more details). Late programs are not accepted. 0. Grading policy You will be graded primarily on design and correctness: a program that works correctly will typically earn a score of 85 (out of 100), a program that doesn’t run is worth maybe 10-20 points. A program that runs but produces incorrect output is worth something in between; you are responsible for testing your own programs. Good programming design includes concepts such as letting the “worker” objects do the work of reading and writing formatted data. Basic efficiency includes using loops whenever appropriate. The remaining 15 points of your grade will be based on commenting and readability. For now, this means… Each Java source file must contain a header comment, including your name, the date, the lab assignment, and a brief summary of what the file represents. You should also use readable variable names (e.g. “tictactoe” and “keyboard” instead of “t” and “k”), Use proper indentation to make your program easier to understand, and use whitespace (i.e. blank lines) to separate blocks of your program & enhance readability. Finally, comments must be added to all major sections of your program to describe what each section is doing — for now this implies comments at the top of each method, the top of each chain of if-then-else statements, and the top of each loop. 1. Background The Social Security Administration (SSA) provides a web site showing the distribution of first names chosen for US kids over the last 100 years: http://www.ssa.gov/OACT/babynames/ . This data is interesting in many ways. For example, you can witness ethnic trends in the US population by the growing popularity of names such as Miguel, Mohammad and Samir. You can also see the impact of pop culture — all of a sudden Trinity is a very popular name, why is that? Note that the data is for children born in the US , so ethnic trends don’t show up until the parents starting having children here in the states. For each name in the survey (of which there are about 5,000 total), the SSA’s data ranks the name in popularity over the 20 th century (1900. .2000). Thus, each name in the survey has 11 rankings, representing the name’s popularity in 1900, 1910, 1920, …, 1990, and 2000. For example, here’s the data for the name “Trinity”: Trinity 0 0 0 0 0 0 0 976 0 778 74
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The SSA only ranked the 1,000 most popular names in each year, and so a 0 means the name did not make the top 1,000. Thus Trinity was not a very popular name in 1900. .1960, but was the 976 th most popular name in 1970. It slipped out of the rankings in 1980, made a comeback in
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

majorlab3 - CS 112 Major Lab #3 BabyNames Application...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online