Question: For a Java Project I have to work with arrays but I am not very good at them. The following is the question: Given the

For a Java Project I have to work with arrays but I am not very good at them. The following is the question:

Given the following daily temperatures recorded for the month of February, 2017 for the City of Chicago, in the table shown below ( First Row: Day of the Month; Second Row: Actual Temperature in degrees Fahrenheit):

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

39

25

29

34

41

55

53

34

25

44

52

49

45

51

36

32

67

70

67

69

65

67

59

44

34

49

54

59

1) Create an array named myFebChi;

For your convenience the elements of the array are:

{39,25,29,34,41,55,53,34,25,44,52,49,45,51,36,32,67,70,67,69,65,67,59,44,34,49,54,59}

2) Display the elements of the array;

3) Assign a variable called countT that will give the length of the array as an integer;

4) Construct a loop that will sum all the temperatures;

5) Determine the average (or mean) temperature for the month of February;

6) Determine the standard deviation of the average temperature. The algorithm to determine the standard deviation is

For each number (element): subtract the average and then square the result;

Calculate the mean of those squared differences. This will give the variance.

Calculate the square root of the Variance. The result is the standard deviation.

See formulas below!

7) Display the output: number of days in February, mean Temperature, standard deviation, and the variance

8) Housekeeping to appear at the top of your program: Your name, course number, date, and purpose of program. Also, please have your name, course number, and date as part of the output.

The formlas are:

For a Java Project I have to work with arrays but I

Equation Microsoft word Insert Page Layout References Mailings Review View Find AaBbCCD AaBbccDo AaBbci AaBbco AaB AaBbCc Replace B I x, ixo Aa A- EEEE 1 Normal 1 No spaci... Heading 1 Heading 2 Title Subtitle subtle Em Emphasis 7 Change Select Copy Format Painter Clipboard Font Paragraph Editing Theformulato calculate Population SD is SN The formula to calculate Variance is: (x i 1 The formula to calculate Mean is i 1 Page: Words: 0 English (United States) 7:48 PM 1x ENG Ask me anything 3/23/2017

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!