ShareShortcuts
Fazer fork de “BMI 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 arirafiq 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
54K
Salvo
3
Ações
38
Categoria
Calculations
Versão
1.1
Idioma
EN

Pré-visualização

This calculator provides body mass index (BMI) and the corresponding BMI weight status category for adults 20 years and older.

Novidades

Versão 1.1

Link fixed.

Histórico de versões
1.1 24 de mar de 2021

Link fixed.

1.0 23 de jan de 2021

First release

O que ele faz

38 ações
  1. Comment
    Author: Ari R. Abdulla Usage: - This calculator provides body mass index (BMI) and the corresponding BMI weight status category for adults 20 years and older.
  2. Choose from Menu
    Which measurement system do you want?
  3. Choose from Menu
    Standard
  4. Ask for Input
    Enter your height? (Feet)
  5. Set Variable
    Feet
  6. Ask for Input
    And inches?
  7. Set Variable
    Inches
  8. Ask for Input
    Enter your weight? (Pounds)
  9. Set Variable
    Pounds
  10. Calculate
  11. Set Variable
    Rfeet
  12. Calculate
  13. Set Variable
    Rinches
  14. Calculate
  15. Set Variable
    FIHeight
  16. Calculate
  17. Set Variable
    MFIHeight
  18. Calculate
  19. Set Variable
    SMFIHeight
  20. Calculate
  21. Set Variable
    KGWeight
  22. Calculate
  23. Round Number
  24. Set Variable
    BMII
  25. Show Alert
  26. Choose from Menu
    Metric
  27. Ask for Input
    Enter your height? (Centimeter)
  28. Set Variable
    Height
  29. Ask for Input
    Enter your weight? (Kilogram)
  30. Set Variable
    Weight
  31. Calculate
  32. Set Variable
    Hmeter
  33. Calculate
  34. Set Variable
    Hsquare
  35. Calculate
  36. Round Number
  37. Set Variable
    BMI
  38. Show Alert

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 teal
#define glyph calculator

/*
Author: Ari R. Abdulla
Usage:
- This calculator provides body mass index (BMI) and the corresponding BMI weight status category for adults 20 years and older.
*/

menu "Which measurement system do you want?" {
item "Standard":
	prompt("Enter your height? (Feet)", "Number")
	@Feet
	prompt("And inches?", "Number")
	@Inches
	prompt("Enter your weight? (Pounds)", "Number")
	@Pounds
	@Rfeet = @Feet * 30.48
	@Rinches = @Inches * 2.54
	@FIHeight = @Rfeet + @Rinches
	@MFIHeight = @FIHeight / 100
	@SMFIHeight = @MFIHeight … nil
	@KGWeight = @Pounds / 2.205
	const CalculationResult = @KGWeight / @SMFIHeight
	ceil(CalculationResult, "Tenths")
	@BMII
	confirm("Your BMI is: {@BMII}\nBMI Categories:\nUnderweight = <18.5\nNormal weight = 18.5-24.9\nOverweight = 25-29.9\nObesity = >30")
item "Metric":
	prompt("Enter your height? (Centimeter)", "Number")
	@Height
	prompt("Enter your weight? (Kilogram)", "Number")
	@Weight
	@Hmeter = @Height / 100
	@Hsquare = @Hmeter … nil
	const CalculationResult1 = @Weight / @Hsquare
	ceil(CalculationResult1, "Tenths")
	@BMI
	confirm("Your BMI is: {@BMI}\nBMI Categories:\nUnderweight = <18.5\nNormal weight = 18.5-24.9\nOverweight = 25-29.9\nObesity = >30")
}
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

Mais de arirafiq

Ver tudo

Você também pode gostar

Ver tudo
Publicidade