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 YesNoAnswery:

image text in transcribed
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 YesNoAnswery: 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 first 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 7 using namespace std; Sint main() 10 11 12 string relative, food, adjective, period; /get user's words / out without any space in "David says provide input without any space" instead of 11 13 "provide input without any space" make sure you modify the cout as follows: cout #include using namespace std; Qint main() 10 { string relative, food, adjective, period; 12 /*get user's words */ cout > relative; 15 cout > food; 16 cout > adjective; 17 cout > period; // print user's words // 19 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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

What attracts you about this role?

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

Different types of Grading?

Answered: 1 week ago