by @Felipe Londono Aristizabal Fork
{"functions":[],"name":"Progra 2, taller 2,7","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_3119ac03_15be_443f_b967_c31ac0d4f0e4"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"cod","lengthValue2":"5","id":"id_99a976f0_17d0_4719_97b1_4583dfe9315b","initValue":"0"},{"newline":true,"@type":"Output","id":"id_96301e35_7d72_4e89_90d0_29fd7feaa4e8","value":"\"Ingrese el código del usuario\""},{"@type":"Input","name":"cod","id":"id_2eeabfde_ddd5_42f8_8ac3_420729b3c028","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"lecV","lengthValue2":"5","id":"id_2293b0db_59e7_4e66_9d94_ffa9642cd09d","initValue":"0"},{"newline":true,"@type":"Output","id":"id_3d7c100d_06d6_433a_9791_0b677c8dbc07","value":"\"Ingrese el valor de la lectura anterior en kwh\""},{"@type":"Input","name":"lecV","id":"id_cbce64ef_5969_42d1_bd48_095d87c3b4bf","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"lecN","lengthValue2":"5","id":"id_b1c573bb_1a89_4794_85a4_2e876343d8d4","initValue":"0"},{"newline":true,"@type":"Output","id":"id_a3d8194e_db36_428a_86ff_79ca3dfd37e5","value":"\"Ingrese el valor de la nueva lectura en kwh\""},{"@type":"Input","name":"lecN","id":"id_98c2d4e6_cd1f_4443_9658_a7a8279975e8","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"est","lengthValue2":"5","id":"id_d4589ed7_aa59_45ca_962a_d5338da5b030","initValue":"0"},{"newline":true,"@type":"Output","id":"id_147edb12_1592_4463_8394_a3456ffbe283","value":"\"Ingrese el estrato del usuario\""},{"@type":"Input","name":"est","id":"id_447de8cf_9584_4dea_b0ba_9d45d8cf1e4c","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"consumo","lengthValue2":"5","id":"id_71428bf8_0a58_44d0_824a_195f23cf8b4e","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"extra","lengthValue2":"5","id":"id_de184e9c_6765_4bb7_8f02_f2583a718da1","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"precio","lengthValue2":"5","id":"id_fc00ebd3_e033_4e70_8417_862950e4f5db","initValue":"0"},{"@type":"Assign","name":"consumo","id":"id_3520bdb8_cfd1_42e5_8046_517d04b33d82","value":"abs(lecN-lecV)"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"precio","id":"id_2296ba13_1645_4fa4_83d4_171c7bfcc021","value":"consumo*900"}],"id":"id_004b4e96_5532_4ea7_870d_1292e7156f15"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"extra","id":"id_7a005e65_d286_43f0_82e8_d2e7f03ae8c8","value":"consumo-130"},{"@type":"Assign","name":"precio","id":"id_4264331a_f293_4b69_8006_d71f7109b197","value":"(consumo-extra)*700 + extra*800"}],"id":"id_191051c3_02f9_42c7_b295_03a932ed6e7a"},"trueBlock":{"statements":[{"@type":"Assign","name":"precio","id":"id_a78dd145_6314_4601_9361_f88e2196097a","value":"consumo*700"}],"id":"id_92778ea3_ddfa_4677_b8ee_36e6b4293a5f"},"condition":"consumo <= 130","@type":"If","id":"id_80677432_c1d8_4944_87fe_28af8b465d31"}],"id":"id_f5fafc43_f59c_46d5_adef_b551f42b1af3"},"condition":"est<5","@type":"If","id":"id_2dd1b0e7_6acb_4b14_9674_e394e93b43e7"}],"id":"id_7573af80_971a_45c8_ba76_68b40c321220"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"extra2","lengthValue2":"5","id":"id_2df5f417_2dd3_4f15_b0e8_8aad8ba14fa6","initValue":"0"},{"@type":"Assign","name":"extra","id":"id_033118c9_d86b_4529_80aa_0d59f2181106","value":"consumo-200"},{"@type":"Assign","name":"extra2","id":"id_0c8c0d54_8115_43ce_9365_ab172e6fa368","value":"consumo-extra"},{"@type":"Assign","name":"precio","id":"id_43c900f7_07b7_4994_84f9_0d56cdc2f94e","value":"(consumo-extra-100)*400 + (consumo-extra-100)*500 + extra*700"}],"id":"id_a16f4eb7_a382_45a3_9112_b72cd56a6f7d"},"trueBlock":{"statements":[{"@type":"Assign","name":"extra","id":"id_3ce63c26_817a_4586_9e6c_402d0890ac28","value":"consumo-100"},{"@type":"Assign","name":"precio","id":"id_3937e655_af2d_4a19_ae80_9234081b4af9","value":"(consumo-extra)*400+(extra*500)"}],"id":"id_c0887894_3d65_42f9_8f8a_17baadbf9feb"},"condition":"consumo <= 200","@type":"If","id":"id_8ee88f21_f333_4c41_b3e0_014df9d69641"}],"id":"id_60786285_935c_492d_ae8e_e240d5be0e67"},"trueBlock":{"statements":[{"@type":"Assign","name":"precio","id":"id_7b587e36_f997_47cf_8114_1bccbea2c7fb","value":"consumo*400"}],"id":"id_7488ce54_21ad_42e3_ac16_2b5e34988c3b"},"condition":"consumo < 100","@type":"If","id":"id_81a2b95e_a6ab_4f6e_a0ad_2f4c1b7796ba"}],"id":"id_d9f74924_bfa2_40bc_a232_b0d2c27e6b90"},"condition":"est <= 2","@type":"If","id":"id_6492da99_7632_4918_8ab6_c0c9eec70993"},{"newline":true,"@type":"Output","id":"id_87aa3485_e2a1_4e46_a866_b503f1c2d944","value":"\"El precio en pesos de la factura es de: \""},{"newline":true,"@type":"Output","id":"id_27b5bee2_5398_4d40_9509_6bcbbcc70065","value":"precio"},{"@type":"Return","id":"id_9f2b22c7_012f_4ddd_b410_7be0b711029a","maybeValue":null}],"parameters":[]},"id":"id_65c42701_aaa1_45e5_82a0_7046f74cc8ff","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":963}