How to Script a Surface Area of a Sphere Calculator
by build it code it use it in Circuits > Computers
1218 Views, 7 Favorites, 0 Comments
How to Script a Surface Area of a Sphere Calculator
Hello, and welcome to my very first instructable. I appologize if the video takes long to download or if it is low resolution. Also please do not point out any spelling mistakes.
Anyway I hope this calculator helps.
Supplies
any apple devise (large screen and keyboard/mouse really helps).
Open Any Scripting Platform That Supports Lua.
In the code you have to follow Exactly what I did or else it will work. YOU DO NOT have to add the comments to what I did, If you want to add notes you have to type a -- before everything or else your computer will think it is a code.
You will need to go to any scripting platform that supports LUA code https://repl.it.
Follow the Video's Instructions
If the video is low definition then then the image should help. If your code does not look like this (without the little messages) then It will not work (not really I am sure there are other ways to make this calculator).
Key Words...
key words (color words)
local function: a function which makes a variable work.
local: a variable which you can give a value and interact with other variables, for instance x+y
*: the star is just multiplication
/: division
print "' : a code that writes a message
print () :a code that writes the value of something
Again thank for reading/watching my first instructable.