{"functions":[],"name":"sistema de facturacion","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_b134d7c1_d736_4b41_b8ea_71a3a161b690"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"consumo","lengthValue2":"5","id":"id_860ff4b4_03c7_4ede_b5e6_f49b111d03ea","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"preciobase","lengthValue2":"5","id":"id_fafba3b6_a463_45f8_bddc_62f41011aacd","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"total","lengthValue2":"5","id":"id_a7ffb3d2_df16_4208_8953_a077def975c7","initValue":"0"},{"newline":true,"@type":"Output","id":"id_74965aed_f493_498b_ae74_f2bf56394e8d","value":"\"este programa le pedirá su consumo de energia(se calculará en kWh) y el precio por unidad, dándole al final el desglose\""},{"newline":true,"@type":"Output","id":"id_9c17174e_e66a_4cce_bf9d_6c6583cb3b1d","value":"\"introduzca el consumo de energia\""},{"@type":"Input","name":"consumo","id":"id_43e8fe18_0146_4e41_8705_b80d82aaa8d5","prompt":null},{"newline":true,"@type":"Output","id":"id_00209667_05c3_432c_9747_5176e966b60f","value":"\"introduzca el precio base por cada unidad\""},{"@type":"Input","name":"preciobase","id":"id_62611121_43b5_4ed8_b0fd_4226b7a3c253","prompt":null},{"falseBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"descuento","lengthValue2":"5","id":"id_e7fc000b_fdb1_4fa9_87a6_98160152cb20","initValue":"consumo*0.05"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"factura","lengthValue2":"5","id":"id_f19f3a23_fadb_40f3_a8ba_115af422d244","initValue":"consumo-descuento"},{"newline":true,"@type":"Output","id":"id_cb114856_d128_46d3_ba57_e97ddf636752","value":"\"su factura se le aplica un descuento del 5% por consumo responsable, por lo tanto su factura queda en \"+factura +\"pesos\""}],"id":"id_4dca8cef_f6a8_46dc_8baa_e2aa6c348933"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"exceso","lengthValue2":"5","id":"id_2e978ffd_39ea_4f41_a6bf_ae2afa3aa201","initValue":"consumo-300"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"recargo","lengthValue2":"5","id":"id_2c913a30_d12b_4ac8_aaf5_c62aa2078451","initValue":"preciobase*1.40"},{"@type":"Assign","name":"total","id":"id_7e6426a9_cdfc_40ae_904b_e6f1acced8cf","value":"8500+(recargo*exceso)+(preciobase*consumo)"},{"newline":true,"@type":"Output","id":"id_c33d6598_d597_49ed_ae83_62f73e73e2ba","value":"\"su factura terminan quedando en \"+total +\" pesos\" +\" ya que su consumo excede el limite\""}],"id":"id_e98b8610_c252_46aa_967e_732db20b869b"},"condition":"consumo>300","@type":"If","id":"id_daef4dac_6ec0_4ac6_9616_54c3d2cdfc65"},{"@type":"Return","id":"id_3e6e565f_74db_4292_b70c_5d161079348e","maybeValue":null}],"parameters":[]},"id":"id_925d73ba_4ea8_4c6d_a416_2f9bd15f8e07","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":1114}