In the tollowing program, rewrite the line that contains syntax error (errors) in the correct way in the provided space, tor example soe line 1. Notioe: in this code the correct value of ymust be: y = Vx1 + 2 e* 1. winclude [iostrean] // 1. wincludeciostream> 2. winclude cenath> 3. using namespace; 4. includecstring> 5. int main(); 6. ( 7. string Name1- "Mohamed"; 8. string nume2 - "A"; 9. string name 3; 10. int ID2-111; 11. int ID2 (222) ; 12. int ID3 I 13. double xii 14. double yi 15. cout « " Enter nane3 :; 16. cin >> Name3 ; 17. cout « " Enter ID3 :"> ID3>>endl; 19. cout « " The ID of " << Namel << " and " « Name2 « " added in id3 -"; 20. ID3 ID1- I02) 21. cout « ID1; 22. cout « " Please enter the value of x :"> x; 24. y- sqrt( pow(x, 4) +2)) - exp(x); 25. cout <« 26. return o1 The value of y is i"« Y

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
7:YE I
lllll o VOLTE
محمد خميس المعمري
قبل 14 دقيقة
In the tollowing program, rewrite the line that contains syntax error (orrors) in the corroct way in the providod space, tor example soe line 1.
Notice: in this code the correct value of y must be:
y = Vx4 + 2 – e*
1. ainclude [iostream] // 1. aincludeciostream>
2. #include <cnath>
3. using namespace;
4. includecstring>
5. int main();
6. {
7. string Name1 - "Mohamed";
8. string name2 - "A";
9. string name 3;
18. int ID2-111;
11. int ID2 (222);
12. int ID3;
13. double xl;
14. double y ;
15. cout s" Enter name3 ":
16. cin >> Name3 :
17. cout « " Enter ID3 :"<cendl ;
18. cin >> ID3>>endl;
19. cout « " The ID of " <« Namel <« " and " <« Name2 «" added in id3 -" :
20. ID3 - ID1 - ID2;
21. cout « ID1;
22. cout <<
23. cin >> x;
24. y- sqrt( pON(x, 4) +2)) - exp(x);
25. cout <« " The value of y is :" <« Y<<endl;
26. return 0;
27. }
" Please enter the value of x :"<<endi;
Transcribed Image Text:7:YE I lllll o VOLTE محمد خميس المعمري قبل 14 دقيقة In the tollowing program, rewrite the line that contains syntax error (orrors) in the corroct way in the providod space, tor example soe line 1. Notice: in this code the correct value of y must be: y = Vx4 + 2 – e* 1. ainclude [iostream] // 1. aincludeciostream> 2. #include <cnath> 3. using namespace; 4. includecstring> 5. int main(); 6. { 7. string Name1 - "Mohamed"; 8. string name2 - "A"; 9. string name 3; 18. int ID2-111; 11. int ID2 (222); 12. int ID3; 13. double xl; 14. double y ; 15. cout s" Enter name3 ": 16. cin >> Name3 : 17. cout « " Enter ID3 :"<cendl ; 18. cin >> ID3>>endl; 19. cout « " The ID of " <« Namel <« " and " <« Name2 «" added in id3 -" : 20. ID3 - ID1 - ID2; 21. cout « ID1; 22. cout << 23. cin >> x; 24. y- sqrt( pON(x, 4) +2)) - exp(x); 25. cout <« " The value of y is :" <« Y<<endl; 26. return 0; 27. } " Please enter the value of x :"<<endi;
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Name constants and Literal values
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