Question: 1. Write a program in c++ / cpp that initializes an array of float to contain 12 monthly temperatures. It should read in the 12

1. Write a program in c++ / cpp that initializes an array of float to contain 12 monthly temperatures. It should read in the 12 months from the keyboard.

2. Program should calculate/determine the minimum, maximum, and average in the array of temperatures. It is important that we do not compute/check for these values when having user input the temperatures.

3. compute the standard deviation of the array of temperatures based on the following formula:

1. Write a program in c++ / cpp that initializes an array

This is the code I have so far so I need more help on the standard deviation part:

#include

using namespace std;

int main()

{ int temp = 12; float number[temp]; float maximum, minimum,avg; int sum = 0;

cout

for( int i = 0; i > number[i]; sum += number[i]; avg = sum/12; } maximum = number[0]; minimum = number[0]; for (int i = 1; i number[i]) { minimum = number[i]; } } cout

return 0; }

n The number of data points The mean of the ci Each of the values of the data

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!