ShareShortcuts

Jelly Beans In Jar Calculator

This calculates the amount of jellybeans in a can shape jar

randomshortcuts
Fork “Jelly Beans In Jar Calculator”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så randomshortcuts får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
52K
Gemt
1
Handlinger
14
Kategori
API
Version
1.0
Sprog
EN

This calculates the amount of jellybeans in a can shape jar

Nyheder

Version 1.0

First release

Versionshistorik
1.0 11. apr. 2021

First release

Hvad den gør

14 handlinger
  1. Show Alert
  2. Ask for Input
    What is the diameter of the jar?
  3. Ask for Input
    What is the height of the jellybeans in the jar?
  4. Calculate
  5. Calculate
  6. Calculate
  7. Calculate
  8. Calculate
  9. Calculate
  10. Calculate
  11. Round Number
  12. Calculate
  13. Calculate
  14. Show Alert
    Jelly beans in jar

Vis som kode
Beta

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

Se alle
Annonce