In the following program, rewrite the line that contains syntax error (errors) in the correct way in the provided space, for example see line 1. Notice: in this code the correct value of y must be: y = Vx3/4 – 2 - e-x

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
In the following program, rewrite the line that contains syntax error (errors) in the correct way in the provided space, for example see line 1.
Notice: in this code the correct value of y must be:
y = Vx3/4 – 2
- e-x
1. #include [iostream] // 1. #include<iostream>
2. #include <cmath>
3. using namespace std;
4. #include<Sring>
5. int main();
6. {
7. string Name1 =
8. string name2 = "Abdullah";
9. string name3;
10. int ID2 = 111
11. int ID2 = 222 ;
12. int ID3 ;
13. double x ;
14. double y;
15. cout >> " Enter name3
16. cin <« name3 ;
17. cout « " Enter ID3 :"<<end1 ;
18. cin <« ID3<<endl;
19. cout « " The ID of " « name1 <« " and " « name2 <« " added in id3 =" ;
20. ID3 - ID1 + ID2;
21. cout « ID3 <« end1;
22. cout <« " Please enter the value of x :" ;
23. cin >> x;
24. y= sqrt( pow(x,3/4) -2) - exp(-x);
25. cout <« " The value of y is
26. return e;
27. }
"Mohamed";
« Y<<endl;
Transcribed Image Text:In the following program, rewrite the line that contains syntax error (errors) in the correct way in the provided space, for example see line 1. Notice: in this code the correct value of y must be: y = Vx3/4 – 2 - e-x 1. #include [iostream] // 1. #include<iostream> 2. #include <cmath> 3. using namespace std; 4. #include<Sring> 5. int main(); 6. { 7. string Name1 = 8. string name2 = "Abdullah"; 9. string name3; 10. int ID2 = 111 11. int ID2 = 222 ; 12. int ID3 ; 13. double x ; 14. double y; 15. cout >> " Enter name3 16. cin <« name3 ; 17. cout « " Enter ID3 :"<<end1 ; 18. cin <« ID3<<endl; 19. cout « " The ID of " « name1 <« " and " « name2 <« " added in id3 =" ; 20. ID3 - ID1 + ID2; 21. cout « ID3 <« end1; 22. cout <« " Please enter the value of x :" ; 23. cin >> x; 24. y= sqrt( pow(x,3/4) -2) - exp(-x); 25. cout <« " The value of y is 26. return e; 27. } "Mohamed"; « Y<<endl;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY