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
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..
|