The program below is given in form of a pseudo code

Start
Enter radius
If radius<0
The display" error message"and re-enter positive height
Volume=1/2×π×square radius×height
End if
Display volume
Stop.
Draw a corresponding flow chart for the information above

1 answer

To create a flowchart for the provided pseudo code, you can follow these steps visually organized in a standard flowchart format. Below is a textual representation of how you would lay out the flowchart:

Flowchart Steps

  1. Start: Begin the flowchart with a "Start" symbol (oval shape).

  2. Input Radius: Use a parallelogram to represent the action of entering the radius.

  3. Decision (If): Create a diamond shape for the decision point:

    • Condition: radius < 0

    a. Yes (True):

    • Connect to a process box saying "Display error message."
    • Connect to a process box saying "Re-enter positive radius."
    • Then, loop back to the "Input Radius".

    b. No (False):

    • Move on to the next process box saying "Enter height."
  4. Input Height: Use another parallelogram for entering the height.

  5. Calculate Volume: Use a process box to represent calculating the volume:

    • Volume = (1/2) × π × (radius²) × height
  6. Display Volume: Use a parallelogram for displaying the volume.

  7. Stop: End the flowchart with an "End" symbol (oval shape).

Textual Flowchart Representation

   [Start]
      |
  [Enter Radius]
      |
   [ radius < 0? ] 
      / \
    Yes  No
    /     \
[Display  [Enter Height]
Error Msg]     |
  |            |
  |     [Volume = (1/2) * π * (radius²) * height]
  |            |
[Re-enter Radius]         |
       \                / 
        \              /
         --------------
              |
      [Display Volume]
              |
           [Stop]

How to Draw

  1. Begin with an oval shape for "Start" and label it.
  2. Use a parallelogram to indicate "Enter Radius".
  3. Create a decision shape (diamond) for the condition radius < 0.
  4. Branch out for "Yes" (display error and re-enter radius) and "No" (enter height).
  5. For the "Yes" path, include another parallelogram to indicate re-entering the radius, and link it back to the "Enter Radius" step.
  6. For the "No" path, include another parallelogram to enter the height.
  7. From there, have a process box for calculating the volume.
  8. Finally, use a parallelogram to display the volume and then end with an oval shape for "Stop".

This representation should guide you in creating an actual flowchart using graphical software or even on paper.