ZX 81 - BASIC Programming

Sinclair ZX Spectrum
Chapter 24.2 - Counting on your fingers

Exercises

1. The Martian unit of currency is the pound, & it is divided into sixteen ounces. How would you convert from pounds & ounces to ounces & back again

    (i) when all the numbers are written in decimal?

    (ii) when all the numbers are written in hex?

2. How would you convert between decimal & hex? (Hint: exercise 1.)

When programs on the ZX81 to convert numerical values into the strings giving their hex representation, & vice versa.

(This is what STR$ & VAL do with decimal representations.)

3. Suppose people from Venus have a total of eight fingers, without thumbs, how would their octal (base eight) counting be useful with computers?

Sinclair ZX Spectrum

  Previous Page Back Next Page