by @Deadby Daylight Fork
{"functions":[],"name":"compito","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_435157a4_563e_4626_b1b9_16d3e5cca9e2"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"quantita","lengthValue2":"5","id":"id_5c2cdab6_9ce6_4208_b918_18a9bb284a09","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalelordo","lengthValue2":"5","id":"id_4858b6d5_3153_4d46_aaad_2d749561f793","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"sconto","lengthValue2":"5","id":"id_f861d110_0b37_4a7b_9a9e_18dd458e31f2","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalenetto","lengthValue2":"5","id":"id_f5b66748_08e5_4d5b_9ca2_b97ddefbe02c","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"prezzoscontato","lengthValue2":"5","id":"id_08e72413_2b60_475a_bcc4_fc8ed90a9b7f","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"iva","lengthValue2":"5","id":"id_7b8753bd_9723_43c4_bac9_21dbe3066181","initValue":null},{"newline":true,"@type":"Output","id":"id_db14869d_2dc4_4af1_ad80_1e5376f40b96","value":"\"totalelordo?\""},{"@type":"Input","name":"totalelordo","id":"id_a4ec52c3_1071_4063_a239_18ab93de0ff5","prompt":null},{"newline":true,"@type":"Output","id":"id_f835b856_88f0_4b38_932b_14afb9be63d6","value":"\"quantita\""},{"@type":"Input","name":"quantita","id":"id_e5e936f5_6699_49d5_8cb6_3b74c0ab6cae","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_59634cac_754b_416d_8a6a_7c0d1a8d1b10","value":"totalelordo * 5 / 100"}],"id":"id_74032e8b_5cc5_4b99_9fa1_f2ae86202b3f"},"trueBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_0a695487_1082_4012_ad1e_ec1326713185","value":"totalelordo * 15 /100"}],"id":"id_0fd89c01_53a0_4a5a_bf07_77567d17a2b3"},"condition":"totalelordo > 10000","@type":"If","id":"id_5ff78d37_2d7d_4553_bf89_a2282f2b5782"}],"id":"id_29b4292c_f19a_4aa5_99b5_a0b504e92504"},"trueBlock":{"statements":[{"@type":"Assign","name":"sconto","id":"id_627e5ee1_f7f8_4e12_a9b5_a0ddf151af00","value":"totalelordo * 15 /100"}],"id":"id_016f886c_4f63_4647_93c2_45c05501b439"},"condition":"quantita > 20","@type":"If","id":"id_ba10d02f_9c71_4193_a6c6_9500dd1e3f45"},{"@type":"Assign","name":"prezzoscontato","id":"id_e7a3b85c_f9d6_43a0_9767_4ecd2cc62a28","value":"totalelordo - sconto"},{"@type":"Assign","name":"iva","id":"id_d3d711f5_7b88_4c41_861c_9aa69d015dbc","value":"prezzoscontato * 22 / 100"},{"@type":"Assign","name":"totalenetto","id":"id_3b9c3253_82df_45e8_85ce_b988c9b8ba0f","value":"prezzoscontato + iva"},{"newline":true,"@type":"Output","id":"id_385a4bb0_2fa8_4f51_9a6f_fc619d8ddc14","value":"totalenetto"},{"@type":"Return","id":"id_b35ea820_eb0b_4757_b5a5_e7daa63a6bf5","maybeValue":null}],"parameters":[]},"id":"id_5a2daee4_6c43_4391_a68b_065078befb48","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":544}