logo CodeStepByStep logo

AddStars

Language/Type: VB List collections

Write a function named AddStars that accepts as a parameter a List of strings, and modifies the list by placing a "*" element between elements, as well as at the start and end of the list. For example, if a list named list contains {"the", "quick", "brown", "fox"}, the call of AddStars(list) should modify it to store {"*", "the", "*", "quick", "*", "brown", "*", "fox", "*"}.

Function: Write a VB function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.