










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Scenario
A car hire firm recently installed a terminal which is used to record the dates when cars are hired out and returned. When a car is taken out the reg. no. is keyed in prefixed by ‘[‘ and the date (no. of days since system commissioning) is automatically entered. For returns, no. is keyed in with a ‘]’ and date added.
BEGIN Initialise #contracts, total days = 0 Get 1st transaction WHILE not end of transactions DO IF car taken out THEN Inc #contracts total days = total days - taken out date ELSE total days = total days + return date Get next transaction Display #contracts IF #contracts <> 0 Display total days/#contracts END
A
A1 A2 A
“The brilliant top-down developer is one who completes the development in his mind’s eye before committing himself to writing down even the top level of decomposition. Where developers are merely skilled and competent…the consequences of their early decisions emerge only at the end of the project: hence the appealing suggestion that it could all be done properly the second time around”