Jelly Beans In Jar Calculator
This calculates the amount of jellybeans in a can shape jar
randomshortcutsScan med din iPhone for at installere
This calculates the amount of jellybeans in a can shape jar
Nyheder
Version 1.0
First release
Hvad den gør
14 handlinger-
Show Alert
-
Ask for InputWhat is the diameter of the jar?
-
Ask for InputWhat is the height of the jellybeans in the jar?
-
Calculate
-
Calculate
-
Calculate
-
Calculate
-
Calculate
-
Calculate
-
Calculate
-
Round Number
-
Calculate
-
Calculate
-
Show AlertJelly beans in jar
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/math'
#define color darkblue
#define glyph magicWand
confirm("This is the jellybean in a jar calculator!")
const ProvidedInput = prompt("What is the diameter of the jar?", "Number")
const ProvidedInput1 = prompt("What is the height of the jellybeans in the jar?", "Number")
const CalculationResult = ProvidedInput / 2
const CalculationResult1 = CalculationResult * CalculationResult
const CalculationResult2 = CalculationResult1 * ProvidedInput1
const CalculationResult3 = CalculationResult2 * 3.1416
const CalculationResult4 = CalculationResult3 * .21875
const CalculationResult5 = CalculationResult4 - CalculationResult3
const CalculationResult6 = CalculationResult5 / .06544986910006544
const RoundedNumber = round(CalculationResult6)
const CalculationResult7 = RoundedNumber - RoundedNumber
alert("There is about {} jelly beans in the jar!", "Jelly beans in jar")
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Du vil måske også kunne lide
Annonce