ShareShortcuts

Jelly Beans In Jar Calculator

This calculates the amount of jellybeans in a can shape jar

randomshortcuts
Fazer fork de “Jelly Beans In Jar Calculator”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que randomshortcuts receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
52K
Salvo
1
Ações
14
Categoria
API
Versão
1.0
Idioma
EN

This calculates the amount of jellybeans in a can shape jar

Novidades

Versão 1.0

First release

Histórico de versões
1.0 11 de abr de 2021

First release

O que ele faz

14 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Você também pode gostar

Ver tudo
Publicidade