Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91896528
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in Computer Engineering

Biodiversity refers to the variety of living organisms

Biodiversity refers to the variety of living organisms found within an ecosystem. In your description, evaluate the role of humans in the current biodiversity loss situation and increased species extinction rate. In addi ...

Question suppose you work for a company ipuritancom that

Question : Suppose you work for a company, iPuritan.com, that has strict rules for when two employees, x and y, may date one another, requiring approval from their lowest-level common supervisor. The employees at iPurita ...

Poblem 1 a firms production function c is given by c q

Problem 1. A firm's production function C is given by C (q) = 0:5q 2+2q 1 2 +18, where q is the level of output. (i) Calculate marginal costs (ii) If all fixed costs are sunk, and the minimum price at which this firm wil ...

How could legislation impact on operations within your

How could legislation impact on operations within your organisation in relation to innovation, project management, and operational planning? Briefly outline any relevant requirements (e.g. intellectual property, WHS).

A five question multiple choice statistics quiz is given

A five question multiple choice statistics quiz is given. Each question has 3 possible choices, only one of which is correct. calculate the probability that of receiving a passing grade on the quiz, by randomly guessing ...

Ellen is an anthropologist who has been working at olduvai

Ellen is an anthropologist who has been working at Olduvai Gorge in Tanzania for the past six months. She has been conducting research on the Internet. She finds a Web site with an article that proposes a revolutionary t ...

If we compare and contrast the four market structures it is

If we compare and contrast the four market structures, it is evident that one market structure is most practiced and evident in the United States. It is the one that promotes and strives on competition. It is the one tha ...

A 1000 utility bond with 14 years remaining before maturity

A $1000 utility bond with 14 years remaining before maturity can now be purchased for $760. It pays interest of $20 each 6-month period. What rate of return is earned by purchasing the bond at the current market price pl ...

How do you calculate the annual interest rate of 12

How do you calculate the annual interest rate of 12% compounded monthly. I know how to do for annually but not monthly. You are offered the opportunity to put some money away for retirement. You will receive 10 annual pa ...

Suppose there is exactly one packet switch between a

Suppose there is exactly one packet switch between a sending host and a receiving host. The transmission rates between the sending host and the switch and between the switch and receiving host are R1 and R2 respectively. ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As