Six from:
MP1 Input for height and width of the wall to tile and tile code
MP2 Prompts for all inputs seen
MP3 Validation of height and width
MP4 Reasonable attempt at validation of tile code
MP5 Calculation of the area of the wall
MP6 Calculation of the number of boxes rounded up
MP7 Looking up the cost of the tiles
MP8 Calculation of the cost of the boxes of the tiles
MP9 Output of area of the wall, the number of boxes and cost of tiles
needed
MP10 Appropriate message(s) with output
Example algorithm
REPEAT
OUTPUT "Please enter height of wall "
INPUT Height
UNTIL Height > 0
REPEAT
OUTPUT "Please enter width of wall "
INPUT Width
UNTIL Width > 0
REPEAT
Found ← FALSE
Counter ← 0
REPEAT
OUTPUT "Please enter tile identification code "
INPUT MyTileId
IF MyTileId = TileCode(Counter)
THEN
MyCost ← TilePrice(Counter)
Found ← TRUE
ENDIF
Counter ← Counter + 1
UNTIL Found OR Counter = 10
UNTIL Found
Area ← Height * Width
NoBoxes ← Int(Round (Area + 0.5))
// Rounds up to nearest Integer
TotalPrice ← NoBoxes * MyCost
OUTPUT ("Area of wall is ", Area, " metres")
OUTPUT ("Number of boxes of tiles is ", Area, " NoBoxes)
OUTPUT ("Cost of Tiles is ", TotalPrice, " dollars"