ShareShortcuts
Bifurcar “BMI 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 arirafiq 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
54K
Guardado
3
Acciones
38
Categoría
Calculations
Versión
1.1
Idioma
EN

Vista previa

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

Novedades

Versión 1.1

Link fixed.

Historial de versiones
1.1 24 de mar. de 2021

Link fixed.

1.0 23 de ene. de 2021

First release

Qué hace

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

Más de arirafiq

Ver todo

También te puede gustar

Ver todo
Publicidad