by @stud. El Mostafa Chikir Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_9f624438_7e12_4fc9_bd92_ffa427fd28d3"},{"@type":"Declare","tpe":"Real","name":"prezzo","id":"id_f92faef1_46b6_4e84_be46_3eca38a24969","initValue":null},{"@type":"Declare","tpe":"Integer","name":"quantita","id":"id_0313277f_318b_4a5f_83a8_0edaec3c95d8","initValue":null},{"@type":"Declare","tpe":"Real","name":"importo","id":"id_091a9ab7_fcb8_478e_ab9f_78bd2b56c214","initValue":null},{"@type":"Declare","tpe":"Real","name":"scontob","id":"id_6e3fb4fb_c23c_4731_8959_0c32c1809231","initValue":null},{"@type":"Declare","tpe":"String","name":"bancomat","id":"id_ad29919d_4741_43a5_bba5_f2a1c639db6d","initValue":null},{"@type":"Declare","tpe":"Real","name":"prezzo5","id":"id_11978f9c_8670_4ca0_88e3_b269f0d249ae","initValue":null},{"@type":"Declare","tpe":"Real","name":"prezzo10","id":"id_c36ddbbb_ba63_4b16_8b55_77f90161457f","initValue":null},{"@type":"Declare","tpe":"Real","name":"prezzo15","id":"id_757e1147_4579_4278_8b97_e21466c0a50b","initValue":null},{"newline":true,"@type":"Output","id":"id_26504355_8ec0_4eb8_a6c1_365c26e67bac","value":"\"dammi prezzo\""},{"@type":"Input","name":"prezzo","id":"id_9b1f920e_3d9c_4a94_8b12_746e27023a91","prompt":null},{"newline":true,"@type":"Output","id":"id_63d7060b_8f8f_4109_85ed_7e3539bbc79b","value":"\"si o no bancomat\""},{"@type":"Input","name":"bancomat","id":"id_1976ef10_6d1f_442c_8121_96eb2ca6f0f9","prompt":null},{"newline":true,"@type":"Output","id":"id_b0daa86a_36d1_4b24_9445_bc4af8a388f9","value":"\"dammi quantita\""},{"@type":"Input","name":"quantita","id":"id_4b49964e_7ad1_4b20_b6a0_c56f96920a64","prompt":null},{"@type":"Assign","name":"importo","id":"id_f8be8983_84bc_4c16_acd0_e718b5a2be0a","value":"prezzo*quantita"},{"@type":"Assign","name":"prezzo5","id":"id_0a32bd17_7b7c_47d6_a947_34bf40db61c2","value":"importo-((importo*5)/100)"},{"@type":"Assign","name":"prezzo10","id":"id_cd66052d_4edc_4e56_b0b6_36ae10028650","value":"importo-((importo*5)/100)"},{"@type":"Assign","name":"prezzo15","id":"id_c3bbea5c_a049_4248_a1b4_5ad1dd304f62","value":"importo-((importo*15)/100)"},{"falseBlock":{"statements":[{"@type":"Assign","name":"importo","id":"id_70494f54_54e2_4d13_8758_6c159c4f3ec8","value":"prezzo*quantita"},{"newline":true,"@type":"Output","id":"id_cf79e5ca_b597_46cb_9df3_8cb9e30c6790","value":"\"devi pagare \" + importo + \" \""},{"falseBlock":{"statements":[],"id":"id_1b7038c4_50b1_4ea6_bf2b_f6c6ca7822b0"},"trueBlock":{"statements":[{"@type":"Assign","name":"scontob","id":"id_9d5c3a41_1ad5_46aa_9223_69677b4748fe","value":"importo-((importo*2)/100)"},{"newline":true,"@type":"Output","id":"id_3c685cf0_0c33_4985_b155_c8a0c8638432","value":"\"con sconto bancomat paghi \" + scontob + \" \""}],"id":"id_10123aea_c30b_4824_9285_492514885769"},"condition":"bancomat==\"si\"","@type":"If","id":"id_23b148ba_deda_424b_958a_e62e84c85b99"}],"id":"id_ca8424f2_78c0_4e63_a31e_e0fbb6b967b1"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"prezzo15","id":"id_54a78ddb_8794_4213_a67a_004fc72a49f4","value":"importo-((importo*15)/100)"},{"newline":true,"@type":"Output","id":"id_2e54a541_e1a4_4810_964a_a87b76b3c205","value":"\"devi pagare \" + prezzo15 + \" \""},{"falseBlock":{"statements":[],"id":"id_55c85b3b_cbbd_4470_a4c3_54b101ca1d8a"},"trueBlock":{"statements":[{"@type":"Assign","name":"scontob","id":"id_0b9c6833_2c89_4f38_ad79_445f7f1e9374","value":"prezzo15-((prezzo15*2)/100)"},{"newline":true,"@type":"Output","id":"id_d176a723_4d05_4271_8957_7cd7377904f3","value":"\"con sconto bancomat paghi \" + scontob + \" \""}],"id":"id_58c74005_7c14_408a_bc04_50f311de9096"},"condition":"bancomat==\"si\"","@type":"If","id":"id_e7673c1e_0b27_4834_9eec_323aed3dc71e"}],"id":"id_f602be03_55ed_48ee_baaf_c08ba067b79a"},"trueBlock":{"statements":[{"@type":"Assign","name":"prezzo10","id":"id_ce2fbb83_c9f4_4e2c_9942_601012657962","value":"importo-((importo*10)/100)"},{"newline":true,"@type":"Output","id":"id_754e6808_50c8_46db_9612_89512340f4df","value":"\"devi pagare \" + prezzo10 + \" \""},{"falseBlock":{"statements":[],"id":"id_3dc0a188_4a39_48c4_a221_9fb84f47143b"},"trueBlock":{"statements":[{"@type":"Assign","name":"scontob","id":"id_1280b72c_c1e6_4a59_8474_82b37935295b","value":"prezzo10-((prezzo10*2)/100)"},{"newline":true,"@type":"Output","id":"id_3b804f8a_ec8b_4b17_93d7_90030adc261d","value":"\"con bancomat paghi \" + scontob + \" \""}],"id":"id_8f67f7b4_6f6d_434f_8440_ff003e403a7d"},"condition":"bancomat==\"si\"","@type":"If","id":"id_beb7aac6_a296_4b02_b6a5_9d967eb64024"}],"id":"id_4d8d102a_adff_4766_b576_dd1a509e5083"},"condition":"quantita<=10","@type":"If","id":"id_3d0464c9_3c2e_4a79_816b_0587e7d66457"}],"id":"id_da07cb24_1b80_46b9_a3c5_0ca5e6c91fdf"},"trueBlock":{"statements":[{"@type":"Assign","name":"prezzo5","id":"id_3f9aea5c_2514_43a2_97a5_53a57d9dc8f3","value":"importo-((importo*5)/100)"},{"newline":true,"@type":"Output","id":"id_62e19db5_0c8e_46fd_848a_2fba1f9b024d","value":"\"devi pagare \" + prezzo5 + \" \""},{"falseBlock":{"statements":[],"id":"id_8e6c1c1a_80f3_4275_b946_5e655ff92ba5"},"trueBlock":{"statements":[{"@type":"Assign","name":"scontob","id":"id_185b9b11_b81e_4466_8a61_bef9a2956ce7","value":"prezzo5-((prezzo5*2)/100)"},{"newline":true,"@type":"Output","id":"id_136aef55_a890_4a53_be34_b5cbd5babbab","value":"\"Con bancomat paghi \" + scontob + \"\""}],"id":"id_ab8c9e3a_04cb_4b54_9870_efa84201c343"},"condition":"bancomat==\"si\"","@type":"If","id":"id_93d0da21_f08a_41a3_a478_25353fd4786f"}],"id":"id_05afb956_8e1e_419b_b956_b28a0ca6b2a1"},"condition":"quantita<=5","@type":"If","id":"id_f7783606_dbf8_44f5_a6f7_7084fa6be60e"}],"id":"id_f7304e1a_fae7_4923_bf26_6f67fefd6343"},"condition":"quantita>2","@type":"If","id":"id_ff64f0a2_c80c_48b9_8d36_381fb0dd106a"},{"@type":"Return","id":"id_4fafe454_18a3_4d71_82f8_5ef9a88d752b","maybeValue":null}],"parameters":[]},"id":"id_18555baa_b470_4163_9a70_7407790a6887","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":852}