Question: Hi. I'm working on this c++ code where I have to calculate average,variance, and deviation. It seems to work with whole numbers, but whenever I

 Hi. I'm working on this c++ code where I have to

Hi. I'm working on this c++ code where I have to calculate average,variance, and deviation. It seems to work with whole numbers, but whenever I try a decimal it does weird stuff. I'm curious how I can get decimals to work. Thanks.

9 #include 10 #include 11 #include 12 13 using namespace std; 14 int main() int num; cout > num; int array[num], sum = 0; cout >array[i]; for (int i = 0; i

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!