Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++. The first image is my code that I'm confused about why it doesn't work. The second image is the problem we're supposed to be

image text in transcribedimage text in transcribedimage text in transcribed

C++. The first image is my code that I'm confused about why it doesn't work. The second image is the problem we're supposed to be solving: turning the first letter of each word in a string into an initial, and the last image is of the test file. Please let me know what I'm doing wrong.

| #include 2 3 using namespace std; + 5 l/d > string getInitials(string word) { string phrase = ""; 3 phrase = (char)toupper(phrase[o]); for(int i = 1; i

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

=+ 4. Why should policymakers think about incentives?

Answered: 1 week ago

Question

=+ 2. What is the opportunity cost of seeing a movie?

Answered: 1 week ago