by @juan diego lopez sanchez Fork
{"functions":[],"name":"sesion 2 (7)","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_7e21fdb7_94de_4c8b_97af_54213a44d38e"},{"@type":"Declare","tpe":"Integer","name":"C","id":"id_09306afb_f489_4c61_b9a9_ebb4f4840ebb","initValue":null},{"@type":"Input","name":"C","id":"id_960cb670_b12f_43de_88bd_968cf77a2d4e","prompt":"“Por favor ingresar 1 si el circuito esta en serie, 2 si el circuito esta en paralelo, 3 si el circuito es mixto con R1 y R2 en serie y R3 en paralelo, 4 si el circuito es mixto con R1 y R3 en serie y R2 en paralelo y 5 si el circuito es mixto con R2 y R3 en serie y R1 en paralelo”"},{"@type":"Declare","tpe":"Integer","name":"R1","id":"id_6426a5c2_3d3c_4f6f_91ca_d45d16f0ca18","initValue":null},{"@type":"Input","name":"R1","id":"id_641f3cdb_0016_4a03_80b0_c615f18d2a88","prompt":"\"porfavor ingresar la resistencia R1\""},{"@type":"Declare","tpe":"Integer","name":"R2","id":"id_dbddbbed_2f83_43dc_af47_fa343a190053","initValue":null},{"@type":"Input","name":"R2","id":"id_da2b7d8e_abba_4fea_9618_48ff5ef7b11b","prompt":"\"porfavor ingresar la resistencia R2\""},{"@type":"Declare","tpe":"Integer","name":"R3","id":"id_30f58676_43bb_4594_87fd_7f64a7c53f98","initValue":null},{"@type":"Input","name":"R3","id":"id_d3f9e15a_fbe3_4b16_b9cd_20d52957336a","prompt":"\"porfavor ingresar la resistencia R3\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_524acb2d_7add_4500_a399_2cc663fab508","value":"\"Porfavor siga las instrucciones iniciales\""}],"id":"id_d659fbdc_379d_4a40_a745_e437fedff5f0"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Real","name":"M2","id":"id_5792a2a5_a103_4d2a_b3a6_dafd942609d4","initValue":"1/(1/R2+R3)+(1/R1)"},{"newline":true,"@type":"Output","id":"id_34391223_9727_4bd0_9a14_589e1999b192","value":"\"El circuito mixto de R2 Y R3 en serie y R1 en paralelo nos da una resitencia total de:\""},{"newline":true,"@type":"Output","id":"id_f6746358_7235_472c_a975_10124c77d765","value":"M2"}],"id":"id_bc7e3256_88a3_407a_8609_c468672a37c2"},"condition":"C==5","@type":"If","id":"id_357069fb_4604_40f5_86b9_aa89bdb42f5f"}],"id":"id_64dd4b0a_8e0b_4225_9efc_7ad5b214589a"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Real","name":"}","id":"id_5e90e0f7_e415_4287_80da_c4acf4e881ae","initValue":"1/(1/R1+R3)+(1/R2)"},{"newline":true,"@type":"Output","id":"id_8851d4d4_c2e9_44d5_9b38_d92269c7d6a5","value":"\"El circuito mixto de R1 Y R3 en serie y R2 en paralelo nos da una resitencia total de:\""},{"newline":true,"@type":"Output","id":"id_c65eaa80_3daf_4272_aca3_66331abab2c3","value":"M2"}],"id":"id_ef14cc54_e74c_4815_bddb_a237a9e3fd2f"},"condition":"C==4","@type":"If","id":"id_515e8667_afe5_4af1_ae82_a87e0766565b"}],"id":"id_84e9d45e_6333_4e84_88fb_a08e7f79b844"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Real","name":"M1","id":"id_d60a8eb7_0179_400b_916c_eaae50957e38","initValue":"1/(1/R1+R2)+(1/R3)"},{"newline":true,"@type":"Output","id":"id_17a1e4ab_737d_4eda_8e9f_11526f977bba","value":"\"El circuito mixto de R1 Y R2 en serie y R3 en paralelo nos da una resitencia total de:\""},{"newline":true,"@type":"Output","id":"id_eec55007_b246_4cf7_992b_1a9453ba38a7","value":"M1"}],"id":"id_d8f2a11a_56d5_4cb0_86f1_86bcc3c9ffe5"},"condition":"C==3","@type":"If","id":"id_b292996d_3bbe_4a6d_bd41_552527a4eae2"}],"id":"id_62de64d4_5105_461f_8e8d_5fb7ce37e0a8"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Real","name":"P","id":"id_46430b23_ba62_465e_91a1_87af64b5949f","initValue":"1/(1/R1)+(1/R2)+(1/R3)"},{"newline":true,"@type":"Output","id":"id_e3b96e01_ff40_4541_9e45_7bfe275b6aa1","value":"\"El circuito en paralelo nos da una resitencia total de:\""},{"newline":true,"@type":"Output","id":"id_ff397d76_abe1_46ec_99ec_ecfb82fa8038","value":"P"}],"id":"id_d0fbb6ff_f389_41a1_b0f8_6a697ebc49f1"},"condition":"C==2","@type":"If","id":"id_ce99862f_d199_4f18_8565_4cd0552880f6"}],"id":"id_200e9f12_f4be_4350_be11_8fd1458eed4d"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"S","id":"id_d80cd870_54f8_41aa_9f23_cf1312f4290b","initValue":"R1+R2+R3"},{"newline":true,"@type":"Output","id":"id_fac9ac10_9ce9_467f_916f_c3c8e7e3edc8","value":"\"El circuito en serie nos da una resitencia total de:\""},{"newline":true,"@type":"Output","id":"id_8bb97ce1_d5e0_401c_8a82_4bdbd661220c","value":"S"}],"id":"id_c16959a3_2616_454d_a3ed_6a9db4db8a36"},"condition":"C==1","@type":"If","id":"id_93c05632_7464_4a25_8c50_5c6c70056fa8"},{"@type":"Return","id":"id_df756172_5e0c_41cb_b1e0_de82e8dc3ee5","maybeValue":null}],"parameters":[]},"id":"id_115dd276_58e9_48d9_bd8e_13720f6684ff","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":663}