0478 23 M J 19 Answers

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

0478/23/M/J/19

2a)
- Count  1 should be Count  0
- Reject  Reject – 1 should be Reject  Reject +1
- AND should be OR
- Reject  Reject/100 should be Reject  Reject/5
2b)
- Accept  0
- Else
Accept  Accept + 1
- Accept  Accept/5
- If Accept < 50 Then Print “Less than 50% accepted”
3)

TreadReject Count Depth Output


0 1
2 1.7
3 1.9
1 4 1.4
5 1.8
6 2.0
Car is potentially
roadworthy

TreadReject Count Depth Output


0 1
1 2 1.2
3 1.9
2 4 1.4
5 1.8
6 2.4
Car is not roadworthy

4)

Statements Validation Verification


Range /
Double entry /
Check digit /
Presence check /
5)
- For…next, set number of repetitions
- While...Endwhile, only executed if conditions are met
- Repeat...Until, conditions are tested at the end after loop has been executed
6a) number is not unique
6b) Train number is not displayed, departure time before 08:30, Late trains will be shown

Train Number Platform Departure Time Status


TRAIN TRAIN TRAIN TRAIN

/ /
>08:30 =”Late”

You might also like