Question: 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?

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!