• Pages

  • PAWSoftware News

  • Library programs

    The MatrixEncode and MatrixDecode programs are programs in their own right and do not need to be merged with anything. They are used in the book to demonstrate coding and decoding.

    NIM is a number game involving maintaining parity in binary notation to make sure you always win.
    It also provides an exercise in removing GOTO commands and thereby improving the structure.

    Bearings is a simple sink a ship program by giving a bearing on which to fire a torpedo. It was originally designed for instruction in trigonometry but is included here because it gives some simple use of graphics.

    BigSums See separate document called BigSums
    Calculates and prints to 60 decimal places by default – but this can be changed to whatever.
    Enter numbers up to 255 digits long.
    The program itself is mathematically very complicated so it is not developed from scratch – but it IS used (installed) in several of the programs in the BBC Basic book.

    Snowfall is a simple scene of snowfall which slowly settles. Involves constantly changing the logical colours.

    GraphPlot draws both Cartesian and Polar curves.

     

    Zoom and Shade facility.
    Once again, it is mathematically difficult so is not developed from scratch.
    It can, however, easily be used in solving simultaneous equations or in linear programming.
    Uses ON ERROR LOCAL to avoid the Basic stack being erased.
    See GraphPlot Manual document (page 6 for ON ERROR LOCAL). 
    Can choose colour for curve and shading

     

    BioRhythms Prints out your Mental, Emotional and Physical graph for a given month.
    Demonstrates buttons for (in this case) getting a hardcopy of the screen or exiting the program.
    Also puts the print dialogue box to screen allowing a printer to be selected.

    A selection of 5 sort algorithms Those with “A” at the end sort text and those with “N” at the end sort numbers. They can be “inserted” or “installed” into your program. All variables are local so they will not affect any of yours.

    FNinputL Allows editing (backspace deleting) of any size or font during an input from the keyboard. It is used in the Morse program by installing it. A very similar technique is used in PROCinput in the program “Resistors”, but here the input is restricted to valid resistor codes so FNinputL could not be used.

    PrintSpokenNumber and SpeakNumber Prints a very large number as it would be spoken.