Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question) Using Splashkit, C++ and visual studio code (NOT Iostream) Fix the Code? Create an index-of function which will return the index of a given

Question)

Using Splashkit, C++ and visual studio code (NOT Iostream)

Fix the Code?

image text in transcribed

image text in transcribed

Create an index-of function which will return the index of a given name in the array. This should return -1 if the name is not present. int index_of (string value, string datal, int size) Hint: Use similar logic to was found. contains from the video, but return the index where the name oCreate a print_summary procedure that accepts the array and its size, then prints out all of the names, the total length of these names, the index of your name (or -1 if your name is not in the array), and the shortest name. void print_summary(string datall, int size) o Have main create and work with an array of string:s .Use a constant for the size (make it 5) Loop to read in the names Call print summary to output the details

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

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions