CENSUS 2010 Cenzus Analyss 201D Your job is to wrie a program that would help us
ID: 3597295 • Letter: C
Question
CENSUS 2010 Cenzus Analyss 201D Your job is to wrie a program that would help us analyze theE data from 2010 census. Make sure to download counties tt You wil necd to read this fic and daplay a scrics of reports on the deta. late Count rey icA Ceus Analvsss 2818 Features 1to 4-each feature must be in its own funcbon th prototypes. Make sure to send arguments by reference where necessary Populat I Feature 0 (40): Resd countieatat into 3 parallel amays. You will eee tha the data file containe countiee, and for each county, you have county name, state of the counry and Census Analys;, 2818 Make aure that your program diaplaya an eror message ond akita the program if it cannot find the file countieatt. at do you want te doi 3 ssum e hat you may have up to 5000 counties in the data lay Countan LA) Feature 1 (60): Population Report feature deplaye the moet Crcketad ngnon Cuntv and least populous countiee in US. It aleo dieplaye the average county population. Census Analysis 2010 Feature 2 (601: Allow user to enter a population range (min and max) and then diaplay al countica that have population wthin that range lous State You want ta do 4 Most Populous state a CA with Population 3.7254e 197 Census Analysis 2018 Feature 3 (50): Two counties are simi ar if they have the ame population and they are in the same state. Dieplay al counties tnat are simlar. Hit you need a nested loop here -loop inside loop Fareach county, you need to check lits etonYokey simwarity with every other county sant to do: Feature 4 (30): Find and display the state with the most population. Hint because stares are on mutple rows, we need to keep track of the state of each county. Fortunately, the counties are sorted by state So assume you have a vaviable named curr State c w keep the state you are curerny folowing curSatePop wW keep he population of trhs stafe Alo lers keep maxSme and maxStatePop variables hese wW hold the state with the maximun popuation Now go through each county, check WIhe stale or he county is same as CurrStafe Nso, we need to add the population of this county to curStatePop. Otherwse, that means we found a county with a new state. That also means we are done with readivig counbies from currState. At this point cuT State has the state name and the cuTStatePop has the toral popuwation af curStare. Check cNTStatePop la larger man maxStatePop, Wo, we need to set mastate and mastatePop to currState and currStatePop, respectively. And then we need to set cuTState to me atate ar iT index of the for loop and currStalePop wio be set to the population ofthe county at ith index Feature 0 (10): Exit Avoid Penaltties! 60 points penalty ityour code is not property indented or contains no comments 100 points penalty itf you do not use functiona, oryour code docs not complc or you use global wariabics Refer to screenshot displayed above for more information.Explanation / Answer
Please provide the query details in a legible manner. We can't
able to view the attached image you sent.