Read a string from the user into a string named string1.
test it with the data: good mo...
![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 28.01.2020 02:31, sanchezr7187
Read a string from the user into a string named string1.
test it with the data: good morning
print the following heading and the data contained in string1:
exercise 1
good morning
exercise 1.2.2
create a new string named string2 containing the contents from string1.
append the following text to the end of string 2.
sleepy heads
(note that there is a space before sleepy.)
print the following heading and the data contained in string2:
exercise 2
good morning sleepy heads
exercise 1.2.3
create string3 with an initial value of:
bellow cello fellow hello mellow novello othello pillow rollo solo yellow
find the location of the first h in string3
print the following heading and the location found in string3:
exercise 3
20
exercise 1.2.4
create an empty string named string4.
copy string3 into string4.
using the location found in exercise 3,
change the first h into j
print the following heading and the data contained in string4:
exercise 4
bellow cello fellow jello mellow novello othello pillow rollo solo yellow
exercise 1.2.5
create a copy of string3 named string5.
use the find_last_of member function to find the position of the last l
print the following heading and the position of the last l
exercise 5
69
exercise 1.2.6
create a new string named string6 containing the contents from string3.
using the position of the last l found in exercise 5, erase all
characters from string6 following the last l
print the following heading and the data contained in string6:
exercise 6
bellow cello fellow hello mellow novello othello pillow rollo solo yell
![answer](/tpl/images/cats/otvet.png)
Answers: 3
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 21:00, sarah192002
You should hand write your references on your resume.
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:00, babysisjessica1
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 06:30, titalili0204
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
Do you know the correct answer?
Questions in other subjects:
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 27.06.2020 05:01
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 27.06.2020 05:01
![Konu](/tpl/images/cats/fr.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 27.06.2020 05:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 27.06.2020 05:01
![Konu](/tpl/images/cats/istoriya.png)
History, 27.06.2020 05:01
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 27.06.2020 05:01