| fx-7400G Programming Tutorial #1 By Jinjo Who said programming was hard? Firstly, this isn't really hard. I picked this up from reading other peoples programs and altering them. For this reason I won't be providing any in-depth definitions on commands. Although, the basic idea of their purpose will remain the same. I suggest playing around a bit with commands before reading on. Graphics Calculators The CASIO fx-7400G is outdated and updated through later models. There is one primary advantage of using an fx-7400G in oppose to newer graphics calculators; speed. Although the 9800GB and Hewlett Packard 39G are much updated in language, these calculators can have painful loading times when in exam situations or just general usage. The 9800GB PLUS and fx7400G PLUS do have some advantages. You cannot preform the classic menouver: pourage of glue into reset button and writage of lbl 0 while 0 goto 0. Bugs such as these have been fixed and will no longer work. Anyway, back to programming. Values and Output To me, the basis of compiling a program that you are able to interact with is the assignment of numeric values to alphabetic characters. What i mean by this is that if the program asks you for X and Y, the user enters the value then the program would be able to incorperate these values into a rule. Example: Simple addition and subtraction- X - Y -> Z X + Y -> Z Note: by -> i mean the arrow below the 'tan' button. In these cases Z is the output. To display the value of Z we would press SHIFT, VARS, >,F2. i will call this output but is usually displayed as _ in text sources So how do we ask the user of the program for the value? Simple... SHIFT, ALPHA [red letters above keys display when pressed now. To get back just press SHIFT twice.. whilst in Alpha lock press F2 to enter " "QUESTION"?->A "YOU HAVE JUST ENTERED" A_ "QUESTION"?->B "YOU HAVE JUST ENTERED" B_ "THE SUM OF A AND B IS" A+B->C C_ BASIC COMMANDS Here i will explain the basic commands that aren't self explanitory and try to write them into a short program that is easy to understand. Lbl [SHIFT, VARS,F3,F1] Lbl followed by an alphanumeric character will set a point in your program to return or jump to. Goto [SHIFT, VARS, F3, F2] Goto will jump to the set point marked in your program by using the Lbl command. => [SHIFT,VARS, F3,F3] => is the result of something equal to. To get a better idea read the program below. PROG "TEST" Lbl 0 "DO YOU LIKE CHEESE AND CHICKEN 1-YES 2-NO"?->A [1 or 2 will be assigned to A] "YOUT CHOISE IS:"_ A=1=>Goto 1 A=2=>Goto 2 Lbl 1 "CHEESE AND CHICKEN"_ Goto 0 Lbl 2 "NO I LIKE CHIPS AND DIP" Goto 0 This program will ask you if you like cheese and chicken and respond to both answers. With this you can make simple text games and even plot points. Eg. Plot A,B See section #2 for details on plotting |