Write an algorithm using pseudocode

Assignment Help Computer Engineering
Reference no: EM131140028

Course Project Instructions

A robot is sitting in a chair with its arms facing down. Write an algorithm, using pseudocode, to make the robot: stand up walk forward until it senses a wall turn around walk back to the chair sit down in its original 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 whether the robot is at the wall as follows:

if at wall
or alternatively if 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. Upload the assignment as a text file with the name: flast-Project.txt, where "flast" is the first letter of your first name followed by your last name.


Attachment:- Project.rar

Reference no: EM131140028

Questions Cloud

Prepare journal entry and the annual adjusting entry : ssume that on February 1, Procter & Gamble paid $747,000 in advance for 1 years' insurance coverage. -Prepare P&G's February 1 journal entry.
Design detailed business plan for new product : Design a detailed business plan for a new product, service, or business venture of your choice. This could be an idea you have been contemplating or a product presently being marketed, but your business plan must reflect the uniqueness of the idea.
How will you use these data in planning the specific lesson : Explain what the students have previously studied as a foundation for this unit. Explain why the unit was selected. Explain where the unit fits into the district's (or school's) curriculum. How will you use these data in planning the specific lesson ..
Explain the implementation of a public education campaign : Design and explain the implementation of a public education campaign concerning the various terrorism hazards
Write an algorithm using pseudocode : Write an algorithm, using pseudocode, to make the robot: stand up walk forward until it senses a wall turn around walk back to the chair sit down in its original starting position Finally, output the total number of steps taken.
How does that affect you as a professional educator : What does it mean to be a lifelong learner, and how does that affect you as a professional educator?
Benefits is very important part of the strategic plan : Compensation and benefits is a very important part of the strategic plan of an organization. Compensation and benefits are designed to attract, motivate, and retain employees and to achieve an advantage over competitors. Financial forms of compensati..
Why is it difficult for labor negotiators : Why is it difficult for labor negotiators (both management and union) to switch from traditional to integrative bargaining? What recommendations would you make to help negotiators make this switch? Why might it be more difficult for union negotiators..
Communications on company time and equipment : Michigan law currently allows employers to restrict the use of emails or Facebook for union purposes on company time and on company equipment. Litigation in other states suggests that employees have an expected right to privacy regarding union commun..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Would you usually recommend a clean install or an in-place

what upgrade options exist for moving from server 2008 r2 to server 2012? what limitations or caveats should be

  Find expectations that his business will continue to grow

Fernando Culebra has always been fascinated by skateboards. Fernando has won many contests, both locally and nationally. His interest in skateboards led him to open Fernando's Skate Shop in Denton, Maine.

  Define the cost per student for each class

Using the data below, create and populate a course table. Designate the CourseID field as a "Primary Key" and allow your database to automatically make a value for this field. Designate the "Technical" field type as "Yes/No" (Boolean).

  Purpose of testing

Describe the purpose of testing. Discuss how tests are carried out at different levels within the system.

  Consider the broad range of data manipulation features

What are the data manipulation capabilities found in SQL Server 2005? consider the broad range of data manipulation features and provide a summary.

  Find the clock cycles required in both cases

What is the global CPI for each implementation and find the clock cycles required in both cases."

  Simple annual interest and the remainder

She borrowed the maximum amount she could at 3.5% simple annual interest and the remainder at 7% simple annual interest. At the end of the first year, she owed $259 in interest. How much was borrowed at each rate?

  Guassian function and digital transmission technique

Prove the following properties of Gaussian function:Explain four benefit and one de-merits of utilizing the digital (rather than the analog) techniques for transmission of the voice-telephone signals.

  What is csma/cd

What do you feel is the future for Token Ring? What are its advantages or disadvantages.

  The economic analysis carried out during project

1 what are some sources of risk in a systems analysis and design project and how does a project manager cope with risk

  Entity-relationship diagrams

The process of starting with the world objects and modelling utilizing the entity-relationship diagrams is known to as a top-down process.

  Create and development phases of software development

consider efforts that can be done at design and development phases of software development which pay dividends later in software maintenance, that is, improve the ability to maintain.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd