Working with Files

A programming language has the built-in function CONCAT defined as follows:






A country has a number of banks. There are cash dispensers all over the country. Each bank is responsible for a number of dispensers.

• banks have a three digit code in the range 001 – 999
• each dispenser has a five digit code in the range 00001 – 99999

A text file, DISPENSERS, is to be created.

It has one line of text for each dispenser. For example: 00342?007.

This line in the file is the data for dispenser 00342 which belongs to bank 007.


Incomplete pseudocode follows for the creation of the file DISPENSERS.







Out of / 24 marks

Your Work
You are not logged in! You can answer but you cannot save your work.    SIGN UP   SIGN IN
Times Taken 0  

RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
RadEditor's components - toolbar, content area, modes and modules
Toolbar's wrapper 
Content area wrapper
RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.
It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
Editor Mode buttonsStatistics moduleEditor resizer
RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.
Spin UpSpin Down