Ok I just been doing question 22 of the 2001 HSC and i'm trying part a) iii)
refer to attackments
Now how do I write the error checking component of this question.
This is all I’ve got so far
PS if i am wrong how do you answer this question in pseudocode
refer to attackments
Now how do I write the error checking component of this question.
This is all I’ve got so far
Its not finished but can you people tell me if this is right. Also can you tell me how to right the error-checking component for this question.my answer so far said:BEGIN UPDATE INVENTFILE
RowNumber = 1
Read STOCK(RowNumber, StkNumber, StkQuantity)
WHILE StkNumber <> “999”
Inventfile.stocknumber(stkNumber)
Inventfile.QuantityAvail = Inventfile.QuantityAvail + StkQuantity
RowNumber = RowNumber + 1
Read STOCK(RowNumber, StkNumber, StkQuantity)
ENDWHILE
END UPDATE INVENTFILE
BEGIN STOCK(RowNumber, StkNumber, StkQuantity)
StkNumber = Transfile.stknumber(RowNumber)END STOCK
StkQuantity = Transfile.stknumber(RowNumber)
PS if i am wrong how do you answer this question in pseudocode