Using IPO Charts

An IPO chart is a simple but effective tool that programmers sometimes use for designing and documenting functions. IPO stands for input, processing, and output, and an IPO chart describes the input, processing, and output of a function. These items are usually laid out in columns: the input column shows a description of the data that is passed to the function as arguments, the processing column shows a description of the process that the function performs, and the output column describes the data that is returned from the function. For example, Figure 6-7 shows IPO charts for the ge Lregular- price and discount functions that you saw in Program 6-7.

Ifpife 6-7 IPO charts for the getRegularPrice and discount functions

IPO Chart forthe get regular price Function

IPO Chart forthe get regular price Function

Ipo Charts Programming

IPO Chart for the discount Function

Input

Processing

Output

An item's

Calculates an item's discount

The Item's discount

regular price

by multiplying the regular price

+9 -6

Responses

  • Max Ebersbach
    What column in the ipo chart describes the data is passed to the function as arguments?
    7 years ago
  • louise
    How to make an ipo chart with a repetition loop in python?
    4 years ago
  • Pauli
    What are the functions of IPO chart?
    10 months ago

Post a comment