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

  What are the services within the print services role

What are some of the management activities you can accomplish with ServerManagerCmd.exe. What are the services within the Print Services role. How do you add counter, using different sections of the Performance Monitor, in order to configure monitori..

  Describing lan and wan

Write down in words and describe the meanings of terms LAN and WAN. Explain how do they differ? State three basic topologies for LAN use, and describe the differences among then.

  Describe python modules and packages

Describe Python modules and packages

  Largest solution to the quadratic equation

In case, the value of "b squared" 4ac is negative, then code prints out the message "no real solutions" and returns. On the other hand, the function prints out the largest solution to quadratic equation.

  Expert systems or neural networks

Could you please select and justify which of the decision technology/approaches, expert systems or the neural networks, which must be used and how your solution would work.

  Utilize routers for connectivity devices instead of hubs

Utilize routers for connectivity devices instead of hubs

  Why need both kinds of routing protocols

consider the difference between an interior routing protocol and an exterior routing protocol. What are they, how are they both similar and different.

  Define defense in depth

Define defense in depth

  Find speed of execution of application programs

As computer word size gets larger and larger, there is a law of diminishing returns; the speed of execution of application programs does not increase and may, in fact, decrease. define why this can occur.

  Create a temperature demo program

Make sure you take no input in this class and that it does not contain a main method.

  How to compare and contrast the two systems

In San Jose, CA, Riordan Manufacturing Company is in the procedure of upgrading all computers. Windows 2K is the network operating system. IT has decided to upgrade the network operating system, and your team is tasked with evaluating both Windows..

  Write down a java gui application called indexjava which

write a java gui application called index.java that inputs several lines of text and a search character and uses string

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