Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please using c++ visual studio 2015. please show me for code output and give to

ID: 3813993 • Letter: P

Question

please using c++ visual studio 2015. please show me for code output and give to pseudo code for c++ thanks.

THAT IS pigLatinin.txt

go
placidly
amid
the
noise
and
haste
and
remember
what
peace
there
may
be
in
silence
as
far
as
possible
without
surrender
be
on
good
terms
with
all
persons
speak
your
truth
quietly
and
clearly
and
listen
to
others
even
the
dull
and
the
ignorant
they
too
have
their
story
if
you
compare
yourself
with
others
you
may
become
vain
or
bitter
for
always
there
will
be
greater
and
lesser
persons
than
yourself
enjoy
your
achievements
as
well
as
your
plans
be
yourself
especially
do
not
feign
affection
beyond
a
wholesome
discipline
be
gentle
with
yourself
you
are
a
child
of
the
universe
no
less
than
the
trees
and
the
stars
you
have
a
right
to
be
here
and
whether
or
not
it
is
clear
to
you
no
doubt
the
universe
is
unfolding
as
it
should
be
cheerful
strive
to
be
happy

Create a string object with the string "C++ Programming is Fun Using the functions in the C++ string class (as listed on pp588-589 of the text, also Chapter 2, Slides 61 and 62), determine and printout the following information 1) The length of the string 2) The character at index 5 a) Please put single quotes around that character in the output. 3) The ASCII number of the character at index 5. (We can convert any character to its integer equivalent by using a cast: static cast kint (ch) around the character. This will cause the ASCII number to be printed instead of the character.) 4) The substring starting at index 19 and ending at index 22 (inclusive). 5) The index of the first g' character in the string (see the find function). 6) The index of the second g' character in the string. (Use the second find function listed on page 589 to solve this problem, not the find last of function.) 7) Write a loop that prints out each character separated by a space. In each case, create a printing statement that identifies what is about to be printed out followed by the specified output. Each output statement will be on one line. For example, for numbers 1 and 2, your output will look like the following (note that these are dummy values, given for the purposes of illustration only): 15 Length of string Character at index 5 A' Put single quotes around output

Explanation / Answer

In C++, you can also create a string object for holding strings.

Unlike using char arrays, string objects has no fixed length, and can be extended as per your requirement.
C++ string using string data type
#include <iostream>
using namespace std;

int main()
{
// Declaring a string object
string str;
cout << "Enter a string: ";
getline(cin, str);

cout << "You entered: " << str << endl;
return 0;
}

Output
Enter a string: Programming is fun.
You entered: Programming is fun.