12.07.2015 Views

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>101</strong> Random Bar GraphIf you don't have any particular data to display, butwould like to see how these bar graphs work, try thisprogram.It uses a random number generator in line 400 toprovide data.Program Listing10 RAND20 LET X$=""30 PRINT TAB 9;"PROFITS"40 PRINT AT 3,j;"l978 ";50 GOSUB 40060 PRINT AT 5,j;•1979 ";70 GOSUB 40080 PRINT AT 7,j;"l980 ";90 GOSUB 400100 STOP400 FOR L=l TO INT(27*RND)410 LET X$=X$+CHR$ 128420 NEXT L430 PRINT X$440 LET X$=• 11450 RETURN117

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

Saved successfully!

Ooh no, something went wrong!