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

  Explain how to construct your network architectures

Explain how to construct your network architectures and how you trained them - explain how to construct your network architectures and how you trained them.

  Create class complex for working with complex numbers

modify class Complex for working with complex numbers of the form a + bi, where i is square root of -1. Your class must have two overloaded operators for adding and subtracting the complex numbers.

  Define communication between different databases

Why would this make a problem. What is the role of proprietary systems in this issue.

  An object oriented language as in visual basic

Why is programming in an object oriented language as in Visual Basic more "natural" than programming in a procedural programming language such as C.

  C program to implement sieve of erastosthenes

Prepare a C program which implements the Sieve of Erastosthenes and determines the primes among the first N integers that you enter through a prompt or the command line.

  What were the advances in information technology that

prepare a 300- to 500-word paper that answers the following questionwhat were the advances in information technology

  Analysis of the expenditure cycle

You will apply the REA Model and use Microsoft Access software to complete the case analysis of the expenditure cycle. Draw E-R diagrams that illustrate the relationships between these items

  Write down a java application that reads customer''s income

Write down a Java application that reads customer's income for few years from a file (income.txt), and calculates the average tax customer needs to pay per year. suppose that customer's tax bracket is 30%.

  What are the ethical implications of it system use locate

what are the ethical implications of it system use? locate an ethical situation you are familiar with or that you have

  Questionexecute a recursive directory traversal as walking

questionexecute a recursive directory traversal. as walking the file tree you will be looking for duplicate files and

  Identify current strengths and weaknesses in the firm

Each weakness must be addressed in the action plan. I might select any firm with which I'm associated with (I don't have any), or any other firm that will cooperate in providing necessary information to complete this project.

  How it influence it department''s ability to maintain

be sure to address readability as a characteristic and how it will influence an IT department's ability to maintain custom software for a corporation.

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