Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedPlease 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago