200k views
3 votes
I am trying to assemble a flow chart and pseudocode for a menu driven program that displays a planet's distance from the sun, its mass, and its surface temperature.

User Rscnt
by
8.1k points

1 Answer

0 votes

Answer:

For a flow chart, there is a standardized set of symbols to represent different elements of the program:

  • Oval or Rounded Rectangle: Represents the start or end points of a process or program.
  • Rectangle: Represents a process or action, such as a calculation, data manipulation, or function call.
  • Diamond: Represents a decision point or a conditional statement, such as an "if" statement. It usually contains a question or condition that is either true or false.
  • Parallelogram: Represents input or output operations, like reading data from a file or printing the result.
  • Arrow: Represents the flow of control between different elements in the flowchart

Connect these symbols together with arrows and you can represent the flow of the program.

For the pseudocode, reference the flow chart you made (which should represent the control flow of the program) to assemble the outline of the program.

User Utkarsh Yeolekar
by
8.3k points