by @stud. Francesco Mandaradoni Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_83229012_03fa_4412_aad9_27553ffa6b18"},{"@type":"Declare","tpe":"String","name":"nome","id":"id_61babc2b_6fdb_4f4d_b623_9f4253eb7ae1","initValue":null},{"@type":"Declare","tpe":"Integer","name":"eta","id":"id_363c95c3_7cf3_4aa7_8655_22317b972543","initValue":null},{"@type":"Declare","tpe":"Real","name":"voto","id":"id_0bf6f222_2d9f_43c3_ad0c_68c39aaf2643","initValue":null},{"@type":"Declare","tpe":"Integer","name":"n","id":"id_d630caf8_e0c4_427c_8bad_862500543a9a","initValue":null},{"@type":"Declare","tpe":"Integer","name":"v60","id":"id_60bc17bc_b205_42a8_aa81_8a4b521536d0","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"contamaggiorenne","id":"id_51e481d8_713b_464d_b880_e3692b70cdfe","initValue":"0"},{"@type":"Declare","tpe":"Integer","name":"conta","id":"id_9bc76d03_0039_4a44_9b0d_40921b3f5850","initValue":"0"},{"@type":"Input","name":"n","id":"id_9d3b66f9_c108_4c92_8768_776a909031ba","prompt":null},{"condition":"conta<n","@type":"While","id":"id_d0ecff8a_a0ee_403a_846e_70600b555069","body":{"statements":[{"newline":true,"@type":"Output","id":"id_144322cd_f086_4dfa_bee1_1031a5adc2bc","value":"\"dammi il nome\""},{"@type":"Input","name":"nome","id":"id_ccaca967_bdce_4610_b37c_1b4353708a5f","prompt":null},{"newline":true,"@type":"Output","id":"id_58cdaa14_e631_4469_a615_9d7b6cecade6","value":"\"dammi l'età\""},{"@type":"Input","name":"eta","id":"id_622a0f6f_da20_49bb_a03d_64af8f871e64","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8c41308b_5018_499a_9d75_c6e1e1b1794b","value":"nome+ \" è minorenne\""}],"id":"id_da08dd28_c7a3_4639_88fe_4e73e94a6978"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_ddf12a99_52a5_4ba0_9171_6ea5c8a65466","value":"nome+ \" è maggiorenne\""},{"@type":"Assign","name":"contamaggiorenne","id":"id_20f8c781_bd74_4a8b_89b2_6a90a27fd0ff","value":"contamaggiorenne+1"}],"id":"id_0ad06327_a03e_4757_becd_060cab54c638"},"condition":"eta>=18","@type":"If","id":"id_c9037695_2c44_4003_b89b_1376a86dd14a"},{"newline":true,"@type":"Output","id":"id_f7547ea0_79bf_48ae_9848_59add5e7c0c3","value":"\"dammi voto\""},{"@type":"Input","name":"voto","id":"id_f5828271_71ba_4371_901b_6ba76f478558","prompt":null},{"falseBlock":{"statements":[],"id":"id_68f25873_f8ea_419b_94c8_2493a50109e6"},"trueBlock":{"statements":[{"@type":"Assign","name":"v60","id":"id_86b44af2_b124_4888_8add_4fd06b357ec6","value":"v60+1"}],"id":"id_bdc8210d_8850_4680_9062_d587ad8e2cba"},"condition":"voto>=60","@type":"If","id":"id_8079baa6_062b_4dae_9c63_9f5cebf39660"},{"@type":"Assign","name":"conta","id":"id_27204cfb_c039_450a_bb13_b8f6e3f316c1","value":"conta+1"}],"id":"id_c7362fa0_9e11_43ce_83ea_ff6f89311f6e"}},{"newline":true,"@type":"Output","id":"id_92a4c37b_849e_4a1e_bf27_4a48dd7a2a3f","value":"\"gli studenti maggiorenni sono \" + contamaggiorenne + \"gli studenti con voto pari o superiori a 60 sono \" + v60"},{"@type":"Return","id":"id_80eaf37f_27b9_4a48_b182_482fd613bf9b","maybeValue":null}],"parameters":[]},"id":"id_480b06bb_a20e_461f_b5c0_4fc735814ab0","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":469}