18.10.2014 Views

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A Text user <strong>in</strong>terface 327<br />

• What is a call-back function and how is it used?<br />

• How might the reversi program shown <strong>in</strong> Chapter 8 be modified so that it can be used with the TUI<br />

<strong>in</strong>terface? To what extent is code re-use possible from the orig<strong>in</strong>al version?<br />

22.7 Exercises<br />

Construct the follow<strong>in</strong>g programs:<br />

• Currency converter<br />

A program to allow a user to convert between two currencies. The program should allow the <strong>in</strong>put of the<br />

current currency rate.<br />

• Reversi program<br />

Re-implement the reversi program to use the TUI <strong>in</strong>terface or any graphical <strong>in</strong>terface that is available.<br />

• Draughts program<br />

Implement the game of draughts to use the TUI <strong>in</strong>terface or any graphical <strong>in</strong>terface that is available.<br />

© M A Smith - May not be reproduced without permission

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!