ShareShortcuts

Jelly Beans In Jar Calculator

This calculates the amount of jellybeans in a can shape jar

randomshortcuts
Bifurcar “Jelly Beans In Jar Calculator”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que randomshortcuts reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
52K
Guardado
1
Acciones
14
Categoría
API
Versión
1.0
Idioma
EN

This calculates the amount of jellybeans in a can shape jar

Novedades

Versión 1.0

First release

Historial de versiones
1.0 11 de abr. de 2021

First release

Qué hace

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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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")
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

También te puede gustar

Ver todo
Publicidad