Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Determine the output for each code In C++ Lenguage Please. 1 // Exercise1.cpp : Exercise 1 177 4 #include stdafx.h #include #include using namespace std;

image text in transcribed

Determine the output for each code In C++ Lenguage Please.

1 // Exercise1.cpp : Exercise 1 177 4 #include "stdafx.h" #include #include using namespace std; int main() 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 = 0; string vowels = "AEIOUYaeiouy": string: :size_type pos = 0; string: :size_type a = 0; while (1) if (loc == 0) { a = vowels.find(message. at(loc)); -0-0- 0 else { pos = message.find(" ", loc); if (pos == string:: npos) break; a = vowels.find(message.at(pos + 1)); if (a == string:: npos) message.at(pos + 1) = message.at(pos + 1) - 32; loc = pos + 1; cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

D How will your group react to this revelation?

Answered: 1 week ago