{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_713bd18e_baa6_418e_bf4a_2e237cd3b4fc"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"acumulado","lengthValue2":"5","id":"id_26338ad8_a814_4d98_bc65_5734c80ea174","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"cantidadb","lengthValue2":"5","id":"id_09189af2_5e50_4fea_8f6a_1d007c7b2242","initValue":"3"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"falta","lengthValue2":"5","id":"id_db45486d_2e9b_408e_b4f7_9e2dee44afad","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"medicamento","lengthValue2":"5","id":"id_a85973e1_4628_4247_a43a_d004efe92bfa","initValue":"\"\""},{"newline":true,"@type":"Output","id":"id_d51f7362_c3b3_4d72_a9db_e5d67cce21d0","value":"\"Ingrese nombre de medicamento\""},{"@type":"Input","name":"medicamento","id":"id_b953e603_9f36_455d_abdb_d9fd3925a421","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_87b2db7a_5fd2_4601_8f35_0e5bc11ca163","value":"\"Este medicamento no entra en el programa\""}],"id":"id_43cce0b0_088a_4efc_96c6_8b5a103d87a3"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_0bec59fd_cbd3_421a_b0e6_252ea96fc507","value":"\"Cuenta con bonificación\""},{"newline":true,"@type":"Output","id":"id_44a5c563_fade_4c89_bdad_3a015b2a1056","value":"\"¿Cuantas compras ya hizo?\""},{"@type":"Input","name":"acumulado","id":"id_d4347135_2c6f_497f_8009_45291e3a959f","prompt":null},{"condition":"acumulado < 0","@type":"While","id":"id_0427a6b6_1a4b_4bf1_826a_e68b06d3a0b4","body":{"statements":[{"newline":true,"@type":"Output","id":"id_360f1675_c2bd_4a61_9250_6d378925efb8","value":"\"Cantidad invalida, intente de nuevo\""},{"@type":"Input","name":"acumulado","id":"id_990658ca_ae14_429b_8c35_7350f9a04176","prompt":null}],"id":"id_0dbcac3e_cc03_462a_9cc1_d7236429d5d7"}},{"@type":"Assign","name":"acumulado","id":"id_49849d0f_67a1_462d_be60_3341e938248e","value":"acumulado + 1"},{"newline":true,"@type":"Output","id":"id_285e73ab_29f9_4cb0_bed1_0323147db8e5","value":"\"Lleva \" + acumulado + \" compras\""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"falta","id":"id_cf90c29e_7181_4722_a5ed_8a6e85faaac0","value":"cantidadb - acumulado"},{"newline":true,"@type":"Output","id":"id_70365d93_3335_4092_96cb_fca0d2d477fa","value":"\"Faltan \" + cantidadb + \" compras para la bonificación\""}],"id":"id_23d6f121_349d_4c46_be65_b411701154ed"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_797d2a2e_16c3_4f5a_aafa_c8c5e6edb8e0","value":"\"Pasa el limite de acumulados\""},{"newline":true,"@type":"Output","id":"id_9e48bfc3_3b01_4cd9_8097_9554c384ac1d","value":"\"Obtiene doble bonificación\""}],"id":"id_5ad1eae9_47e0_4b00_ac28_432af89b6899"},"condition":"acumulado > cantidadb","@type":"If","id":"id_6db72a59_bb89_48b9_81dd_750af205ba2f"}],"id":"id_8895a133_7e4d_4f2b_b403_4c0686cbe70c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8fc76c4a_5c94_4dc6_8113_00557af4bb82","value":"\"Obtiene bonificación\""}],"id":"id_bf9a4a3b_eaae_4ea5_bb15_6a9ea57fc5e4"},"condition":"acumulado == cantidadb","@type":"If","id":"id_be91ed7b_5d66_4c5b_8f65_530baec56b3e"}],"id":"id_783c6cb4_96af_4a8f_97ab_1c223227cdb1"},"condition":"medicamento == \"loperamida\"","@type":"If","id":"id_5e15b858_6074_4e11_971e_5122e2c2f56f"},{"@type":"Return","id":"id_9b74f8eb_56c5_4949_ac0f_e8404b9d18e3","maybeValue":null}],"parameters":[]},"id":"id_e0ed598b_002c_4922_9564_56d396c6e5e5","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":false},"version":"0.3","revision":1087}