by @stud. Ester Haka Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_bbc333db_ea80_4b17_8263_facf5aaabb94"},{"@type":"Declare","tpe":"Real","name":"p","id":"id_eab60498_c620_44a8_877a_c5f54fbd7efc","initValue":null},{"@type":"Declare","tpe":"String","name":"ls","id":"id_6d68ec94_6217_4726_af38_ed8f8f165d5f","initValue":null},{"@type":"Declare","tpe":"Real","name":"ps","id":"id_9fed8861_ec7a_4fd6_8138_d368c42a7cae","initValue":null},{"newline":false,"@type":"Output","id":"id_7f4571d6_8595_4500_bf1e_6a0876826de7","value":"\"inserire prezzo\""},{"@type":"Input","name":"p","id":"id_4c0a0f65_d2f5_4e21_b625_8bc219fac9d8","prompt":null},{"newline":true,"@type":"Output","id":"id_591289c2_3cca_4b54_801c_5201e5dc44b4","value":"\"inserire lettera sconto\""},{"@type":"Input","name":"ls","id":"id_813f3037_94f7_4a54_808e_b38760880aba","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_5455e289_a107_41f6_88aa_88286649245d","value":"\"non si può eseguire lo sconto\""}],"id":"id_7868898f_5130_4cae_bf3f_455e1ec76cc3"},"trueBlock":{"statements":[{"@type":"Assign","name":"ps","id":"id_24d692c4_e24e_4fb6_80ab_4faa583b11aa","value":"p-((p*22)/100)"}],"id":"id_fba9570e_5d54_4121_9c58_4993edaf74d6"},"condition":"ls==\"C\"","@type":"If","id":"id_af93758a_b5d5_4117_9f53_e9e12aef8256"}],"id":"id_476e6ddf_c528_444b_b0dc_ae3e8864bc84"},"trueBlock":{"statements":[{"@type":"Assign","name":"ps","id":"id_59b5b17b_91cc_433a_b88c_c06dddabf935","value":"p-((p*17)/100)"}],"id":"id_6f8b429a_8a44_4425_8d2f_199ae0bb4757"},"condition":"ls==\"B\"","@type":"If","id":"id_b113f686_4bcd_45a2_8ed0_dd8c0d806b86"}],"id":"id_3169c504_f05e_4760_b7ae_07ab5cc2cf4b"},"trueBlock":{"statements":[{"@type":"Assign","name":"ps","id":"id_fb0b6cbb_e381_4c31_8919_05709cb8924b","value":"p-((p*8)/100)"}],"id":"id_01efe0ca_f3ac_4ba8_b35c_76b9f2840d6f"},"condition":"ls==\"A\"","@type":"If","id":"id_3494e344_1291_4e4c_a630_a5f6cd13ee69"},{"newline":true,"@type":"Output","id":"id_12799684_9cd7_4c87_918d_b5b07ad2348f","value":"\"il prezzo scontato è \"+ps"},{"@type":"Return","id":"id_bc1cf764_fe39_449f_91d9_5dd48f45d5aa","maybeValue":null}],"parameters":[]},"id":"id_8f295468_c0c8_4789_8471_aff30ac7e008","config":{"showDebugVars":false,"showIoBtns":false,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.2","revision":497}