by @Juse Santo Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_6b1c1064_b824_41be_95db_44e86c9a87d1"},{"@type":"Declare","tpe":"String","name":"continuar","id":"id_d72a80ba_1d77_4afc_9eb2_fdc9c3068ba3","initValue":"\"si\""},{"condition":"continuar==\"si\"","@type":"While","id":"id_9e9add9a_37d7_4b86_8134_1f3bed157b19","body":{"statements":[{"@type":"Declare","tpe":"Real","name":"r1","id":"id_ef99238d_d8d2_4087_8869_0080cbc60b60","initValue":null},{"@type":"Declare","tpe":"Real","name":"r2","id":"id_216c5410_2320_413b_8bb2_5795b1c53405","initValue":null},{"@type":"Declare","tpe":"Real","name":"r3","id":"id_31020ca3_68e8_493f_92ed_65531026e334","initValue":null},{"@type":"Declare","tpe":"String","name":"assig1","id":"id_3723a31d_b1bb_4998_b458_2c7fdd060aea","initValue":null},{"@type":"Declare","tpe":"String","name":"assig2","id":"id_e7532a5a_96be_468c_b17d_734ad12db084","initValue":null},{"@type":"Declare","tpe":"String","name":"assig3","id":"id_2db4c0d8_41e6_4de0_ab58_033dd8344df0","initValue":null},{"@type":"Input","name":"r1","id":"id_375ee674_8a5f_43a0_9ae4_75ad6d515b65","prompt":null},{"@type":"Input","name":"assig1","id":"id_c7035a20_a387_4657_a4c8_1cdce72e24e5","prompt":null},{"@type":"Input","name":"r2","id":"id_f3f8c9e2_7715_474d_ac5a_222f2c543c5a","prompt":null},{"@type":"Input","name":"assig2","id":"id_67fb7956_5c2d_4c4e_baeb_7dc251c096ad","prompt":null},{"@type":"Input","name":"r3","id":"id_6e94c05d_9d63_4d02_8199_13fde5080b23","prompt":null},{"@type":"Input","name":"assig3","id":"id_010d9dd6_ccf9_4eea_8d60_547f6f9ac2e6","prompt":null},{"@type":"Declare","tpe":"Boolean","name":"assig","id":"id_5caea218_3649_4a76_9166_958e452ce340","initValue":"((assig1==\"serie\") && (assig2==\"serie\") && (assig3==\"serie\"))||((assig1==\"paralelo\") && (assig2==\"paralelo\") && (assig3==\"paralelo\"))"},{"@type":"Declare","tpe":"Real","name":"Rtotal","id":"id_f9ffb044_2a67_45d1_a853_d8a9b14475b3","initValue":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_45e20728_abd7_4c33_825b_ca560669eac4","value":"\"Configuracion invalida\""}],"id":"id_ac78c613_a73c_4b2b_bdb2_8914e77a6f22"},"trueBlock":{"statements":[{"@type":"Assign","name":"Rtotal","id":"id_dcef925e_0b17_4f56_93bf_44d3641a02d4","value":"1/((1/(r2+r3))+(1/r1))"},{"newline":true,"@type":"Output","id":"id_5233afc3_fc13_4b3a_a143_291945615c89","value":"Rtotal"}],"id":"id_ef4dfe09_d7f3_4460_b1c5_a8e9dc4922f4"},"condition":"(assig2==\"serie\") && (assig3==\"serie\")","@type":"If","id":"id_44321a6e_f1cc_40fb_a3cc_ac2b208d41cc"}],"id":"id_a5a485b4_0bdf_426c_8258_de596f345047"},"trueBlock":{"statements":[{"@type":"Assign","name":"Rtotal","id":"id_4b8c34fb_8418_400e_a78c_73396c6d013f","value":"1/((1/(r1+r3))+(1/r2))"},{"newline":true,"@type":"Output","id":"id_51fb7b31_4d2b_41f1_9dbb_bcc219f7cce1","value":"Rtotal"}],"id":"id_7f01225b_cc02_4b2b_a04d_4536af8d35cf"},"condition":"(assig1==\"serie\") && (assig3==\"serie\")","@type":"If","id":"id_4e8a92df_2028_49be_a01e_abad088dfae1"}],"id":"id_07f4e71c_9e18_4535_8965_af029aadb936"},"trueBlock":{"statements":[{"@type":"Assign","name":"Rtotal","id":"id_e6ea770e_0223_4fdb_a10a_8b103611441c","value":"1/((1/(r1+r2))+(1/r3))"},{"newline":true,"@type":"Output","id":"id_6979b41c_c905_4f77_92fe_f54a3996cca0","value":"Rtotal"}],"id":"id_38b28e49_8c72_4549_805c_4d34b78f9db4"},"condition":"(assig1==\"serie\") && (assig2==\"serie\")","@type":"If","id":"id_7f702ec3_f5e3_482c_87d6_0d7ff64dfdf4"}],"id":"id_6cb5d124_52d7_4575_830d_69257f16ab66"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"Rtotal","id":"id_61eab01f_64fd_4bac_b1c0_cb37d48d3b05","value":"1/((1/r1)+(1/r2)+(1/r3))"},{"@type":"Assign","name":"Rtotal","id":"id_3efac87b_21bb_4244_b782_9ac5c6c774b0","value":"Rtotal-((Rtotal*10)/100)"},{"falseBlock":{"statements":[],"id":"id_4cde7087_4e6b_4e43_9a03_091d79f9908a"},"trueBlock":{"statements":[{"@type":"Assign","name":"Rtotal","id":"id_68431b39_be9c_4e39_92dc_35feb10ff5ad","value":"Rtotal-2"},{"newline":true,"@type":"Output","id":"id_cc832424_1a87_4415_9c4c_9345ed055e0b","value":"\"El circuito es menor de 10 ohm por lo tanto se le restaran 2 ohm\""}],"id":"id_06c45097_b3b6_4c44_bc02_3e1101f6fe96"},"condition":"Rtotal<=10","@type":"If","id":"id_0e64696b_41fc_498c_9d53_01081afdc1cd"},{"newline":true,"@type":"Output","id":"id_467b2a2e_78cf_4512_a22e_3bf1ac37bbe8","value":"Rtotal"}],"id":"id_a71cdd8c_ad77_4705_8934_b138ec62e499"},"trueBlock":{"statements":[{"@type":"Assign","name":"Rtotal","id":"id_54467452_d006_4e19_84c4_23d909261fd9","value":"r1+r2+r3"},{"@type":"Assign","name":"Rtotal","id":"id_2507c023_4c60_49d5_b805_dd64a390bcaf","value":"Rtotal+((Rtotal*5)/100)"},{"falseBlock":{"statements":[],"id":"id_7e530deb_b3f7_47f9_9686_ead9d74ba0e9"},"trueBlock":{"statements":[{"@type":"Assign","name":"Rtotal","id":"id_7ab41907_c496_4259_a352_c02401db5938","value":"Rtotal+20"},{"newline":true,"@type":"Output","id":"id_0aa42b59_aa00_48e7_9d3d_db8882a5ff10","value":"\"El circuito tiene mas de 100ohm por lo tanto se le sumaran 20 ohm\""}],"id":"id_550a221a_3237_47dd_8d9b_16562b27e40a"},"condition":"Rtotal>=100","@type":"If","id":"id_f3ed32d9_d41b_4e73_ae0a_e827883733b5"},{"newline":true,"@type":"Output","id":"id_06a95a3e_cd15_45c4_b985_8575bd31c828","value":"Rtotal"}],"id":"id_48b22043_ab36_474d_b14e_6948831902be"},"condition":"assig1==\"serie\"","@type":"If","id":"id_7addc313_72c3_486a_a799_3362c434f78f"}],"id":"id_8a9e03ae_62c5_467c_bea0_de8fa67831d8"},"condition":"assig==true","@type":"If","id":"id_e2b3213b_fce5_49a4_a9fa_b184629a7a84"},{"@type":"Input","name":"continuar","id":"id_a85fcdeb_7463_4bb6_8a41_7da3a73b0801","prompt":"si o no"}],"id":"id_ed3addd8_95e4_43e7_8f99_9362b7ad9854"}},{"newline":true,"@type":"Output","id":"id_2fa00977_cb96_40a0_b9e4_0487534c2773","value":"\"hemos terminado\""},{"@type":"Return","id":"id_74f3c5b9_adab_4a02_9531_155b87815639","maybeValue":null}],"parameters":[]},"id":"id_cac18c31_b919_437a_a08a_b0c022f556a8","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":1361}