ShareShortcuts

Jelly Beans In Jar Calculator

This calculates the amount of jellybeans in a can shape jar

randomshortcuts
„Jelly Beans In Jar Calculator“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit randomshortcuts die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
52K
Gesichert
1
Aktionen
14
Kategorie
API
Version
1.0
Sprache
EN

This calculates the amount of jellybeans in a can shape jar

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 11. Apr 2021

First release

Was er macht

14 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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")
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung