Question: C++ Determine the output for each code: Determine the output for each code: Code 1: B// Exercise1.cpp : Exercise 1 [// 2. O#include stdafx.h #include

C++ Determine the output for each code:  C++ Determine the output for each code: Determine the output for
each code: Code 1: B// Exercise1.cpp : Exercise 1 [// 2. O#include
"stdafx.h" #include #include 8. using namespace std; 6. hp 8. using namespace

Determine the output for each code: Code 1: B// Exercise1.cpp : Exercise 1 [// 2. O#include "stdafx.h" #include #include 8. using namespace std; 6. hp 8. using namespace std; 10 Bint main() 11 string message = "I have always wished for my computer "to be as easy to use as my telephone; my wish has "come true because I can no longer figure out how to "use my telephone."; string::size_type loc = string vowels string::size_type pos = 0; string::size_type a = 0; while (1) { 12 13 14 15 16 0; 17 "AEIOUYaeiouy"; 18 19 20 0) { = vowels.find(message.at(loc)); 21 if (loc 23 if (loc 0) { = vowels.find (message.at(loc)); 21 22 a 23 24 else { pos = message.find(" ", loc); if (pos 25 26 == string::npos) break; a = vowels.find(message.at(pos + 1)); 27 28 29 30 if (a == string::npos) message.at(pos + 1) = loc = pos + 1; 31 message.at(pos + 1) - 32%3; 32 33 34 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!