Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions