Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

flowchat or pseudocode please Instructions You have been asked to program a robot that will do a variety of tasks. The robot will be sitting

flowchat or pseudocode please image text in transcribed
image text in transcribed
Instructions You have been asked to program a robot that will do a variety of tasks. The robot will be sitting in one chair at the beginning of each task. Practice using the concepts of sequence, branching and looping by creating programming logic for a robot in either pseudocode or a flowchart. Complete the tasks as outlined in the scenarios. Remember, the robot can do only the allowed processes or decisions as described below. Allowed Processes: 1. Stand Up 2. Sit Down 3. Turn Left 90 Degrees 4. Turn Right 90 Degrees 5. Take a Step Forward Allowed Decisions for Branching or Loops 1. Am I Touching Something? Task 1. Move between Two Facing Chairs You have two chairs about 10 feet apart facing each other. The robot is sitting in one of the chairs to begin. Create a program that will allow to do the following: - Stand Up - Walk Across to the Other Chair - Sit Down in the Other Chair Remember, you may only use the allowed processes or decisions. Task 2. Move between Two Chairs Not Facing Each Other You have two chairs about 10 feet apart facing away from each other. The robot is sitting in one of Task 2. Move between Two Chairs Not Facing Each Other You have two chairs about 10 feet apart facing away from each other. The robot is sitting in one of the chairs to begin. Create a program that will allow to do the following: - Stand Up - Walk Around the Chair - Walk Across to the Other Chair - Walk Around the Other - Sit Down in the Other Chair Remember, you may only use the allowed orocesses or decisions. Task 3. Move From a Chair to a Wall and Back You have one chair about 10 feet from a wall. The robot is sitting in the chairs to begin. Create a program that will allow to do the following: - Stand Up - Walk to the Wall - Turn Around - Walk back to the Chair - Sit Down in the Chair Remember, you may only use the allowed processes or decisions. Try to use functions for areas of code that repeat

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

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

\f

Answered: 1 week ago