{"functions":[],"name":"priceAdder","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_992229da_816b_4200_82cc_fc31040a1e29"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"items","lengthValue2":"5","id":"id_80c52ac8_f669_4d33_97e3_83b0799cbd8c","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalPrice","lengthValue2":"5","id":"id_9bd14d51_7b5b_4bb8_bc19_34dc10769c3b","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"nextPrice","lengthValue2":"5","id":"id_dbb12c1c_009b_47da_a6ae_4ffdada60497","initValue":null},{"newline":true,"@type":"Output","id":"id_dbb54581_0176_466e_994d_f835afc071cc","value":"\"Please enter the price of your first item.\""},{"@type":"Input","name":"nextPrice","id":"id_48277725_9ed7_4d8a_925c_3ebfc546126e","prompt":null},{"@type":"Assign","name":"totalPrice","id":"id_17767289_3738_495d_8358_e55843247e0f","value":"totalPrice + nextPrice"},{"condition":"nextPrice != 0","@type":"While","id":"id_1cf7c500_f45d_4f8f_b92e_cd7906346872","body":{"statements":[{"newline":true,"@type":"Output","id":"id_a6aefd78_358d_4a0a_afdf_3d27bc785179","value":"\"Please enter the price of your next item.\""},{"@type":"Input","name":"nextPrice","id":"id_3561a278_3050_469b_b3bc_470213afe013","prompt":null},{"@type":"Assign","name":"totalPrice","id":"id_7f2484d4_9a92_47aa_9514_a0a47b02318d","value":"totalPrice + nextPrice"},{"@type":"Assign","name":"items","id":"id_ff42d3c1_5442_468e_b01b_16e1a3a2bef8","value":"items + 1"}],"id":"id_c61fa407_5354_4420_a2cc_350b9d3711d2"}},{"newline":true,"@type":"Output","id":"id_9177cb03_b375_4407_bdc3_ae1e36094fe4","value":"\"The total price of your \" + items + \" items is \" + totalPrice"},{"@type":"Return","id":"id_98cc250c_0b48_4d60_8a07_91f7736a4837","maybeValue":null}],"parameters":[]},"id":"id_030a7b96_3744_4c00_bafa_86b0d7da00c9","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":333}