programing exercise problem.c X 13 programing exercise 1 2 3 4 5 5 3 1 2 3 4 #include int main() { floatx, y, p, s, total; printf("Input x : "); scanf("%f",&x); printf("Input y: "); scanf("%f", &y); (Global Scope) p=x*y; S = x + y; total = s * s + p* (sx) * (p + y); printf("Total is : %.2f", total); return; wwwww

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

Please fix all the errors in this program

Server Explorer Toolbox
ITD-1033-60614 (8) - lab-def11688-10fc-4eb1-969e-a7ba0ed87dfc.southcentralus.cloudapp.azure.com:7015 - Remote Desktop Connection
Search (Ctrl+Q)
File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help
► Local Windows Debugger
week 13 programing exercise problem.c + X
Week 13 programing exercise
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Error List
41°F
Mostly cloudy
2
#include <stdio.h>
int main()
{
}
Debug
floatx, y, R, S, total;
printf("Input x : ");
scanf("%f", &x);
printf("Input y : ");
scanf("%f", &y);
return;
x86
(Global Scope)
P = x*y;
S = x + y;
total = s * s + p * (s - x) * (p + y);
printf("Total is : %.2f", total);
Q Search
■
▼
main()
SCE 32
0
Week 1...xercise
* Solution Explorer
#
A
X
Sign in &
+=.
Live Share
à (A)
Solution Explorer Git Changes
Properties
I
n
Search Solution Explorer (Ctrl+;)
Solution 'Week 13 programing exercise' (1 of 1 project)
Week 13 programing exercise
■-■ References
ADMIN
External Dependencies
Header Files
Resource Files
Source Files
week 13 programing exercise problem.c
++ Week 13 programing exercise.cpp
X
7:25 PM
12/4/2022
Q
(ZzZ
Transcribed Image Text:Server Explorer Toolbox ITD-1033-60614 (8) - lab-def11688-10fc-4eb1-969e-a7ba0ed87dfc.southcentralus.cloudapp.azure.com:7015 - Remote Desktop Connection Search (Ctrl+Q) File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help ► Local Windows Debugger week 13 programing exercise problem.c + X Week 13 programing exercise 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Error List 41°F Mostly cloudy 2 #include <stdio.h> int main() { } Debug floatx, y, R, S, total; printf("Input x : "); scanf("%f", &x); printf("Input y : "); scanf("%f", &y); return; x86 (Global Scope) P = x*y; S = x + y; total = s * s + p * (s - x) * (p + y); printf("Total is : %.2f", total); Q Search ■ ▼ main() SCE 32 0 Week 1...xercise * Solution Explorer # A X Sign in & +=. Live Share à (A) Solution Explorer Git Changes Properties I n Search Solution Explorer (Ctrl+;) Solution 'Week 13 programing exercise' (1 of 1 project) Week 13 programing exercise ■-■ References ADMIN External Dependencies Header Files Resource Files Source Files week 13 programing exercise problem.c ++ Week 13 programing exercise.cpp X 7:25 PM 12/4/2022 Q (ZzZ
ITD-1033-60614 (8) - lab-def11688-10fc-4eb1-969e-a7ba0ed87dfc.southcentralus.cloudapp.azure.com:7015 - Remote Desktop Connection
Error List
Entire Solution
Code Description
C2065 'floatx': undeclared identifier
C2065 'y': undeclared identifier
C2065 'p': undeclared identifier
C2065 's': undeclared identifier
C2065 'total': undeclared identifier
C2065 'x': undeclared identifier
C2065 'y': undeclared identifier
'p': undeclared identifier
X C2065
XC2065 'x': undeclared identifier
X C2065 'y': undeclared identifier
C2065 's': undeclared identifier
C2065 'x': undeclared identifier
C2065 'y': undeclared identifier
C2065 'total': undeclared identifier
C2065 's': undeclared identifier
C2065
's': undeclared identifier
'p': undeclared identifier
X C2065
X C2065
X C2065
's': undeclared identifier
'x': undeclared identifier
X C2065
'p': undeclared identifier
X C2065
'y': undeclared identifier
C2065 'total': undeclared identifier
C2065
'return0': undeclared identifier
'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.
X C4996
XC4996
X 25 Errors ! 0 of 3 Warnings i 0 Messages * Build Only
'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use
CDT SECUIDE NO WARNINCS Can aulina halu for details.
41°F
Mostly cloudy
Q Search
■
I
Week 13 programing exer... week 13 programing exer... 9
Search Error List
Project
File
Line Suppression State
Week 13 programing exer... week 13 programing exer... 5
Week 13 programing exer... week 13 programing exer... 5
Week 13 programing exer... week 13 programing exer... 5
Week 13 programing exer... week 13 programing exer... 5
Week 13 programing exer... week 13 programing exer... 5
Week 13 programing exer... week 13 programing exer... 7
Week 13 programing exer... week 13 programing exer... 9
Week 13 programing exer... week 13 programing exer... 10
Week 13 programing exer... week 13 programing exer... 10
Week 13 programing exer... week 13 programing exer... 10
Week 13 programing exer... week 13 programing exer... 11
Week 13 programing exer... week 13 programing exer... 11
Week 13 programing exer... week 13 programing exer... 11
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 12
Week 13 programing exer... week 13 programing exer... 14
Week 13 programing exer... week 13 programing exer... 16
Week 13 programing exer... week 13 programing exer... 7
0
4) J
7:28 PM
12/4/2022
X
X
Transcribed Image Text:ITD-1033-60614 (8) - lab-def11688-10fc-4eb1-969e-a7ba0ed87dfc.southcentralus.cloudapp.azure.com:7015 - Remote Desktop Connection Error List Entire Solution Code Description C2065 'floatx': undeclared identifier C2065 'y': undeclared identifier C2065 'p': undeclared identifier C2065 's': undeclared identifier C2065 'total': undeclared identifier C2065 'x': undeclared identifier C2065 'y': undeclared identifier 'p': undeclared identifier X C2065 XC2065 'x': undeclared identifier X C2065 'y': undeclared identifier C2065 's': undeclared identifier C2065 'x': undeclared identifier C2065 'y': undeclared identifier C2065 'total': undeclared identifier C2065 's': undeclared identifier C2065 's': undeclared identifier 'p': undeclared identifier X C2065 X C2065 X C2065 's': undeclared identifier 'x': undeclared identifier X C2065 'p': undeclared identifier X C2065 'y': undeclared identifier C2065 'total': undeclared identifier C2065 'return0': undeclared identifier 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. X C4996 XC4996 X 25 Errors ! 0 of 3 Warnings i 0 Messages * Build Only 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use CDT SECUIDE NO WARNINCS Can aulina halu for details. 41°F Mostly cloudy Q Search ■ I Week 13 programing exer... week 13 programing exer... 9 Search Error List Project File Line Suppression State Week 13 programing exer... week 13 programing exer... 5 Week 13 programing exer... week 13 programing exer... 5 Week 13 programing exer... week 13 programing exer... 5 Week 13 programing exer... week 13 programing exer... 5 Week 13 programing exer... week 13 programing exer... 5 Week 13 programing exer... week 13 programing exer... 7 Week 13 programing exer... week 13 programing exer... 9 Week 13 programing exer... week 13 programing exer... 10 Week 13 programing exer... week 13 programing exer... 10 Week 13 programing exer... week 13 programing exer... 10 Week 13 programing exer... week 13 programing exer... 11 Week 13 programing exer... week 13 programing exer... 11 Week 13 programing exer... week 13 programing exer... 11 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 12 Week 13 programing exer... week 13 programing exer... 14 Week 13 programing exer... week 13 programing exer... 16 Week 13 programing exer... week 13 programing exer... 7 0 4) J 7:28 PM 12/4/2022 X X
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Computational Systems
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
  • SEE MORE 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