|
|
|
|
|
|
|
Initialize process
Initialize ending condition
WHILE quantity > 0
Update process
Update ending condition |
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|