ShareShortcuts
„BMI 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 arirafiq 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
54K
Gesichert
3
Aktionen
38
Kategorie
Calculations
Version
1.1
Sprache
EN

Vorschau

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

Neue Funktionen

Version 1.1

Link fixed.

Versionsverlauf
1.1 24. Mär 2021

Link fixed.

1.0 23. Jan 2021

First release

Was er macht

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

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 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")
}
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

Mehr von arirafiq

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung