-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poverty Project - Java and Python #9
base: master
Are you sure you want to change the base?
Conversation
… prints line from txt file if county is found
…line as parameter
… for user selected county
…ncome for selected county
public String med_income; | ||
|
||
public County(String line) { | ||
this.name = line.substring(193, 238); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick - since the file format could at some point change, might recommend setting these ints as constants which would map to the type of data they are associated with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, updated
…method currently works for finding highest percent
…ercent in find_extreme_county method, County objects now have a name attribute
…ning if any counties were found
Project requirements complete for Java and Python.
Program displays info about the counties with the highest and lowest % of children in poverty for each state. Program accepts user input for the desired state and county and displays corresponding county name, percentage, count of children in poverty and the median household income. User is re-prompted until either WA or CA is selected and again until a valid county is entered. Users can type 'q' to escape the loops and end the program. County and state selections are not case sensitive.