by @stud. Ester Haka Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_01013b8a_bba7_4ce0_88b7_96da94c2e309"},{"@type":"Declare","tpe":"Integer","name":"p","id":"id_ee7bf21a_b616_4169_bf6a_ebf00ef3dfcd","initValue":null},{"@type":"Declare","tpe":"Integer","name":"q","id":"id_cfb54ce4_53a2_4dcd_9328_7adb1fd91ca6","initValue":null},{"@type":"Declare","tpe":"Integer","name":"tot","id":"id_2a592480_0848_4a61_bfc2_5e7e12754f51","initValue":null},{"@type":"Declare","tpe":"Integer","name":"ps","id":"id_55a3dd72_704e_4620_a06a_021ad21cbf47","initValue":null},{"newline":true,"@type":"Output","id":"id_74a80d1b_a78e_43cf_92bc_700c5dd7e987","value":"\"dammi p\""},{"@type":"Input","name":"p","id":"id_1b55ad18_ade2_442d_bd29_641cdedb3788","prompt":null},{"newline":true,"@type":"Output","id":"id_d7cd2998_698c_4350_ac66_d54605db24ab","value":"\"dammi q\""},{"@type":"Input","name":"q","id":"id_eb37f72a_3ce4_484b_9622_7065a916802f","prompt":null},{"@type":"Assign","name":"tot","id":"id_63563ad0_e41d_4e6b_9574_cb239e61b722","value":"p*q"},{"newline":true,"@type":"Output","id":"id_35acfd18_64fe_4c8a_b7c2_38f88e3a0da6","value":"\"il tot senza sconto è\""},{"newline":true,"@type":"Output","id":"id_a4fcd8af_8976_4012_91c9_dccf387a81c5","value":"tot"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"ps","id":"id_6e81dca1_62c8_4cee_9749_a022b0f9dae9","value":"tot-((tot*5)/100)"},{"newline":true,"@type":"Output","id":"id_711dd658_0f80_4adf_b0b8_9644fa2bc435","value":"\"il prezzo scontato è\""},{"newline":true,"@type":"Output","id":"id_7712b65d_60d0_4b68_9036_9c56caaea0c8","value":"ps"}],"id":"id_86e8faa3_a942_4dbf_bf7b_451d3d5b9696"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a2a1c0ce_a078_48be_b603_503f15ce54a7","value":"\"il tot non si può scontare\""},{"newline":true,"@type":"Output","id":"id_210a7b0c_5bcd_4c40_b6b6_cae8b05b97d9","value":"tot"}],"id":"id_dd85815c_8d15_4598_8403_7148ac6a44c0"},"condition":"q<5","@type":"If","id":"id_8c7f0b20_04d3_48df_9bd6_6cc1d8618068"}],"id":"id_091a55c0_223b_41f6_9324_ef5fa47fa6d9"},"trueBlock":{"statements":[{"@type":"Assign","name":"ps","id":"id_e59859a4_0a85_4c1a_b28b_e3d55e4c984f","value":"tot-((tot*10)/100)"},{"newline":true,"@type":"Output","id":"id_265815af_302a_4154_8beb_24ce5b4e6ceb","value":"\"il prezzo scontato è\""},{"newline":true,"@type":"Output","id":"id_44a38170_d1fe_41c4_9f85_b7298dc5ba80","value":"ps"}],"id":"id_780bb94a_8fef_4726_b6dc_69c290bb7b4b"},"condition":"q>10","@type":"If","id":"id_f64ba18a_bf09_4c46_80d1_a344143113e2"},{"@type":"Return","id":"id_b8805708_f8a3_4b54_85cf_29d4c470dc32","maybeValue":null}],"parameters":[]},"id":"id_208da6c3_86ec_46ec_99cf_5bfc81c610f5","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":223}