Ordering

Setup Process Wrapup

1.0 Call Setup Routine
2.0 Call Process Routine
3.0 Call Wrapup Routine

1.0 Setup

- print print print get class
- title headers message code

1.1 Call Print Title Routine
1.2 Call Print Headers Routine
1.3 Call Print Message Routine
1.4 Call Get Class Code Routine

2.0 Process

- repeat while
- code not equal
- get calculations get class
- data code

2.1 Do While loop until code not equal
.1 Call Get Data Routine
.2 Call Calculations Routine
.3 Call Get Class Code Routine

3.0 Wrapup

- Final Print Pause
- Calcs Summary

3.1 Call Final Calculation Routine
3.2 Call Print Summary Routine
3.3 Pause the Screen

1.1
- Print
- Title

1.1
- Print Title "General Merchandise Ltd"

1.2
- Print
- Headers

print print print print print increment
code description quantity price total counter

1.2.1 Print Header Code and Underline
.2 Print Header Description and Underline
.3 Print Header Quantity and Underline
.4 Print Header Price and Underline
.5 Print Total And Underline
.6 Increment Row Counter by one

1.4
2.1.3
- get class
- code

.1 Enter Class Code

1.3
2.2.6
- print
- message

.1 Print "Enter a 999 code to End the Transaction"
Print "Number of Items Processed: "

2.1
- get
- data

get get get cost
description quantity per item

2.1.1 Get Description
.2 Get Quantity
.3 Get Cost per Item

2.2
- Calculations

item cost subtotal print increase increase print
item cost row num items message

2.2.1 Item Cost = Item Cost * Quantity
.2 Subtotal = Subtotal + Item Cost
.3 Print Item Cost
.4 Row = Row + 1
.5 Numitems = Numitems + 1
.6 Call Print Message Routine

3.1
- final
- calculations

PST GST Total

3.1.1 PST = Subtotal * pstrate
.2 GST = Subtotal * gstrate
.3 Total = Subtotal + PST + GST

3.2
- print
- summary

print print print print print print clear
underline subtotal PST GST total thank you end msg

3.2.1 Print Underline
.2 Print Subtotal
.3 Print PST
.4 Print GST
.5 Print Total
.6 Print Thank You Message
.7 Clear 999 Message