ASCII Flowers

Job ID: 35845154

Budget: $10 – $30 USD

3 Quick Task Overview
The program needs an implementation of Option 2,
to print out the flower pattern. After Option 2 is
selected, you need to
1. Prompt the user to enter the number of Sections
2. Read in the integer from the user
3. Display the ASCII flower based on the input
from the user.
For example, if the user gives 3 then you need to display a flower with 3 heads (each head
getting progressively larger. The stem should be two vertical lines, for every head, with
alternating offshoots. See the examples in Section 5.
1
4 Details About How the Program Works
You will be adding a new feature to the program in main.cc, that will display an ASCII flower.
When the program starts, it starts by prompting the user with a message and informing them
of all the menu options. You can see examples of this in Section 5. The menu options are as
follows:
1. Display the Hello Graphic: you will have no work to do for this option. When selected,
the program will ask for a frame character and this is used in the graphic. See the first
example in Section 5 for seeing how this works. Looking at the code for this might be
helpful for seeing how to implement the next option.
2. Display the Flower : Program 1 is about implementing this option. When selected, the program should ask for the number of sections in the flower, then display
it.
3. Exit the Program: Do nothing and quit the program.
You can see the starter code in Section 6. Lines 18-23 are the prompt for the user. Lines
26-27 handle reading the menu choice of the user. Lines 36-73 display the Hello Graphic, if
option 1 is selected. Most importantly, your code for printing the flower will start at line 78.
Related categories: C++ Programming Computer Science