by @Felipe Londono Aristizabal Fork
{"functions":[],"name":"32 taller decisiones","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_26a62722_6779_4d0e_8640_cf7995237956"},{"newline":true,"@type":"Output","id":"id_2ad8f500_9bf3_4d56_8cc3_a3fd4d5cf378","value":"\"En cierta institución educativa se hace un descuento del 20% en la matrícula de los estudiantes cuyo promedio sea superior a 4.5. Este programa lee el promedio de un estudiante y el costo de su matrícula y calcula e imprime el nuevo valor de la matrícula.\""},{"@type":"Declare","tpe":"Real","name":"prom","id":"id_f5b10dbb_5b54_4ad3_8465_1475273873f5","initValue":"0"},{"@type":"Declare","tpe":"Real","name":"matricula","id":"id_f52f2ea5_f9f9_42de_8a29_fed182a385d0","initValue":"0"},{"@type":"Declare","tpe":"Real","name":"matriculadesc","id":"id_307d1ed3_6ba0_4b94_a2d2_ec08983fa66d","initValue":"0"},{"@type":"Input","name":"matricula","id":"id_eee0dfad_00b3_42f6_87c7_2ce4d5f5022f","prompt":"Ingrese el valor de la matricula del estudiante: "},{"falseBlock":{"statements":[{"@type":"Input","name":"prom","id":"id_99d3f439_a8bb_46fd_8047_bcfa824fbd95","prompt":"Ingrese el promedio del estudiante"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_efc84ca2_5f4a_42fd_8b23_cbb1e1b14760","value":"\"El promedio no es suficiente para aplicar el descuento de 20% en la matricula.\""}],"id":"id_9b8befb8_c9fb_4096_a934_efe9b347e28c"},"trueBlock":{"statements":[{"@type":"Assign","name":"matriculadesc","id":"id_d0caa94c_59d3_4cc1_881a_0acbe3342aa9","value":"matricula-matricula*0.2"},{"newline":false,"@type":"Output","id":"id_356c1aab_dd72_43ba_9e93_761d3f5cf366","value":"\"El valor de la matricula al aplicar el descuento es de: \""},{"newline":false,"@type":"Output","id":"id_f6e686c2_0214_41d9_a335_f42e3ad078b8","value":"matriculadesc"}],"id":"id_fc5964f8_b951_4d86_8fe2_6d02a23e3a96"},"condition":"prom>=4.5","@type":"If","id":"id_e741bdf9_e3ce_42c9_ac7e_273e54988d29"}],"id":"id_f7e9c0b3_09fc_4c3f_8bf4_e2ee07329eb7"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_615220a1_d6d8_4beb_924e_1edb54b047b0","value":"\"El promedio no puede ser mayor a 5.\""}],"id":"id_0524e166_531a_48d2_a7fc_1caa89ef95ea"},"condition":"prom>5","@type":"If","id":"id_1df403b6_7b25_4495_96e1_19ebca23cad8"}],"id":"id_027d361e_2317_43c0_8efb_a1fa79d95d93"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_349da6ba_ed65_4681_b2cb_b30fcf9859f3","value":"\"El promedio no puede ser negativo.\""}],"id":"id_9bbb2233_2c30_4833_ad44_810fc130ba25"},"condition":"prom<=0","@type":"If","id":"id_c1bfd1db_f955_4b38_a9eb_a27de7c74b6d"}],"id":"id_6a83ba1d_550b_441d_b27d_39688648933c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_bc0dcb19_1bdd_4544_867a_b5924e577230","value":"\"El valor de la matricual no puede ser igual o inferior a 0.\""}],"id":"id_cd3fb152_4faf_4fec_adaa_3092f2077e09"},"condition":"matricula<=0","@type":"If","id":"id_4dcf8cd0_26a3_4d48_a25e_5cc9cc0e621d"},{"@type":"Return","id":"id_85c2dc69_2110_44e8_87da_1e47c76d8beb","maybeValue":null}],"parameters":[]},"id":"id_cbd9c053_6f79_4a23_9fbc_337b65cdf8a8","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"python","showGenCode":true},"version":"0.2","revision":635}