49.6k views
5 votes
Using C++, please code the following and provide proof it compiles appropriately.

student submitted image, transcription available below

Please use STL containers and STL algorithms whenever you can.

Please include comments that explain what is going on at every function.

Please initialize variables.
Please avoid global variables

Please do not hard code the length of an array instead of using a symbolic constant

Please do not have multiple returns or redundant variables
Please do not continue search after target is found
Please do not use a break to terminate a loop
Please do not manually adjust the loop control variable

1 Answer

1 vote

Unfortunately, there is no transcription or image provided for me to write a long answer explaining the code. Please provide the code so that I can assist you in compiling and explaining it.

User Acuminate
by
7.9k points