hts.StevenWood.com

[ Last Page ]

Example

The question:

The Pacific Gymnastic Meet at BC Place starts next week. The seating cost are: orange seats $23.50, brown seats $19.75, and yellow seats $16.55. There is a tax of 6% on all seats.

Input-Processing-Output Chart

Input Data

Processing Steps

Output Data

The number of tickets required

The colour of the tickets

Get the number of tickets

Get the colour of the seats

if the colour is orange the cost = 23.50
if the colour is brown the cost = 19.75
otherwise, the cost is 16.55

Multiply the number by the cost = subtotal

tax = subtotal x 6%

Add the tax to the subtotal = total

Display the number of tickets, total, tax

The number of tickets

The cost of the tickets

The tax amount (in the cost)

 

Review Question, 

Problem Definition Table

IPO Chart

Algorithm:

Flowchart

Pseudocode

[Last Page]
All material on this site is copyright © 1997- by Steven Wood or as credited. All right reserved. Use of this site indicates you agreement with the  terms of use.
Send comments or questions to about this page.
Every attempt has been made to credit work under copyright. If there are any claims that copyright has been missed please contact the .
+SDG+