Computer Science Homework Solutions
Problem
#160492

Creating a Flowchart-Mechanical Man

See attachment for details.

Attached file(s):
Attachments
Mechanical Man-Flowchart.doc  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

Mechanical Man-Flowchart.doc
Create a Flowchart

Construct a flowchart for an algorithm to make a mechanical man, who is
sitting in a chair facing a wall: 1) stand up, 2) walk to the wall and
touch it and 3) return to his chair and sit down.

The mechanical man possesses the following properties:

1. He is restricted to a limited set of operations.

2. He is event-driven (doing nothing unless given a specific
instruction).

3. He must carry out instructions one at a time.

4. He understands the following instructions:

a. Physical movement:

(1) Stand

(2) Sit

(3) Take one step forward

(4) Raise arms straight ahead

(5) Lower arms to sides

(6) Turn right (90 degrees without taking a step)

b. Arithmetic:

(1) Add one to a running total

(2) Subtract one from a running total

(3) Store a total (any number to totals can be stored)

c. Logic:

The mechanical man can decide what instruction he will carry
out next on the basis of answers to the following questions:

(1) Arithmetic results

(a) Is the result positive?

(b) Is the result negative?

(c) Is the result zero?

(d) Is the result equal to a predetermined amount?

(2) Physical status

(a) Are the raised arms touching anything?
Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$11.97)
Included in Download
  • Plain text response
  • Attached file(s):
    • the solution of the Posting 160492.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Write a pseudo code for the following flowchart - Write a pseudo code for the following flowchart, flowchart attached.
  • Convert given flowchart into pseudocode. - Write the pseudo code for the attached flowchart that adds a series of user-entered numbers and terminates after displaying the sum when the user enters 0.
  • Flowchart - Java - Compose a flowchart that traces the program run of the attached Java program leading from each line of output back to the source of that line in the program.
  • Pseudo Code to Flowchart Segment - Help with transferring a pseudo code into a flowchart segment. See attached file for full problem description.
  • Flowchart-13235 - createa flowchart of the interactions required between a user and a web site during a shopping cart "checkout". Possible error conditions such as missing input or invalid credit card numbers.
Browse