Abbreviations.com Convert.net Definitions.net Quotes.net Synonyms.net USZip.net References.net
Bookmark & Share
 
Synonyms.net
Search for Synonyms:     
Browse Alphabetically:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #
 random synonym 
Personalize Yedda, (And make Danny Happy)
People ask & answer about almost everything. Tell us what you're interested in... So we can personalize Yedda especially for you
I'm interested in:
Originated from
AOL Search

Programming

Assume you have created a mechanical robot that can perform the following

tasks:

a. Stand up.

b. Sit Down.

c. Turn left 90 degrees.

d. Turn right 90 degrees.

e. Take a step.

Additionally, the robot can determine the answer to one test condition:

--Am I touching something?

Scenario:

Place two chairs 20 feet apart, directly facing each other. Create

pseudocode to describe the logic that would allow the robot to start from

sitting position in one chair, cross the room, and end up sitting in the other

chair.


Share Send to a friend Watch Report
 
 

Posted Answers

 
15 helpful answers

well psuedocode is basically writing the algorithm to do the task in your own words

assuming that take a step moves the robot forward 1 foot you could do something like this:

starting position: robot is sitting on a chair needing to sit on the chair infront of him 20 feet away

1.standup

2. while not reached 2nd chair take a step (can be either boolean is next square a chair, or if you know how long is 1 step and how far is the chair, you can do a for loop)

3. turn left

4. turn left

(at this point the robot turned 180 degrees)

5. sit down

Sign in to participate

Got an answer for salsa007? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Posts in Forums

Sharing Files between NT 4.0 Computers and Win95 Computers

computers to Win95 computers but not vice versa. I can create the shares on the WIn95 computers Are the Win95 computers backing up their data regularly? If not then you have a case for everything when I'm on a NT computer. I can even gain access from the Win95 computers when I'm on the Macs

[News] Computers & Technology News [Post Your NEWS Here] - Computers...

Computers & Technology News Thread - Post All Your NEWS Articles In This Thread - - Good Articles event drew about 160 developers and other interested parties to the Computer History Museum to hear & MIDI Digital Multitrack Recorder that transforms your computer into a powerful audio recording

Networking XP computers w Vista Computers

PEOPLE There needs to be a fix to this NOW to let these computers do what they are supposed to do have the cash to just run out and update all my computers and/or operating systems every time ... let's THINK PEOPLE There needs to be a fix to >this NOW to let these computers do what
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
Synonyms.net Q&A is powered by Yedda an AOL Company
Copyright © 2006-2009, Yedda Inc. and respective copyright owners
Home |  Add New Abbreviation |  Your List |  Tools |  Become an Editor |  Tell a Friend |  Links |  Awards |  Testimonials |  Press |  News |  APIs new! |  About
Copyright ©2004-2007 STANDS4 LLC. All rights reserved.  Terms of Use  |  Privacy Policy  |  Contact Us