obal Scope) Computes the mean and standard deviationof an array of data and displays the difference between each value and the mean"/ B#include #include cmath.h> #define MAX_ITEM 8 /*maximum number of items in list of data*/ int emain(void) double x[MAX_ITEM], /*data list"/ mean, st_dev, /*mean (average) of the data"/ /*standard deviation of the data"/ sum, /*sum of the data"/ sum_sqr, /*sum of the squares of the data */ int 1; /"Gets the data*/ printf("Enter &d numbers seperated by blanks or s\n", MAX_ITEM); for (1 - 0; i < MAx_ITEM; 1++) scanf("%1f", &x[1]); /"Computes the sum and and the sum of the squares of all data*/ sum - 0;
obal Scope) Computes the mean and standard deviationof an array of data and displays the difference between each value and the mean"/ B#include #include cmath.h> #define MAX_ITEM 8 /*maximum number of items in list of data*/ int emain(void) double x[MAX_ITEM], /*data list"/ mean, st_dev, /*mean (average) of the data"/ /*standard deviation of the data"/ sum, /*sum of the data"/ sum_sqr, /*sum of the squares of the data */ int 1; /"Gets the data*/ printf("Enter &d numbers seperated by blanks or s\n", MAX_ITEM); for (1 - 0; i < MAx_ITEM; 1++) scanf("%1f", &x[1]); /"Computes the sum and and the sum of the squares of all data*/ sum - 0;
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
For this C
![File
Edit
View
Project
Build
Debug
Test
Analyze
Tools
Extensions
Window
Help
Search (Ctrl+Q)
Figure_7.2
AR
Debug
x86
Local Windows Debugger
A Live Share
ProgramToPrintATableOfDifferences.c + X
Solution Explorer
A Figure_7.2
(Global Scope)
main(void)
1
Search Solution Explorer (Ctrl+; P
2
Computes the mean and standard deviationof an array of data and displays the difference between each value and the mean*/
3
Solution 'Figure_7.2' (1 of 1 proje
4
E#include <stdio.h>
A Figure_7.2
5
#include <math.h>
I References
O External Dependencies
7
#define MAX_ITEM 8 /*maximum number of items in list of data*/
Header Files
8
Resource Files
9
int
Source Files
Emain(void)
{
double x[MAX_ITEM],
10
D c ProgramToPrintATable
11
12
/*data list*/
13
mean,
/*mean (average) of the data*/
14
st_dev,
/*standard deviation of the data*/
15
sum,
/*sum of the data*/
16
sum_sqr,
/*sum of the squares of the data */
17
18
int i;
19
20
/*Gets the data*/
printf("Enter &d numbers seperated by blanks or <return>s\n",
MAX_ITEM);
for (i
21
Solution Explorer Team Explorer
22
0; i < MAX_ITEM; i++)
scanf("%lf", &x[i]);
23
%3D
Properties
24
25
26
/*Computes the sum and and the sum of the squares of all data*/
27
sum
0;
100 %
4
Ln: 18
Ch: 8
Col: 14
TABS
CRLF
Error List
Entire Solution
X 22 Errors
A 1 Warning
O 0 of 1 Message
Build + IntelliSense
Search Error List
Code
Description
Project
File
Line Suppression State
X C2065
'i': undeclared identifier
Figure_7.2
ProgramToPrintATableOf... 22
X C2065 '': undeclared identifier
Figure_7.2
ProgramToPrintATableOf... 22
X C2065 'i': undeclared identifier
Figure_7.2
ProgramToPrintATableOf... 22
O C2065 'i': undeclared identifier
Figure_7.2
ProgramToPrintATableOfD... 23
'i': undeclared identifier
X C2065
Error List Output
Fiaure 7.2
ProaramToPrintATableOfD.. 28
O Item(s) Saved
1 Add to Source Control a
3:20 AM
Type here to search
W
3/26/2021
(8)
II
Server Explorer Toolbox](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5362cbea-9427-4b2b-99cb-57a208edd853%2Fdeb49b14-00b1-438c-8487-d548acaad3a9%2Fkwzkmup_processed.png&w=3840&q=75)
Transcribed Image Text:File
Edit
View
Project
Build
Debug
Test
Analyze
Tools
Extensions
Window
Help
Search (Ctrl+Q)
Figure_7.2
AR
Debug
x86
Local Windows Debugger
A Live Share
ProgramToPrintATableOfDifferences.c + X
Solution Explorer
A Figure_7.2
(Global Scope)
main(void)
1
Search Solution Explorer (Ctrl+; P
2
Computes the mean and standard deviationof an array of data and displays the difference between each value and the mean*/
3
Solution 'Figure_7.2' (1 of 1 proje
4
E#include <stdio.h>
A Figure_7.2
5
#include <math.h>
I References
O External Dependencies
7
#define MAX_ITEM 8 /*maximum number of items in list of data*/
Header Files
8
Resource Files
9
int
Source Files
Emain(void)
{
double x[MAX_ITEM],
10
D c ProgramToPrintATable
11
12
/*data list*/
13
mean,
/*mean (average) of the data*/
14
st_dev,
/*standard deviation of the data*/
15
sum,
/*sum of the data*/
16
sum_sqr,
/*sum of the squares of the data */
17
18
int i;
19
20
/*Gets the data*/
printf("Enter &d numbers seperated by blanks or <return>s\n",
MAX_ITEM);
for (i
21
Solution Explorer Team Explorer
22
0; i < MAX_ITEM; i++)
scanf("%lf", &x[i]);
23
%3D
Properties
24
25
26
/*Computes the sum and and the sum of the squares of all data*/
27
sum
0;
100 %
4
Ln: 18
Ch: 8
Col: 14
TABS
CRLF
Error List
Entire Solution
X 22 Errors
A 1 Warning
O 0 of 1 Message
Build + IntelliSense
Search Error List
Code
Description
Project
File
Line Suppression State
X C2065
'i': undeclared identifier
Figure_7.2
ProgramToPrintATableOf... 22
X C2065 '': undeclared identifier
Figure_7.2
ProgramToPrintATableOf... 22
X C2065 'i': undeclared identifier
Figure_7.2
ProgramToPrintATableOf... 22
O C2065 'i': undeclared identifier
Figure_7.2
ProgramToPrintATableOfD... 23
'i': undeclared identifier
X C2065
Error List Output
Fiaure 7.2
ProaramToPrintATableOfD.. 28
O Item(s) Saved
1 Add to Source Control a
3:20 AM
Type here to search
W
3/26/2021
(8)
II
Server Explorer Toolbox
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education