ElliSoft
Menu
  • Home
  • Retro Computing
  • Micro Fiction
  • Flash Fiction
  • Geocaching
  • Geocache Stats
  • Genealogy
Menu

I’m going to be rich, rich I tell you!

Posted on 29 August 2024 by Jon

More an exercise in getting the mechanisms right for creating, loading and appending SEQ files in CBM Basic than the foolproof get rich program I secretly think it is, but you never know….

For some reason SEQ files always give me problems and it’s usually because I forget to use the correct flags, especially ‘a’ for appending. Leaving the ‘a’ out on creation, remembering the ‘w’ and ‘r’ for write and read. Basic (no pun intended) stuff I know, but I code fairly infrequently these days and always have to remind myself of the unforgiving syntax.

Anyway, lets get rich.

Option 1 just creates a new data file to disk.

And then moves on to the lottery results input screen. I’m not really sure how much data will fit on a file yet, so I’m guessing at around 2 months of past results can be created without too much problem. I’ll then as a phase 2 work out how to merge all past months data together when predicting. For now I am just going to enter July and August 2024’s results to date.

And so on for all the weekly results.

Option 2 in the main menu adds to an existing file, so I tested this a few times by stopping my input and returning to the file to add a few more lines.

And I added an option 4 to give me confidence the numbers were being input and stored correctly.

So a small set of data really. Still, that shouldn’t stop the prediction from being 100% accurate….

As simple as that. All I have to do now is work out what to spend my money on.

Anyway, there we have it. A bit of fun but that won’t stop me inputting the whole of 2024’s past results and beyond with a ridiculous optimism.

I’ll tidy it up a bit and create a 2024 data file then put both up here for people to mess around with.

That’s if I haven’t moved to Monaco of course…..

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on X (Opens in new window)
  • Click to share on Mastodon (Opens in new window)
  • Click to share on Bluesky (Opens in new window)
Category: CBM Basic, Retro Computing

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • October 2024
  • August 2024
  • June 2024
  • June 2023
  • April 2023
  • Does Every Family Have One?
  • I’m going to be rich, rich I tell you!
  • All Around The Wold
  • Advent of Code 2023 Day 1
  • Advent of Code Prep – 2023
Goodreads: Book reviews, recommendations, and discussion

Jon's books

Men Without Women
liked it
Men Without Women
by Haruki Murakami
Prophet Song
it was ok
Prophet Song
by Paul Lynch
This is the first Booker winner I couldn’t get on with. The writing style annoyed me. I found it a hard slog to get through which isn’t what I generally look for in a book. Anyway, not for me, and if we all liked the same books what a bo...
Three Men in a Boat
Three Men in a Boat
by Jerome K. Jerome
Naked Lunch
Naked Lunch
by William S. Burroughs
Three at the Angel
Three at the Angel
by Maurice Procter

goodreads.com
Follow me on Mastodon
Mastodon
© 2024 ElliSoft | Powered by Minimalist Blog WordPress Theme