2. Consider the following program: Winclude using namespace std; int main() cout << "Any intelligent fool,"; cout <« "In can make things bigger, more complex, In and more violent."; cout << "It takes a touch of genius -- In and a lot of courage -- "; cout << "to move in the opposite direction."; cout <«"--Albert Einstein"; A.Make changes to the program such that all the text is printed without any new line breaks. B.Show quotation marks on Albert Einstein on the output screen, like "Albert Einstein" by using the command I Albert Einstein ".

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 6E: (Conversion) a. Write a C++ program to convert meters to feet. The program should request the...
icon
Related questions
Question
Give C++ code and compile it on compiler. Follow the instructions.
2. Consider the following program:
#include <iostream>
using namespace std;
int main()
cout << "Any intelligent fool,";
cout << "In can make things bigger, more complex, In and more violent.";
cout << "It takes a touch of genius -- In and a lot of courage -- ";
cout << "to move in the opposite direction.";
cout <<"--Albert Einstein";
}
A.Make changes to the program such that all the text is printed without any new line breaks.
B.Show quotation marks on Albert Einstein on the output screen, like "Albert Einstein" by using
the command " Albert Einstein l".
Transcribed Image Text:2. Consider the following program: #include <iostream> using namespace std; int main() cout << "Any intelligent fool,"; cout << "In can make things bigger, more complex, In and more violent."; cout << "It takes a touch of genius -- In and a lot of courage -- "; cout << "to move in the opposite direction."; cout <<"--Albert Einstein"; } A.Make changes to the program such that all the text is printed without any new line breaks. B.Show quotation marks on Albert Einstein on the output screen, like "Albert Einstein" by using the command " Albert Einstein l".
Expert Solution
steps

Step by step

Solved in 2 steps with 3 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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning