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

Screen Shot 2021-02-02 at 1.24.26 PM.png

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.

Screen Shot 2021-02-02 at 1.19.10 PM.png

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

How to script a Surface area of a sphere calc 4K

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...

9067B54D-D81E-42F5-B847-96D2F9E40964.png

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.