![nikkio4](/avatars/18658.jpg)
nikkio4
28.01.2020 •
Computers and Technology
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
Solved
Show answers
More tips
- F Food and Cooking How to Get Reconfirmation of Registration?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
- F Family and Home How to Get Rid of Your Neighbors?...
- S Society and Politics How Could Nobody Know About the Dead Mountaineers?...
- H Health and Medicine How to Cure Adenoids?...
- H Health and Medicine Why Wearing a Back Brace Can Be Beneficial During Back Strain?...
- S Sport When and Where Will the 2014 World Cup be Held?...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
Answers on questions: Computers and Technology
- C Computers and Technology Explain the concept of conditional formatting...
- C Computers and Technology Obhttps://app61.studyisland.com/cfw/test/practice-session/a744c?CFID=2629ddb1-50a6-410a-a62d-a49e6b36b184&CFTOKEN=0&cratel... ☆Biodiversity & Human Activity20The sweet,...
- A Arts Anyone want to see my first ever video on utube?hope you like it. Go check it out around 12:00 am. and please like and subscribe to my channel. Its called Keisha Burr....
- M Mathematics Help jabsjsjsjsj thank...
- B Business Using concrete examples explain the use of the probability theory in economic analysis...
- M Mathematics I know it s not a traditional question but do you guys know how to become motavated? I ve just been feeling very unmotavated to do things. I just want to know how to become motavated...
- M Mathematics Solve for the distance between the points (0, -9) and (-4, 3)....
- A Arts Girl only zoom Meeting ID: 650 526 6240 Passcode: U1RUGLI...
- C Chemistry POSS Explain when gold is considered an element and when it is considered a solution....
- M Mathematics The expression on the left side of an equation is shown below. 3x+9=0 If the equation has no solution, which expression can be written in the box on the other side of the ec -9 -3...
Ответ:
4x - 5 = 49/2
4x = 24.5 + 5
x = 29.5 / 4
x = 7.375