ShareShortcuts

Calc LS Weights

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

danhill1987
Fazer fork de “Calc LS Weights”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que danhill1987 receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
67K
Salvo
0
Ações
52
Categoria
Utilities
Versão
1.1
Idioma
EN

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

Novidades

Versão 1.1

Updated Title

Histórico de versões
1.1 25 de jul de 2019

Updated Title

1.0 25 de jul de 2019

First release

O que ele faz

52 ações
  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

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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")
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Você também pode gostar

Ver tudo
Publicidade