< previous page page_301 next page >

Page 301
Print Body of Invoice
Initialize process
Initialize ending condition
WHILE quantity > 0
 Update process
 Update ending condition

Print Totals
Print blank line
Print Total Units Ordered:, totalUnits Total: totalAmount

Initialize Process Level 2
SettotalUnits=0
Set totalAmount = 0.0

Initialize Ending Condition
Open inFile for input (and verify the attempt)
Read quantity from inFile

Update Process
Print quantity (aligned with heading)
Read and print description (aligned with heading)
Read price from inFile
Print price (aligned with heading)
Set amount = quantity 
* price
Print amount (aligned with heading)
Add quantity to totalUnits
Add amount to totalAmount

 
< previous page page_301 next page >