by @stud. Marco Barlascini Fork
{"functions":[],"name":"<5 no sconto, >=5 <10 sconto 5% p.u., 10>= 10%","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_290e6629_0125_4175_a77b_12ae60b33583"},{"@type":"Declare","tpe":"Integer","name":"prezzounitario","id":"id_6fc3d410_5a96_422e_96a2_65e4551a00a6","initValue":null},{"@type":"Declare","tpe":"Integer","name":"quantita","id":"id_3fa0d843_e5e9_4cd9_955b_7eb578c73a85","initValue":null},{"@type":"Declare","tpe":"Integer","name":"prezzofinale","id":"id_bca8a62e_42f4_40f0_a18e_cfe3a0dc9c95","initValue":null},{"newline":true,"@type":"Output","id":"id_1d3f4b84_f8cf_4e72_ac82_462bfcf6f74e","value":"\"quanto costa 1?\""},{"@type":"Input","name":"prezzounitario","id":"id_8dcaa9da_4aa1_4074_a998_63ba43d8c7b1","prompt":null},{"newline":true,"@type":"Output","id":"id_65872efb_c6e7_4f7c_ab3a_eb254bd3114d","value":"\"quanti ne hai comprati?\""},{"@type":"Input","name":"quantita","id":"id_d6a2c430_e9d7_4df8_b5dc_12eedb2e622d","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_9e8515cd_f6f9_4028_be7e_76312eb73e47","value":"\"paga 10000€\""}],"id":"id_9b3e6d68_9545_43cc_b5ec_d4398eee0cfd"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_95512ce0_9052_4200_a304_7e85c26fa552","value":"\"Il più grande è:\""},{"@type":"Assign","name":"prezzofinale","id":"id_002703bb_6d21_4ce5_aa69_0fa46324bd95","value":"(quantita*prezzounitario)-(((quantita*prezzounitario)*10)/100)"}],"id":"id_f3b472df_0ccc_401f_b42c_e0f346da364f"},"condition":"quantita>=10","@type":"If","id":"id_e00319ef_4c92_4244_b5bd_da8024f60ef2"}],"id":"id_ba480277_f700_4442_8ee0_a9cd7c4a7756"},"trueBlock":{"statements":[{"@type":"Assign","name":"prezzofinale","id":"id_9f1423ec_b811_46fa_9e28_f60aed6347c1","value":"(quantita*prezzounitario)-(((quantita*prezzounitario)*5)/100)"},{"newline":true,"@type":"Output","id":"id_a12e8eb3_75d6_47e8_9cd6_079152494f5e","value":"\"Il più grande è:\""}],"id":"id_f6f4af3f_9b4d_41da_8018_1f463fb29a0e"},"condition":"quantita<10","@type":"If","id":"id_9e5b17cc_13ad_4e4f_beae_188a17b98a74"}],"id":"id_d961397f_73d9_4499_bb1d_d00f35268855"},"trueBlock":{"statements":[{"@type":"Assign","name":"prezzofinale","id":"id_8a7f0561_cfe2_4197_a701_efb45c33e922","value":"prezzounitario*quantita"},{"newline":true,"@type":"Output","id":"id_cd9c704d_59fe_48ac_9239_075f223efe27","value":"\"Il più grande è:\""}],"id":"id_df51c2ef_f935_4ea3_b994_4692c7cfc16a"},"condition":"quantita<5","@type":"If","id":"id_2503c078_76a8_424d_848c_1d1fb23a2a11"},{"@type":"Return","id":"id_4c2f74ea_4fd8_4058_8740_5821e206213b","maybeValue":null}],"parameters":[]},"id":"id_801a251e_6cc9_4d99_b54c_c899b6520604","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":433}