ShareShortcuts

Calc LS Weights

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

danhill1987
Dupliquer « Calc LS Weights »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que danhill1987 soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
67K
Enregistré
0
Actions
52
Catégorie
Utilities
Version
1.1
Langue
EN

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

Nouveautés

Version 1.1

Updated Title

Historique des versions
1.1 25 juil. 2019

Updated Title

1.0 25 juil. 2019

First release

Ce qu’il fait

52 actions
  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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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")
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Ça pourrait aussi te plaire

Tout afficher
Publicité