Question: 2. (10 points) Write a Ch program named hwl 2. opp that implancta function named stringsplosion. Basically a string explosion! How does it work? Well,

2. (10 points) Write a Ch program named hwl 2. opp that implancta function named stringsplosion. Basically a string explosion! How does it work? Well, based on the size of string, the stringsplosion function will create a new string where portions of the spring are concatenated together until the entire string in added it may be easier to jump to the example to see what I mean). Within the stringsplosion function, you won't be printing anything out, jost returning the new exploded string. Here is your prototype: string stringsplosion (string str); Create a driver (a main file) which asks the user for a string, and then print the stringsplosion version Sample execution: Enter a string to explode: Code Code exploded is ccoCodCode. This is another sample execution. Enter a string to explode: abc abc exploded is aababe. This is another sample execution. Enter a string to explode: ab ab exploded is a string stringSplosion(string str) Cont
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
