Skip to content

FirstCalc Notes

Trebek edited this page Aug 17, 2013 · 1 revision

Table of Contents



Description


As the name implies, this was my first attempt at writing a little calculator program. It only add, subtracts, multiplies, and divides, and only 2 numbers at a time, but cut me some slack. Was not only the first calculator I tried to program, but also my first program in LUA at all.



Features


  • Does very simple, two number, one operator equations. (eg. 1+1, 64-16, 128*2, 8/2)
    • Can add, subtract, multiply, or divide two numbers. Holy cow!
    • Can store the sum of the equation into 'memory' (But you still can't do anything with it).
  • Menu selections can be made by typing the menu number, or the word (eg. 1 or add to select addition, 2 or subtract to select subtraction, etc.)


Changelog


0.2.1

  • Uploaded program to GitHub.


To-do list


  • Finish the 'memory' function.
    • Allow user to save the sum of their equation to memory.
      • Allow user to use sums in memory in equations.
  • Expand on math operations.
    • Add a percentage calculator.
  • Would ultimately like to figure out how to let the use input relatively simple equations, of any length.
    • Need to figure out how to divide users input equation into chunks.
Clone this wiki locally