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
icon
Related questions
Question

For this C Program, I am getting the error "Expected an identifier" on line 18.

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
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
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
ADT and Class
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.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education