Question: Please help me with these two questions. Modify the code you wrote in the problem draw_figure so that it uses a global constant for the

Please help me with these two questions. Modify the code you wrotein the problem draw_figure so that it uses a global constant forPlease help me with these two questions.

Modify the code you wrote in the problem draw_figure so that it uses a global constant for the figure's size. Assume the existence of a global constant named SIZE, not declared by your code. The previous output used a constant size of 5. *\\\\\ **** * Here is the output for a constant size of 3: ****** * Here is the output for a constant size of 7: M W ***** ***** ***** 11 ** 1 2 3 4 5 LO 7 8 9 10 Function: Write a C function as described, not a complete program. Submit 117.71 Assume that you have a variable called line that will take on the values 1, 2, 3, 4, and so on, and a global constant named SIZE that takes one of two values. You are going to formulate expressions in terms of line and SIZE that will yield different sequences of numbers of characters. For example, with a line value of 1, 2, 3, 4, 5, 6, a SIZE value of 1 generates 4, 6, 8, 10, 12, 14, ... while a SIZE value of 2 generates 6, 8, 10, 12, 14, 16, ... therefore the expression is 2 + line + (2 + SIZE) Write the expressions below. line = 1, 2, 3, 4, 5, 6, ... when SIZE is 3 generate 13, 17, 21, 25, 29, 33, when SIZE is 5 generate 19, 23, 27, 31, 35, 39, line = 1, 2, 3, 4, 5, 6, when SIZE is 4 generate 10, 9, 8, 7, 6, 5, when SIZE is 9 generate 20, 19, 18, 17, 16, 15, Submit i This exercise was uploaded to our system by Allison Obourn. If you think there is a mistake or bug in this exercise, its description, its test cases, etc., if you know the author (e.g. if they are your teacher/TA), please contact them directly. If the exercise is inappropriate, offensive, etc., or you do not know the author, please click the Contact Us button below and report the situation to our site administrators

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!