Question: Need help outputting the way the example is given down below. The black colored box is my work. Please help explain what I need to
Need help outputting the way the example is given down below.
The black colored box is my work. Please help explain what I need to do to revise it so that it will output exactly.
This is C++, I have #include

5.5 Lab: Pattern Generator int nain) int In this lab you will write a program that follows a set of rules to generate string patterns from an initial pattern 'seed The program should start by prompting the user for a maximum pattem length between 10 and 60 characters Be sure to validate the input and repeat the request until a valid number is obtained For example int sotalLength D auto generation 0; tring initialFatterns string nevPattezn Enter maximum pattern length (10-60); 2 Enter naximum pattern length (10-60) 99 Enter maximum pattern length (10-60) 10 Ou"nter axinin pacters Length t cin > patternLength The initial pattem (generation 0) is "" This is the "current pattem. while(! (patternLength (a 60 patternLength )a 10 )) While the length of the current pattern is less than the maximum pattern length,compute the next generation pattern, using the following gorithm cout"Enter nalim pattern length > patterntength newPattern starts as an empty string terate over the current pattern, examining each character in tum cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
