Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

6. (25pts) Given the string variables str1 and str2 contain you ought to start with logic and ou respectively, what is the result of each

image text in transcribed
6. (25pts) Given the string variables str1 and str2 contain "you ought to start with logic" and ou respectively, what is the result of each of the following expressions? a. stri,length() b. str1.find(str2) c. str1.substr(4, 25) d. str1.substr(4, 25).find(str2) e. strl.substr.(str1.find("logic"),3) 7. (8 pts) Given the input data January 25, 2005 and the input statement cin>>string1 >>string2; What is contained in each of the string variables after the statement is executed? 8. (12 pts) Write a C++ program that computes and outputs the area of a circle, given the diameter of the circle. Be sure to use proper formatting and appropriate comments in your code. The output should be labeled clearly

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students explore these related Databases questions