1.Assume you have created a mechanical arm that can hold a pen. The arm can perf
ID: 3625975 • Letter: 1
Question
1.Assume you have created a mechanical arm that can hold a pen. The arm can perform the following tasks:
>>Lower the pen to a piece of paper.
>>Raise the pen from the paper.
>>move the pen 1 inch along a straight line. (if the pen is lowered, this action draws a 1-inch line from left to right; if the pen is raised, this action just repositions the pen1 inch to the right.)
2. Draw a structure flowchart or write structured pseudo code describing the logic that would cause the arm to draw the following:
a. a 1-inch squared
b. a 2-inch by 1-inch rectangle
c. a string of three beads
d. Write a short word (for example, "cat"). Do not revel the word to your mechanical arm partner before the partner attempts to carry out your instructions.
Explanation / Answer
Think of the words not as letters, but as a series of lines, and you should be able to get it. It's actually more like: -put pen on paper -(assuming the pen is already turned to the left) draw a 1 inch line -turn 90 degrees left -draw a 1 inch line -turn 90 degrees left -draw a 1 inch line -lift pen
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.