Assumeyouhavecreatedamechanicalarmthatcan.

上传人:人*** 文档编号:498723735 上传时间:2022-10-29 格式:DOC 页数:6 大小:192KB
返回 下载 相关 举报
Assumeyouhavecreatedamechanicalarmthatcan._第1页
第1页 / 共6页
Assumeyouhavecreatedamechanicalarmthatcan._第2页
第2页 / 共6页
Assumeyouhavecreatedamechanicalarmthatcan._第3页
第3页 / 共6页
Assumeyouhavecreatedamechanicalarmthatcan._第4页
第4页 / 共6页
Assumeyouhavecreatedamechanicalarmthatcan._第5页
第5页 / 共6页
点击查看更多>>
资源描述

《Assumeyouhavecreatedamechanicalarmthatcan.》由会员分享,可在线阅读,更多相关《Assumeyouhavecreatedamechanicalarmthatcan.(6页珍藏版)》请在金锄头文库上搜索。

1、CSC 110 Introduction To Programming Logic9/14/2018Assume you have created a mechanical arm that can hold a pen. The arm can perform the following tasks:a)b)c)In Class Exercises Flowcharts and Pseudocode Namelower the pen to a piece of paperraise the pen from the papermove one inch along a straight l

2、ine (If the pen is lowered, this action draws a one- inch line from left to right; if the pen is raised, this action just repositions the pen one inch to the right.)d)e)turn 90 degrees to the rightdraw a circle that is one inch in diameterDraw a structured flowchart Or write pseudocode that would ca

3、use the arm to draw the following. Remember the Computer is a two year old and write instructions that will achieve your goal. One of the team members must dem on strate your resultsa. a one-inch squareWrite PseudocodeFlowchart -Label flowchart symbolsTurn 90 DegreesStopDraw 1 LineDraw 1 LineIn Clas

4、s Exercises Flowcharts and Pseudocode2Nameb. a stri ng of three beadsPseudocodeFlowchartlower the pen to a piece of paperdraw a circle that is on e-i nch in diameterraise the pen from the papermove one inch along a straight linelower the pen to a piece of paperdraw a circle that is on e-i nch in dia

5、meterraise the pen from the papermove one inch along a straight linelower the pen to a piece of paperDraw a circle that is one-inch in diameterRaise the pen from the paperIn Class Exercises Flowcharts and PseudocodeName2. Assume you have created a mecha ni cal robot that can perform the follow ing t

6、asks: sta nd upsit dow nturn left 90 degreestur n right 90 degreestake a stepAdditi on ally, the robot can determ ine the an swer to one test con diti on:Am I touch ing someth ing?Place two chairs 20 feet apart, directly faci ng each other. Draw a structured flowchart or write pseudocode that would

7、allow the robot to start from a sitting position in one chair, cross the room, and end up sitti ng in the other chair.Have a fellow student act as the robot and carry out your instructions.In Class Exercises Flowcharts and PseudocodeName3. Draw a structured flowchart of your preparation to go to wor

8、k or school in the morning. In clude at least two decisi ons and two loops. Write the PseudocodePseudocodeFlowchartIn Class Exercises Flowcharts and Pseudocode5Name4. Match the definitions with the appropriate term.1. Computer system equipment hardware2. Another word for programs software3. Language rulessyntax4. Order of instructionslogic5. Language translatorcompiler5. What are the five steps in Program Planning as discussed in class?

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 医学/心理学 > 基础医学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号