ShareShortcuts

Calc LS Weights

Use to calculate the weight distribution in the holds for a 737-800 on Jet2

danhill1987
„Calc LS Weights“ 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 danhill1987 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
67K
Gesichert
0
Aktionen
52
Kategorie
Utilities
Version
1.1
Sprache
EN

Use to calculate the weight distribution in the holds for a 737-800 on Jet2

Neue Funktionen

Version 1.1

Updated Title

Versionsverlauf
1.1 25. Jul 2019

Updated Title

1.0 25. Jul 2019

First release

Was er macht

52 Aktionen
  1. Ask for Input
    Number of bags?
  2. Add to Variable
  3. Ask for Input
    Total Bag Weight?
  4. Set Variable
    Wght
  5. List
  6. Choose from List
  7. If
  8. Ask for Input
    Pieces in H1?
  9. Set Variable
    H1Pcs
  10. Calculate
  11. Set Variable
    Pcs
  12. Ask for Input
    Weight in H1?
  13. Set Variable
    H1Weight
  14. Calculate
  15. Set Variable
    Wght
  16. If
  17. Number
  18. Set Variable
    H1Weight
  19. List
  20. Choose from List
  21. If
  22. Ask for Input
    Pieces in H4?
  23. Set Variable
    H4Pcs
  24. Calculate
  25. Set Variable
    Pcs
  26. Ask for Input
    Weight in H4?
  27. Set Variable
    H4Weight
  28. Calculate
  29. Set Variable
    Wght
  30. If
  31. Number
  32. Set Variable
    H4Weight
  33. Calculate
  34. Set Variable
    WghtPerPc
  35. Calculate
  36. Round Number
  37. Set Variable
    H2Pcs
  38. Round Number
  39. Set Variable
    H3Pcs
  40. Calculate
  41. Round Number
  42. Set Variable
    H2Wght
  43. Calculate
  44. Round Number
  45. Set Variable
    H3Wght
  46. Calculate
  47. Calculate
  48. Set Variable
    TtlPcs
  49. Calculate
  50. Calculate
  51. Set Variable
    TtlWght
  52. 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 red
#define glyph airplane

prompt("Number of bags?", "Number")
@Pcs
prompt("Total Bag Weight?", "Number")
@Wght
const List = list("Yes", "No")
const SelectedItem = chooseFromList(List, "Anything in H1?")

if SelectedItem == "Yes" {
	prompt("Pieces in H1?", "Number")
	@H1Pcs
	@Pcs = @Pcs - @H1Pcs
	prompt("Weight in H1?", "Number")
	@H1Weight
	@Wght = @Wght - @H1Weight
} else {
	@H1Weight = 0
}
const List1 = list("Yes", "No")
const SelectedItem1 = chooseFromList(List1, "Anything in H4?")

if SelectedItem1 == "Yes" {
	prompt("Pieces in H4?", "Number")
	@H4Pcs
	@Pcs = @Pcs - @H4Pcs
	prompt("Weight in H4?", "Number")
	@H4Weight
	@Wght = @Wght - @H4Weight
} else {
	@H4Weight = 0
}
@WghtPerPc = @Wght / @Pcs
const CalculationResult = @Pcs / 2
round(CalculationResult)
@H2Pcs
round(CalculationResult)
@H3Pcs
const CalculationResult1 = @WghtPerPc * @H2Pcs
round(CalculationResult1)
@H2Wght
const CalculationResult2 = @WghtPerPc * @H3Pcs
round(CalculationResult2)
@H3Wght
const CalculationResult3 = @Pcs + @H1Pcs
@TtlPcs = CalculationResult3 + @H4Pcs
const CalculationResult4 = @Wght + @H1Weight
@TtlWght = CalculationResult4 + @H4Weight
confirm("\nB{@TtlPcs}/{@TtlWght}\nH1: {@H1Weight}kgs\nH2: {@H2Wght}kgs\nH3: {@H3Wght}kgs\nH4: {@H4Weight}kgs")
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

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung