by @Sophia Reyes Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_dd3f1c54_028b_413b_93f9_d93f191c8c22"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"distanciaIda","lengthValue2":"5","id":"id_20b48162_e977_4ae1_a738_f57bf84e924b","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"rendimiento","lengthValue2":"5","id":"id_88e413e0_4328_443c_b765_8a9f402a47a9","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"litrosTanque","lengthValue2":"5","id":"id_431514f6_709a_4968_8318_87e00a02c48f","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precioLitro","lengthValue2":"5","id":"id_7d805b32_d086_43d9_a34e_2bad9310d036","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"distanciaTotal","lengthValue2":"5","id":"id_2d6b1898_bcad_410c_b4cd_48c6e3c09aa0","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"litrosNecesarios","lengthValue2":"5","id":"id_dacb6104_a52e_4399_b11d_19c05e4cb0d4","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"litrosFaltantes","lengthValue2":"5","id":"id_970314ae_459e_45d0_a064_5065cfe53f02","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"costoCarga","lengthValue2":"5","id":"id_fa403230_2a69_483c_8c02_340db61785a3","initValue":null},{"newline":true,"@type":"Output","id":"id_45ecf668_f2bf_4466_bd19_1630aa73b417","value":"\"Ingresa distancia, rendimiento, litros del tanque y precio por litro\""},{"@type":"Input","name":"distanciaIda","id":"id_1c8dd803_55fb_4384_b0f4_f3b6c3bcf248","prompt":null},{"@type":"Input","name":"rendimiento","id":"id_451c69ed_c28a_4961_85be_39a57be2527e","prompt":null},{"@type":"Input","name":"litrosTanque","id":"id_e6a880c8_83fa_456c_8abf_471bb2cd2c4e","prompt":null},{"@type":"Input","name":"precioLitro","id":"id_38749e90_33db_4a34_ad74_c5b1bb8b9a5c","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_636dd6f8_b79d_4a13_8a09_b304997a4288","value":"\"Error: verifique los datos ingresados\""}],"id":"id_28e79f8e_0f91_4b24_852c_4058cb39ccaf"},"trueBlock":{"statements":[{"@type":"Assign","name":"distanciaTotal","id":"id_41ea6ea5_1cc5_43e4_b45a_6dd5837eca32","value":"distanciaIda * 2"},{"@type":"Assign","name":"litrosNecesarios","id":"id_448840aa_9855_40e9_9f6c_27016904b42b","value":"distanciaTotal / rendimiento"},{"falseBlock":{"statements":[{"@type":"Assign","name":"litrosFaltantes","id":"id_695fc0f9_d63b_41fc_904e_658a7a63e4c1","value":"litrosNecesarios - litrosTanque"},{"@type":"Assign","name":"costoCarga","id":"id_020c3be5_bcf4_4a9b_9e60_3f436be485f0","value":"litrosFaltantes * precioLitro"},{"newline":true,"@type":"Output","id":"id_63e9c0b3_5d1c_40cb_9b8b_1c9bb0047228","value":"\"Litros faltantes: \" && litrosFaltantes"},{"newline":true,"@type":"Output","id":"id_ffde42eb_0bda_40c1_9ff1_d2fbd7bb9595","value":"\"Costo de gasolina: $\" && costoCarga"}],"id":"id_9f9d2373_2772_487c_9df1_ec142b1cee6b"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4dc8165e_999a_4481_97f1_6cdcda50d110","value":"\"Nos alcanza, no hay que cargar\""}],"id":"id_1296978f_5f6d_4122_95db_534b67eb6fa7"},"condition":"litrosTanque >= litrosNecesarios","@type":"If","id":"id_6ab23b96_33d5_44ca_ac0a_d51b6e8b2c35"}],"id":"id_75a84226_80f8_4ccc_8e45_010f0c57ffdd"},"condition":"distanciaIda > 0 && rendimiento > 0 && litrosTanque >= 0 &&precioLitro >= 0","@type":"If","id":"id_23eff0e2_99b8_4031_916f_456f1c139952"},{"@type":"Return","id":"id_80917e2a_a012_4075_b86a_f520a36979ac","maybeValue":null}],"parameters":[]},"id":"id_f78a4ec3_2aaf_4c7e_bb57_2161a031aaa5","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":274}