by @prof. Giovanna Mannarino Fork
{"functions":[],"name":"Tornatore_1","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_2c916b4b_cfa3_42f6_bcc0_8facc13fa2fd"},{"@type":"Declare","tpe":"Integer","name":"dipendenti","id":"id_c4d4be37_7fed_42a2_baf0_6aaa9622bd8a","initValue":null},{"@type":"Declare","tpe":"String","name":"nome","id":"id_7326c44d_e65b_4f96_90e8_0b01c492f82e","initValue":null},{"@type":"Declare","tpe":"Real","name":"totale","id":"id_c2f99c8a_6055_4959_9d53_fef5e4956ae7","initValue":null},{"@type":"Declare","tpe":"Integer","name":"A","id":"id_db703e18_4466_4a83_be91_7f76aaf0859e","initValue":null},{"@type":"Declare","tpe":"Integer","name":"B","id":"id_035cb716_9e40_4645_bf06_1a4f5c72cdc1","initValue":null},{"@type":"Declare","tpe":"Integer","name":"C","id":"id_3785c3fd_d51a_4820_8aca_ff6c1e974d23","initValue":null},{"@type":"Declare","tpe":"Integer","name":"anni","id":"id_b993371f_a9f4_4fff_8f6a_ebd4a41d0f0e","initValue":null},{"@type":"Declare","tpe":"Integer","name":"conta","id":"id_ed510fd6_eeda_435c_a274_de21cebd13f9","initValue":"1"},{"newline":true,"@type":"Output","id":"id_c9f3eede_df93_44bc_84b0_9f65a578cfbf","value":"\"Quanti sono i dipendenti?\""},{"@type":"Input","name":"dipendenti","id":"id_e7c111df_e458_4693_a0d8_44ed54ec2bab","prompt":null},{"condition":"conta<=dipendenti","@type":"While","id":"id_2aa60c3f_cd35_417e_bc7b_7c9f7daf5559","body":{"statements":[{"newline":true,"@type":"Output","id":"id_4c323c54_8cd7_4e4b_b32b_5506a56c01f2","value":"\"Dimmi il nome del dipendente\""},{"@type":"Input","name":"nome","id":"id_5b3fcefd_c21d_43d6_830a_6664cb69350d","prompt":null},{"newline":true,"@type":"Output","id":"id_3cdd928a_b478_42f8_8065_02aad8f70341","value":"\"Quanto è la prima parte dello stipendio?\""},{"@type":"Input","name":"A","id":"id_5640a873_13ef_4091_869d_71503e5f5d46","prompt":null},{"@type":"Assign","name":"A","id":"id_f1e15dee_17af_4143_878a_628c2088e30b","value":"A-(A/100*19)"},{"newline":true,"@type":"Output","id":"id_072ca11c_e3db_45da_aa86_3074a0b5ffa4","value":"\"Quanto è la seconda parte dello stipendio?\""},{"@type":"Input","name":"B","id":"id_907290e7_f490_489c_84fd_1c919affdad4","prompt":null},{"@type":"Assign","name":"B","id":"id_2dd2bdcf_f9f4_4016_9075_e2e28ff7542d","value":"B-(B/100*19)"},{"newline":true,"@type":"Output","id":"id_b618bddb_e202_4c0f_b585_5d60b5f094fb","value":"\"Quanto è la terza parte dello stipendio?\""},{"@type":"Input","name":"C","id":"id_d439a67c_701d_44fb_ac90_a838a5d8a800","prompt":null},{"@type":"Assign","name":"C","id":"id_d091bddc_eeb3_4d33_a940_b975ad1fe94e","value":"C-(C/100*19)"},{"@type":"Assign","name":"totale","id":"id_aecadff1_f9a0_41f9_8bd5_8fcc2ece161f","value":"A+B+C"},{"newline":true,"@type":"Output","id":"id_cd4d64e5_9a2a_448b_8e62_6593fe28f677","value":"\"Da quanti anni lavora il dipendente?\""},{"@type":"Input","name":"anni","id":"id_803dece7_ccc8_4d25_a9d6_10100297a38f","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_df7e9c7e_cb90_4cc0_8a9b_5ab02da9cbfb","value":"nome+\" lavora da meno di 8 anni\""},{"@type":"Assign","name":"totale","id":"id_eb46e48f_913d_4542_87e1_be8275d7e7d0","value":"totale-(totale/100*0.5)"}],"id":"id_13532ff0_2d93_46c1_ad48_e527d8ac68cb"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_754ca884_5505_4b93_aa10_a830ab25a991","value":"nome+\" lavora da almeno 8 anni\""},{"@type":"Assign","name":"totale","id":"id_a394c993_bc74_44fe_afa8_4221297dfb00","value":"totale-(totale/100*0.3)"}],"id":"id_73805e6a_2f2b_4fbd_8e62_2194902d797a"},"condition":"anni>=8","@type":"If","id":"id_49cffde2_52ec_4207_b1b4_87772df15f84"},{"@type":"Assign","name":"conta","id":"id_24f4ce8d_fd38_4ea2_9570_21d16188afe8","value":"conta+1"},{"newline":true,"@type":"Output","id":"id_1f1ed10a_458c_4463_9381_7e79f14bff4f","value":"\"Il totale netto di \" +nome+\" è \"+totale"}],"id":"id_8d4e5f46_6062_45d7_98d0_ab56356eed65"}},{"@type":"Return","id":"id_6191f6f0_a8c4_4a5e_aa0a_3d72858e1c97","maybeValue":null}],"parameters":[]},"id":"id_dc5aca12_9404_450e_89e2_f9402a3aafd1","config":{"showDebugVars":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":514}