{"functions":[],"name":"CompitoOttobre","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_c92eb03b_02e6_4e64_977b_46c28535afeb"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"modello","lengthValue2":"5","id":"id_28a5d834_d879_4604_b171_80278201654d","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"quantita","lengthValue2":"5","id":"id_88faff02_e749_48a5_ae62_1bb599a279b6","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"prezzo","lengthValue2":"5","id":"id_0999c1b6_61c2_44e4_afd1_318a934a4722","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalelordo","lengthValue2":"5","id":"id_c28fd01d_fba4_4a7a_bb20_03cef20c5438","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"politicaB2B","lengthValue2":"5","id":"id_1070758e_f247_42aa_b6b8_2721c29ceb96","initValue":null},{"newline":true,"@type":"Output","id":"id_db7059e6_da90_41cf_aad6_1e1010686bd0","value":"\"Inserire nome modello\""},{"@type":"Input","name":"modello","id":"id_88a78c75_bead_43e8_ae12_5a2aa41cae27","prompt":null},{"newline":true,"@type":"Output","id":"id_fbad34d6_a69e_490a_87fd_ac90e63b3d81","value":"\"Inserire quantità\""},{"@type":"Input","name":"quantita","id":"id_bf935c3a_07e1_4ccf_8428_b179dc5e50ce","prompt":null},{"newline":true,"@type":"Output","id":"id_1531b297_0bee_4292_9392_557ce75d7cd7","value":"\"Inserire prezzo\""},{"@type":"Input","name":"prezzo","id":"id_d1107fc4_a1fb_4679_ae31_3f19047267ed","prompt":null},{"@type":"Assign","name":"totalelordo","id":"id_5e110f40_47af_402f_88f4_599a4e90d6e2","value":"quantita*prezzo"},{"newline":true,"@type":"Output","id":"id_1a51e9ec_f288_4923_bcfe_360fd50af5a8","value":"\"L'importo totale lordo è \"+totalelordo"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"sconto","lengthValue2":"5","id":"id_c8e8d21f_6bbb_4c15_b1d3_e34aef8a157e","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalesenzaIva","lengthValue2":"5","id":"id_0397f90f_d7b9_43a9_a3e6_436b6c7deece","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totale","lengthValue2":"5","id":"id_f710539c_002c_4125_a815_6b06161ad394","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"iva","lengthValue2":"5","id":"id_8c80ba5a_8e37_46e5_91ae_0a216f93a821","initValue":null},{"newline":true,"@type":"Output","id":"id_c2b37b13_be50_4939_a829_e125f23c5b50","value":"\"Politica B2B inserire 1\""},{"@type":"Input","name":"politicaB2B","id":"id_9aaa159a_f19d_4cdc_b82a_efb49c82f197","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_b65c153f_4af5_4b45_9530_d33f15a8d969","value":"totalelordo*0.03"}],"id":"id_5bd7ff37_c8a1_460c_8a4c_8b5fb8e469e5"},"trueBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_033e524e_b828_4b94_9dd8_21d70b0bfe39","value":"totalelordo*0.10"}],"id":"id_81eaa7c2_5cc2_464f_8493_a501dcc69b06"},"condition":"totalelordo>5000","@type":"If","id":"id_de148720_8bc2_4729_89c1_4581b31ab15c"}],"id":"id_e0204f7c_bcd0_4410_a44f_213dc106fbee"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_806ca083_e880_4f3c_a681_e0203328c18b","value":"totalelordo*0.05"}],"id":"id_19cb1fc4_c1a8_41e9_bfad_c431b40bd21a"},"trueBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_7e576bcb_8c4f_4497_833b_1a98be9ca793","value":"totalelordo*0.15"}],"id":"id_04ba1276_8641_4149_8b94_d7a124ba0088"},"condition":"totalelordo>10000","@type":"If","id":"id_09862aa1_045a_4d75_ac97_75f7fc2428b5"}],"id":"id_6d8a91b1_7359_456c_a624_b8771d8612d0"},"trueBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_483968c1_15ae_4ec3_b9da_66612211aa29","value":"totalelordo*0.15"}],"id":"id_a8f329b6_5acc_47ff_91a2_8ece5212f563"},"condition":"quantita>20","@type":"If","id":"id_c28c9cdc_8667_4ab5_8b0a_c8c0580c5cb3"}],"id":"id_5005f7b4_916b_43fb_aaa0_9a3badc4c6f2"},"condition":"politicaB2B==1","@type":"If","id":"id_a40cfadc_0e06_4bcb_aed8_507f62e4f8e8"},{"@type":"Assign","name":"totalesenzaIva","id":"id_ee4dd15c_e68c_462b_91f5_ba845a2cac9e","value":"totalelordo-sconto"},{"@type":"Assign","name":"iva","id":"id_664c3300_4f5d_4e0b_b23d_cdeab2306b8b","value":"totalesenzaIva*0.22"},{"@type":"Assign","name":"totale","id":"id_027fa5e6_6f20_4f85_9877_81f7c4caf55e","value":"totalesenzaIva+iva"},{"newline":true,"@type":"Output","id":"id_f7e9cbe3_00d8_4261_8698_80f3949c2dc1","value":"\"Per il modello \"+modello+ \"il totale ivato= \"+totale"},{"@type":"Return","id":"id_2dabe5f8_d437_4e99_b160_0ff282677164","maybeValue":null}],"parameters":[]},"id":"id_5b940d73_e25e_4009_a578_f7007a113cac","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":813}