Based on the Program Q3 source code, modify the program by using the while loop. Program Q3 1. Winclude 2. using namespace std; 3. int main() 4. 5. char select; 6. 7. dol a. cout<<"\nHi, this is test 1."; 19. cout<<"\n\nDo you want to display above line 10. again? (Y or N): "; 11. cin>>select; 12. Jwhile(select 'Y' || select "y'); %!! 13. 14. cout<<"\n\nThank You! \n"; 15. 16. return e; 17.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 14E: In Chapter 4, you created a program that generates a random number, allows a user to guess it, and...
icon
Related questions
Question

C++

Based on the Program Q3 source code, modify the program by using the while loop.
Program Q3
1.
Winclude <iostream>
2.
using namespace std;
3.
int main()
4.
5.
char select;
6.
7.
dol
a.
cout<<"\nHi, this is test 1.";
19.
cout<<"\n\nDo you want to display above line
10.
again? (Y or N): ";
11.
cin>>select;
12.
Jwhile(select 'Y' || select
"y');
%!!
13.
14.
cout<<"\n\nThank You! \n";
15.
16.
return e;
17.
Transcribed Image Text:Based on the Program Q3 source code, modify the program by using the while loop. Program Q3 1. Winclude <iostream> 2. using namespace std; 3. int main() 4. 5. char select; 6. 7. dol a. cout<<"\nHi, this is test 1."; 19. cout<<"\n\nDo you want to display above line 10. again? (Y or N): "; 11. cin>>select; 12. Jwhile(select 'Y' || select "y'); %!! 13. 14. cout<<"\n\nThank You! \n"; 15. 16. return e; 17.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT