Robot Project

Programming

Scenario: A robot is sitting in a chair with its arms facing down. Write an algorithm, using pseudocode, to make the robot:

  • stand up
  • walk until it senses a wall
  • turn around
  • walk back to the chair
  • sit back down in the origin starting position

Finally, output the total number of steps taken.

Commands:

In addition to our standard pseudocode commands, you must also use the following robot control commands:

  • sit
  • stand
  • step (one step forward)
  • raise arms (parallel to floor)
  • lower arms (pointing to floor)
  • sense (only if arms are raised)
  • turn (90 degrees right)

Immediately after issuing a sense command, you can check if the robot is at a wall.
You do this via the boolean conditions “at wall” or “not at wall”.
The following are examples of this:

if at wall
if not at wall
while not at wall

Assumptions

You must assume the following facts:

  • The robot’s initial sitting position is directly facing the target wall.
  • There are no obstacles between the robot and the wall.
  • The wall is 1 or more exact steps from the chair.
  • The wall is sensed when it is less than 1 step from the robot’s arms.
  • The length of the robot’s arms are slightly less than the length of 1 step.

Your solution

Your solution must include all of the following:

  • Adequate comments
  • Initialization and use of at least one variable
  • Sequential flow of control
  • Conditional flow of control
  • Iterative flow of control
  • Handling of any special cases
  • Output of the total number of steps taken

Your pseudocode must conform to the course pseudocode guidelines.

Once you have completed the algorithm:

Make sure your comments are detailed enough, someone without any knowledge of algorithms or pseudocode could follow what is happening. Upload the assignment as a text document using the following naming protocol: flast-Project.txt where “flast” is the first letter of your first name followed by your last name.

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational