首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导CSE 1223程序、Java程序调试、Java编程辅导 解析Java程序|讲解数据库SQL
项目预算:
开发周期:
发布时间:
要求地区:
CSE 1223: Introduction to Computer Programming in Java
Students:
This content is controlled by your instructor, and is not zyBooks content. Direct questions or concerns
about this content to your instructor. If you have any technical issues with the zyLab submission
system, use the Trouble with lab button at the bottom of the lab.
11.39 Data Analysis
For this project you will be analyzing some population data that comes from the US Census
Bureau. In the US the ocial
Census is taken every 10 years, but in the years in between the
US Census Bureau creates population estimates based on data they collect. This data is
publicly available at the US Census Bureau's website.
In this project we will be looking at les
that have population estimates by county for various
states . Your job is to write a program that will load this data and prepare a report
summarizing some statistics about population in a given state.
The le
format is the same as in the lab from this week - here is an excerpt of the rst
10
lines:
The rst
line is a header which indicates what is in each column. The remaining lines in the
le
have a line of data each showing a comma-separated list of population values with the
county name in the rst
position and the population estimates for each year from 2010
through 2019 afterwards.
Your job is to use this datale
format to produce a formatted output le
generating the
statistics listed below. Your program should prompt the user for a datale
to read
information from and then a number of counties listed in the data le.
YOU MUST DESIGN AT
County,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019
Adams,28537,28459,28293,28089,28066,27926,27807,27753,27694,27698
Allen,106358,105988,105244,105055,104848,104095,103613,103093,10272
Ashland,53321,53252,53239,53153,53161,53310,53520,53662,53706,53484
Ashtabula,101403,101085,100252,99746,99027,98404,98171,97748,97587,
Athens,65173,65079,64610,64594,64783,65886,66352,66503,65519,65327
Auglaize,45898,45741,45770,45801,45737,45734,45766,45753,45736,4565
Belmont,70333,70122,69709,69563,69367,68973,68606,68002,67533,67006
Brown,44863,44629,44281,44111,43933,43697,43638,43523,43570,43432
Butler,369102,370123,370550,371395,373750,375998,378354,380607,3820
2021/4/6 Section 11.39 - CSE 1223: Introduction to Computer Programming in Java
https://learn.zybooks.com/zybook/OSUCSE1223MorrisSpring2021/chapter/11/section/39?show_questions=false 2/6
LEAST 3 METHODS FOR THIS PROGRAM!! If you write this program in a single main method
you WILL lose points even if you pass all of the test cases.
Read the necessary elements from the le
into a set of parallel arrays (as described in the
previous lab) and then compute the statistics listed below:
Enter a data file to read: OhioPopulationData.csv
Enter the number of counties: 88
County Pop 2010 Pop 2019 Growth Pct Grow
---------------- -------- -------- -------- ---------
Adams 28537 27698 -839 -2.94%
Allen 106358 102351 -4007 -3.77%
Ashland 53321 53484 163 0.31%
Ashtabula 101403 97241 -4162 -4.10%
Athens 65173 65327 154 0.24%
Auglaize 45898 45656 -242 -0.53%
Belmont 70333 67006 -3327 -4.73%
Brown 44863 43432 -1431 -3.19%
Butler 369102 383134 14032 3.80%
Carroll 28846 26914 -1932 -6.70%
Champaign 40078 38885 -1193 -2.98%
Clark 138274 134083 -4191 -3.03%
Clermont 197604 206428 8824 4.47%
Clinton 41922 41968 46 0.11%
Columbiana 107890 101883 -6007 -5.57%
Coshocton 36938 36600 -338 -0.92%
Crawford 43754 41494 -2260 -5.17%
Cuyahoga 1278088 1235072 -43016 -3.37%
Darke 52963 51113 -1850 -3.49%
Defiance 39082 38087 -995 -2.55%
Delaware 175099 209177 34078 19.46%
Erie 76978 74266 -2712 -3.52%
Fairfield 146417 157574 11157 7.62%
Fayette 29014 28525 -489 -1.69%
Franklin 1166202 1316756 150554 12.91%
Fulton 42629 42126 -503 -1.18%
Gallia 31072 29898 -1174 -3.78%
Geauga 93389 93649 260 0.28%
Greene 161588 168937 7349 4.55%
Guernsey 40155 38875 -1280 -3.19%
Hamilton 802278 817473 15195 1.89%
Hancock 74689 75783 1094 1.46%
Hardin 32127 31365 -762 -2.37%
Harrison 15825 15040 -785 -4.96%
Henry 28171 27006 -1165 -4.14%
Highland 43621 43161 -460 -1.05%
Hocking 29478 28264 -1214 -4.12%
Holmes 42473 43960 1487 3.50%
2021/4/6 Section 11.39 - CSE 1223: Introduction to Computer Programming in Java
https://learn.zybooks.com/zybook/OSUCSE1223MorrisSpring2021/chapter/11/section/39?show_questions=false 3/6
Huron 59560 58266 -1294 -2.17%
Jackson 33248 32413 -835 -2.51%
Jefferson 69670 65325 -4345 -6.24%
Knox 61090 62322 1232 2.02%
Lake 230014 230149 135 0.06%
Lawrence 62424 59463 -2961 -4.74%
Licking 166705 176862 10157 6.09%
Logan 45743 45672 -71 -0.16%
Lorain 301478 309833 8355 2.77%
Lucas 441434 428348 -13086 -2.96%
Madison 43434 44731 1297 2.99%
Mahoning 238381 228683 -9698 -4.07%
Marion 66458 65093 -1365 -2.05%
Medina 172509 179746 7237 4.20%
Meigs 23731 22907 -824 -3.47%
Mercer 40788 41172 384 0.94%
Miami 102487 106987 4500 4.39%
Monroe 14609 13654 -955 -6.54%
Montgomery 535597 531687 -3910 -0.73%
Morgan 15034 14508 -526 -3.50%
Morrow 34790 35328 538 1.55%
Muskingum 86214 86215 1 0.00%
Noble 14660 14424 -236 -1.61%
Ottawa 41359 40525 -834 -2.02%
Paulding 19557 18672 -885 -4.53%
Perry 36037 36134 97 0.27%
Pickaway 55740 58457 2717 4.87%
Pike 28612 27772 -840 -2.94%
Portage 161386 162466 1080 0.67%
Preble 42170 40882 -1288 -3.05%
Putnam 34476 33861 -615 -1.78%
Richland 124162 121154 -3008 -2.42%
Ross 78098 76666 -1432 -1.83%
Sandusky 60885 58518 -2367 -3.89%
Scioto 79664 75314 -4350 -5.46%
Seneca 56618 55178 -1440 -2.54%
Shelby 49349 48590 -759 -1.54%
Stark 375372 370606 -4766 -1.27%
Summit 541645 541013 -632 -0.12%
Trumbull 209840 197974 -11866 -5.65%
Tuscarawas 92543 91987 -556 -0.60%
Union 52464 58988 6524 12.44%
Van Wert 28678 28275 -403 -1.41%
Vinton 13405 13085 -320 -2.39%
Warren 213429 234602 21173 9.92%
Washington 61713 59911 -1802 -2.92%
Wayne 114394 115710 1316 1.15%
2021/4/6 Section 11.39 - CSE 1223: Introduction to Computer Programming in Java
https://learn.zybooks.com/zybook/OSUCSE1223MorrisSpring2021/chapter/11/section/39?show_questions=false 4/6
Williams 37512 36692 -820 -2.19%
Wood 125950 130817 4867 3.86%
Wyandot 22588 21772 -816 -3.61%
-----------------------------------------------------
Total 11539336 11689100 149764 1.30%
Most growth: Franklin (150554)
Biggest loss: Cuyahoga (-43016)
Largest Pct growth: Delaware (19.46%)
Largest Pct loss: Carroll (-6.70%)
Average 2019 Population per County: 132830
Num. Counties with 2019 Pop. Larger Than Average: 21
The Growth column shows how much the population has increased since 2010. The Pct
Growth shows how much the population has changed as a percentage of its 2010 value.
Your report should print out which county has the largest absolute growth (raw population
increase), the largest loss (raw population decrease), the largest percentage of population
growth (growth as a percentage of its 2010 population value) and the largest percentage of
population loss (decrease as a percentage of its 2010 population value).
The above transcript shows the OhioPopulationData.csv le
outputs. There are three
other similar les
here to look through for Indiana, California and Wyoming that use the same
naming convention (IndianaPopulationData.csv,
CaliforniaPopulationData.csv, and WyomingPopulationData.csv). See which of
these states has the largest growth, which has the smallest growth, and which has the
largest and smallest percentage growth relative to their 2010 baseline.
The number of counties in each state are:
California: 58
Indiana: 92
Ohio: 88
Wyoming: 23
NOTE: Remember that you can use the System.out.format() method to get nicely
formatted output (as we used in the Trajectory Modelling assignment). If you want to include
a percentage sign in a format String use %% to indicate that a percent symbol should be
printed.
NOTE 2: The String type has a method named split() that takes a String you want to
split on and returns an array of String values based around that split. For example, if you
have the following segment of code it will split the String named line into the String
array vals as shown below:
String line =
"Adams,28537,28459,28293,28089,28066,27926,27807,27753,27694,27698"
String[] vals = line.split(",");
2021/4/6 Section 11.39 - CSE 1223: Introduction to Computer Programming in Java
https://learn.zybooks.com/zybook/OSUCSE1223MorrisSpring2021/chapter/11/section/39?show_questions=false 5/6
NOTE 3: Remember that you can use Integer.parseInt() to convert a String value to an
integer value.
285300.1745892.qx3zqy7
// vals =
["Adams","28537","28459","28293","28089","28066",27926","27807","27
LAB
ACTIVITY
11.39.1: Data Analysis 0 / 4
Downloadable les
DataAnalysis.java , OhioPopulationData.csv ,
IndianaPopulationData.csv ,
WyomingPopulationData.csv , and
CaliforniaPopulationData.csv
Run your program as often as you'd like, before
submitting for grading. Below, type any needed
input values in the rst
box, then click Run
program and observe the program's output in the
second box.
Predene
program input (optional)
If you'd like to predene
your inputs, provide them here.
Download
DataAnalysis.java Load default template...
Develop mode Submit mode
Run my program Stop Clear terminal
import java.util.Scanner;
public class DataAnalysis {
public static void main(String[] args) {
/* Type your code here. */
}
}
2021/4/6 Section 11.39 - CSE 1223: Introduction to Computer Programming in Java
https://learn.zybooks.com/zybook/OSUCSE1223MorrisSpring2021/chapter/11/section/39?show_questions=false 6/6
Signature of your work
History of your effort will appear here once you begin
working on this zyLab.
>
What is this?
Trouble with lab?
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!