Question 1: Count the number of spaces and stars on each line for the above example and come
up with a sequence of operations that will construct the figure. Repeat this process for a figure
with a height of 9 and line thickness of 7.
Question 2: Looking at the above examples and the numbers in the function calls for drawing
these, identify the pattern(s) in the sequence(s) of dashes and gaps. What would be the sequence
for a height ’h’ and thickness ’t’?
Question 3: Construct the loop for this process using psuedocode ( not on Raptor). Pseudocode
is an artificial and informal language that helps programmers develop algorithms. This video is a
helpful introduction.
Question 4: Write a C++ program that implements the flowchart using a for loop. Use the
printchars function described above. In a script session, display (“cat”) the code, compile, and
test it. Upload the answers to questions 1, 2 and 3, the .cpp file and the script file into a folder
named Lab5
Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount