Answered step by step
Verified Expert Solution
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?
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 detailsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started