{"functions":[],"name":"44 Taller decisiones","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_416de0b1_daa0_4652_9e14_3e63ea4124d1"},{"@type":"Comment","id":"id_39e6b632_7295_4d81_986c_7e16fcefbb3d","text":"Programa que determina el costo de consulta según la clasificación del paciente y descuentos aplicables"},{"@type":"Declare","tpe":"Real","name":"consulta","id":"id_e889a17f_f360_41b5_a5f1_57c7c90c138f","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"categoria","id":"id_af7b13ad_a4fc_4775_960b_3c53e5e5a255","initValue":null},{"@type":"Declare","tpe":"Integer","name":"edad","id":"id_ed94da0b_909d_453c_b529_8012e0e029b4","initValue":null},{"@type":"Declare","tpe":"Integer","name":"enfermedades","id":"id_abd9b574_0a2f_4c6b_8f6d_91ec167b16cd","initValue":null},{"@type":"Declare","tpe":"Real","name":"desc","id":"id_f2cbdf27_922d_4bc4_b855_2820b9b73c32","initValue":null},{"@type":"Input","name":"consulta","id":"id_822b62be_8d0e_4cc5_9833_a0ac02f5f6c3","prompt":"Ingrese el valor de la consulta en pesos"},{"@type":"Input","name":"categoria","id":"id_850e8ff0_db65_4117_971b_196054cf6693","prompt":"Ingrese la categoría a la que pertenece el paciente."},{"@type":"Input","name":"edad","id":"id_6f2c1c34_d9e9_40ca_bd7d_bb3a448346b9","prompt":"Ingrese la edad del paciente"},{"@type":"Input","name":"enfermedades","id":"id_a05ca087_9e87_4f59_8414_f82e4c194bc0","prompt":"Ingrese la cantidad de enfermedades del paciente"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b16a827d_c392_4813_b7c6_25e34aa959b0","value":"\"Categoría de paciente ingresada no válida.\""}],"id":"id_ba2ef945_1ba6_4da5_a5aa_f15824a9f0e3"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"desc","id":"id_23a41bab_58a9_48bb_99c7_65dcdaabf2fa","value":"5"}],"id":"id_e92a2e76_3fca_431f_a480_2fed577f0267"},"trueBlock":{"statements":[{"@type":"Assign","name":"desc","id":"id_06eec0bc_478d_4592_94c5_cb8fca33f36e","value":"15"}],"id":"id_3d3acb33_75a0_424a_ba13_8aa658d10145"},"condition":"categoria==3","@type":"If","id":"id_06601c37_a518_4c89_ad26_d4951e03a804"}],"id":"id_da5bf2e0_661c_43a7_92e9_88471ea1e241"},"trueBlock":{"statements":[{"@type":"Assign","name":"desc","id":"id_b43e2758_1106_4807_a536_d540efd8583c","value":"30"}],"id":"id_3c9ea828_4098_417f_a21c_0f4f39fb4c82"},"condition":"categoria==2","@type":"If","id":"id_d8b4f09f_7500_47c0_bdb1_83907368e346"}],"id":"id_bcbb0260_2768_4bee_8757_46f405aec4e1"},"trueBlock":{"statements":[{"@type":"Assign","name":"desc","id":"id_8491923e_3442_4a58_b86b_0f97b78039dc","value":"40"}],"id":"id_17f1763d_8b8c_4a19_976d_159d30ddddc2"},"condition":"categoria==1","@type":"If","id":"id_057488ab_b583_4937_9690_a6309271a98c"},{"falseBlock":{"statements":[],"id":"id_f45507ce_c05c_4b0f_bec8_aa978691da3d"},"trueBlock":{"statements":[{"@type":"Assign","name":"desc","id":"id_ff2b051a_5113_4c83_83ec_aeb097aeeff1","value":"desc+10"}],"id":"id_e5b18d5a_a749_4977_a71b_1c0345812eee"},"condition":"edad<12","@type":"If","id":"id_982db5ba_6447_438d_8bd9_b6ef819bb9d7"},{"falseBlock":{"statements":[],"id":"id_87480c95_d50c_4918_a8b3_91202ac26c27"},"trueBlock":{"statements":[{"@type":"Assign","name":"desc","id":"id_0b688a2c_40d3_4806_994e_e0e777d4f2e0","value":"desc+8"}],"id":"id_b1f420c1_f0f0_424c_a7b1_c4e38d9d8d78"},"condition":"enfermedades>=3","@type":"If","id":"id_85e2e006_4a78_434b_b98c_a0c4e92e56be"},{"@type":"Assign","name":"consulta","id":"id_b5cad1a1_964c_4677_90d5_209595373169","value":"consulta-consulta*(desc/100)"},{"newline":true,"@type":"Output","id":"id_131a5dd5_e016_43b4_8876_6e688fc5a96f","value":"\"El porcentaje de descuento total aplicado es de: \""},{"newline":false,"@type":"Output","id":"id_060b8c17_432a_4c0e_879e_aa0321501353","value":"desc"},{"newline":true,"@type":"Output","id":"id_0c26113d_f018_403a_a388_df8c8c2d1cdc","value":"\"Aplicando el descuento, el valor de la consulta sería de: \""},{"newline":false,"@type":"Output","id":"id_f008e596_408c_4c54_a7ba_f310e96942c8","value":"consulta"}],"id":"id_fb0194c7_819c_4829_af34_5f9fdb4f9991"},"condition":"categoria>=1 && categoria<=4","@type":"If","id":"id_03503c45_2af8_4d6d_af6b_c4fa47b1cda2"},{"@type":"Return","id":"id_701eefe1_af9d_4053_b6f6_23a51563fdf2","maybeValue":null}],"parameters":[]},"id":"id_b56d9534_41ba_44c4_ad40_9b195d569cd2","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":1147}