Five from:
MP1 Enter number of slabs to purchase with prompt
MP2 Check if less than 20 or greater than 100 ?
MP3 ? if so, reject the number and re-enter a value
MP4 Attempt to round the number of slabs to the next 20 ?
MP5 Accurate attempt to round up to the next 20
MP6 Calculate the number of batches
MP7 Calculate price to pay (number of batches × price per batch from
Task 1)
MP8 Display price and number of slabs produced ?
MP9 ? Suitable output message(s)
Sample answer
REPEAT
PRINT "Enter Number of slabs to purchase"
INPUT Number
UNTIL Number >= 20 and Number <= 100
PurchaseNo ? Number
IF Number > 20 AND Number <= 40 THEN PurchaseNo ? 40 ENDIF
IF Number > 40 AND Number <= 60 THEN PurchaseNo ? 60 ENDIF
IF Number > 60 AND Number <= 80 THEN PurchaseNo ? 80 ENDIF
IF Number > 80 THEN PurchaseNo ? 100 ENDIF
BatchNo ? PurchaseNo / 20
PriceToPay ? BatchNo * BatchPrice //BatchPrice calculated
in Task 1
PRINT "Price for ", PurchaseNo, " Slabs is $", PriceToPay