Calc LS Weights
Use to calculate the weight distribution in the holds for a 737-800 on Jet2
danhill1987Scanne avec ton iPhone pour installer
Use to calculate the weight distribution in the holds for a 737-800 on Jet2
Nouveautés
Version 1.1
Updated Title
Ce qu’il fait
52 actions-
Ask for InputNumber of bags?
-
Add to Variable
-
Ask for InputTotal Bag Weight?
-
Set VariableWght
-
List
-
Choose from List
-
If
-
Ask for InputPieces in H1?
-
Set VariableH1Pcs
-
Calculate
-
Set VariablePcs
-
Ask for InputWeight in H1?
-
Set VariableH1Weight
-
Calculate
-
Set VariableWght
-
If
-
Number
-
Set VariableH1Weight
-
List
-
Choose from List
-
If
-
Ask for InputPieces in H4?
-
Set VariableH4Pcs
-
Calculate
-
Set VariablePcs
-
Ask for InputWeight in H4?
-
Set VariableH4Weight
-
Calculate
-
Set VariableWght
-
If
-
Number
-
Set VariableH4Weight
-
Calculate
-
Set VariableWghtPerPc
-
Calculate
-
Round Number
-
Set VariableH2Pcs
-
Round Number
-
Set VariableH3Pcs
-
Calculate
-
Round Number
-
Set VariableH2Wght
-
Calculate
-
Round Number
-
Set VariableH3Wght
-
Calculate
-
Calculate
-
Set VariableTtlPcs
-
Calculate
-
Calculate
-
Set VariableTtlWght
-
Show Alert
Afficher en tant que code
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
Publicité