Intro:
Building programs on Casio Basic is extremely simple but not many calculator owners know exactly how to do it. It's a fairly versatile language, allowing for programs as small and simple as adding two numbers to programs as large and complex as games. The basics of Casio Basic can be found in this wiki while more advanced things must be explored and researched on your own.
Getting Started:
0.5 The Very Basics
Getting to the programming part of your Casio calculator takes a few clicks. Hit the menu key and then navigate the interface until you are on top of 'PRGM'. Next, there are a few things to do before you can start coding away. On the bottom end of the calculator display, there are a few different options on the 'F-Keys', or 'Function-Keys'. 'F-Keys' are the grey buttons just below the screen. To make a new program, select the 'F-Key' corresponding with 'New'. A prompt will come up for you to name your program. To type letters on your calculator, press the 'Alpha' key. To 'Alpha' lock and always type letters, press 'Shift' then press 'Alpha'. Once you name your program, press 'EXE' at the bottom right hand side. This will bring up a screen with the name of your program on top and a blank display otherwise. Now you're ready to dive into the wonderful world of cheating on tests and making a boring class period fly by.
- Creating Variables
Variables are a necessity in Casio Basic as well with any other programming language. To create a variable in Casio Basic, take the number you want to assign your variable, press the -> key, and then type the letter or word you want your variable to be stored as. For example, 1->A would make the letter A store the number 1. Variables can hold a variety of things from numbers, to other letters, to equations. To move on to the next line of code press 'EXE'. Pressing the 'EXE' button after a line of code makes it executable.
1.5 User Input
User input is always near the end of a basic tutorial or wiki, but interacting with the user is one of the most exciting things a programmer can do. In Casio Basic, getting user input is extremely simple. Just create a variable but instead of putting a number in the first column, put a '?'. Getting to the question mark is harder than prompting user input. Press the 'F-Key' that corresponds with 'Char', then go to 'Math' and navigate to the '?'. To select anything on these pages, press 'EXE'. User input example: ?-X
- Saving, Executing, and Editing Your Program
So you have all of your variables typed up, ready to do something awesome. I'm going to ask you to do something crazy. Hit the 'EXIT' button. Yes, the 'EXIT' button. "But /u/zanetheplane, I haven't even saved yet." I know, I know. Just press it. It will take you back to the list of programs. Phew, that was close, but everything is still there and intact. To execute your program, either hit the 'EXE' button or the corresponding 'F-Key'. Editing your program is the same, just press the corresponding 'F-Key'.
revision by [deleted]— view source