The programming of this calculator are done with a standard text file, named "Defaults.key", which KC's Calculator automatically reads when opened. Using the "Open File" function can open need *.key file with pre-programmed functions.
The display shows the current active memory number and its value, and the standard calculator display (the result of the last calculation or series of keystrokes, known bellow as "X").
The format of the .key files is simple. Brackets "[ ]" indicate a key-press.
In the sample below, the text file "Default.key" contains:
A: [M?] 2 [MC] [M+]
B: [*] [M1] [=]
C: M3 = X
D: [+] [M1] [=] [M?] [4] M4 = X
M1 = 3.1416
A: [M?] 2 [MC] [M+]
|
Programs button 'A' to set the active memory to memory #2, clears it, then add X (the value in the display) to it. |
B: [*] [M1] [=]
|
Programs button 'B' to take X, multiply it by the value stored in Memory #1 (regardless of which memory is active), and displays the result. |
C: M3 = X
|
Shows a second way to put a number into memory . . . a simple declarative statement. Button 'C' is programmed to put the value shown in the display into memory #3 regardless of the the active memory. |
D: [+] [M1] [=]
[M?] [4] M4 = X
|
Takes X, adds Memory #1 to it, displays the result (now X = X + M1), activates Memory #4, and sets Memory #4 to X. |
M1 = 3.1416
|
Pre-loads the value '3.1416' into Memory #1. |
California sales tax is 7.25%. Let's assume that we want to program KC's Calculator to figure sales tax on a purchase.
Type a text file with the following commands and save it as "Tax.key":
A: M9 = .0725 M1 = X [*] [M9] [=] M2 = X [+] [M?] 1 [MR] [=] M3 = X
B: [M?] 1 [MR]
C: [M?] 2 [MR]
D: [M?] 3 [MR]
A: M9 = .0725
M1 = X
M2 = X * M9
M3 = X + M2
|
Sets Memory #9 to .0725 — the sales tax value;
Puts X (the sales amount, which you type on keyboard) into Memory #1;
Puts the tax sum (X * M9) in Memory *2;
adds the total and tax sums and puts that number in Memory #3 |
B: X = M1
|
Displays the contents of Memory #1 (the sales amt.) |
C: X = M2
|
Displays the contents of Memory #2 (the sales tax) |
D: X = M3
|
Displays the contents of Memory #3 (the sales amt. plus the tax) |
Double-click on KC's calculator and then open "Tax.key".
Type on keyboard need sum, like on a regular calculator.
Press [=] to display the total.
Press [A]. This calculates the tax and stores the results.
Press [B]. The amount is shown in the display
Press [C]. The sales tax is shown in the display
Press [D]. The total of the amount plus the sales tax is shown in the display