home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 3 / Developers_Source_Vol_03_1996.iso / sdevl / oct95 / coadf105.gif < prev    next >
Graphics Interchange Format  |  1996-02-25  |  98KB  |  676x340  |  8-bit (183 colors)
Labels: text | screenshot | font | number
OCR: Figure 5. "Sale Calculates Its Total" Scenario View (Round II) Sale SaleLineltem Item Scenario: Sale Calculates its Total calcTotal calcSubtotal howMuchForQty Scenario Constraint: calcSubtotal getPriceForDate 0.1 seconds, 9 out of 10 times, 0.5 seconds max. calcTax calcTotal sale.calcTotal ( ; total) calcSubtotal sale.calcSubtotal ( ; subtotal) n -- > calcSubtotal sale.Lineltem.calcSubtotal ( ; subtotal); `howMuchForQty item.howMuchForQty (qty, date ; amt) getPriceForDate item.getPriceForDate (date ; price) [calcTotal] calellax sale.calcTax ( ; totalTax)