Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

As you can tell, a string is a combination of individual characters and is encased with double quotes. character is coded this way: char YesNoAnswer

image text in transcribed

As you can tell, a string is a combination of individual characters and is encased with double quotes. character is coded this way: char YesNoAnswer = 'y': and string is coded this way: string Answer = "yes"; For string to work you must also include the string library. Modify this code by adding an additional input field that takes a string of your last name and prints it at the the start so, for example your program should start with: "David says provide input without any space" instead of "provide input without any space" make sure you modify the cout as follows: cout #include using namespace std; 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Fint main() I{ string relative, food, adjective, period; /*get user's words */ cout > relative; cout > food; cout > adjective; cout > period; // print user's words // 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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions