by @Brayan Villada Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_5b664291_2131_45fc_84b5_517aa74367c9"},{"@type":"Declare","tpe":"Integer","name":"camionesdespachados","id":"id_ffb666af_a626_49fb_b7a9_4141db923c5a","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"maxcamiones","id":"id_e8064301_053e_44cf_bb00_45b4756e357d","initValue":"20"},{"@type":"Declare","tpe":"Integer","name":"capacidadcamion","id":"id_70c33e4c_15aa_4380_aa10_0b2cbd0e08b1","initValue":null},{"@type":"Declare","tpe":"Integer","name":"pesosaca","id":"id_acfb5b89_06a6_4fb7_9eb0_8b4292d35a5a","initValue":null},{"newline":true,"@type":"Output","id":"id_3dea34de_b7f7_472d_851b_450029e926d0","value":"\"Gestión de Carga de Camiones\""},{"condition":"camionesdespachados<=maxcamiones","@type":"While","id":"id_633bd2c1_b401_4bc4_80a9_4b7bb3cbb973","body":{"statements":[{"condition":"true","@type":"While","id":"id_160a24da_4c61_49b2_a42b_da4711517229","body":{"statements":[{"@type":"Input","name":"capacidadcamion","id":"id_e3341800_e412_46e9_bc81_d993021a392d","prompt":"\"ingrese la capacidad del camion\""},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_0559a80e_7229_4751_8cf7_4029b718ea3b","value":"La capacidad debe estar entre 18,000 y 28,000 kg"}],"id":"id_bcb8459e_e9f1_46de_9ec4_f1499c3f1c45"},"trueBlock":{"statements":[],"id":"id_3f62a0b2_ad08_4e5d_9dd6_b4d496d5be62"},"condition":"18000<=capacidadcamion<=28000","@type":"If","id":"id_b6aa064a_759d_48e2_900b_c0e514072d1e"}],"id":"id_f5ba8f9b_9364_4782_ab95_cbe8ab31d117"}}],"id":"id_952660a3_805b_4f69_bfa0_0e69ced03432"}},{"@type":"Declare","tpe":"Integer","name":"pesoacumulado","id":"id_4ba0a437_480e_4f4c_a0f0_aac7f171d6f7","initValue":"0"},{"condition":"true","@type":"While","id":"id_9e45579e_62f3_4618_9cc0_59e613ed116e","body":{"statements":[{"@type":"Input","name":"pesosaca","id":"id_4310e996_67d4_4129_b52e_9fc8e300a3b2","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_69612980_fb16_4539_968d_d6990ca912cf","value":"\"El peso de la saca debe estar entre 3,000 y 9,000 kg\""}],"id":"id_fbfd8803_1a57_4e96_b046_88ea2c8d234b"},"trueBlock":{"statements":[],"id":"id_f857e3ec_6fcb_41ea_830a_57d99e67a237"},"condition":"3000<=pesosaca<=9000","@type":"If","id":"id_3f6df9b6_1a49_41b7_baf4_2701598f306d"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_c157f206_0a9d_4692_b3e2_f591cfe73c03","value":"\"La saca de {peso_saca} kg excede la capacidad del camión\""},{"newline":true,"@type":"Output","id":"id_981c04b9_74de_4d4a_9b99_00b369f3c2f3","value":"\"Camión #{camiones_despachados + 1} despachado con {peso_acumulado} kg\""},{"@type":"Assign","name":"camionesdespachados","id":"id_eb01cef1_de4f_490d_beba_90a13ff786d4","value":"camionesdespachados+1"}],"id":"id_76347726_5cb9_4f91_9bc8_027c06e014ac"},"trueBlock":{"statements":[{"@type":"Assign","name":"pesoacumulado","id":"id_f1e40cf8_5f70_47cf_b7d6_02d86488a159","value":"pesoacumulado+pesosaca"},{"newline":true,"@type":"Output","id":"id_3f641dab_27dc_44a6_bca6_40b62b25505b","value":"\"Saca de {peso_saca} kg cargada. Peso acumulado en el camión: {peso_acumulado} kg\""}],"id":"id_a104d23d_8a48_4ea8_881f_e31383991abd"},"condition":"pesoacumulado+pesosaca<=capacidadcamion","@type":"If","id":"id_58c1171d_bad7_4365_aa4c_d841587a8f30"}],"id":"id_50a53ab7_5ca9_475c_84ee_3a44aac12463"}},{"newline":true,"@type":"Output","id":"id_0fa75cc4_2f38_461c_9c05_d1b887b559f9","value":"\"Resumen del dia\""},{"newline":true,"@type":"Output","id":"id_42dd9f50_a158_42f8_b62e_f0685826720b","value":"\"Se despacharon {camiones_despachados} camiones\""},{"@type":"Return","id":"id_ada7f920_2bd6_45ce_8746_2aabbc349475","maybeValue":null}],"parameters":[]},"id":"id_ffa299da_7e47_429f_bc69_a5955cfac405","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":941}