Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Instruction : The output of this code Determine the output for each code: Code 1: E// Exercise1.cpp Exercise 1 2. // 3. 4. O#include

C++ Instruction : The output of this code image text in transcribed
image text in transcribed
image text in transcribed
Determine the output for each code: Code 1: E// Exercise1.cpp Exercise 1 2. // 3. 4. O#include "stdafx.h" #include #include 5. 8. using namespace std; 10 int main() 10 Bint main() 11 12 string message "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) { if (loc == 0) { = "I have always wished for my computer 13 14 15 16 0; "AEIOUYaeiouy"; %3D 17 18 19 !3! 20 21 a = vowels.find(message.at(loc)); 22 23 24 else { pos message find(" Toc): ompletion Status: 23 24 else { 25 pos = message.find(" ", loc); if (pos 26 string::npos) 27 break; 28 a = vowels.find(message.at(pos + 1)); 29 if (a string::npos) message.at (pos + 1) = loc = pos + 1; 30 31 message.at(pos + 1) - 32; 32 33 34 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

Data Infrastructure For Medical Research In Databases

Authors: Thomas Heinis ,Anastasia Ailamaki

1st Edition

1680833480, 978-1680833485

More Books

Students also viewed these Databases questions

Question

What is discretionary reporting?

Answered: 1 week ago

Question

7. Define cultural space.

Answered: 1 week ago

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago