by @Zach Knight Fork
{"functions":[],"name":"bill calc","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_3323ef43_6024_4ada_bb7f_75d43995bf5f"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"newitem","lengthValue2":"5","id":"id_b474c5b3_1811_4922_9848_1d7c4484f016","initValue":"1"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"price","lengthValue2":"5","id":"id_f9ed9e6d_f1d0_47d1_bde4_edd4e65e49c0","initValue":"0"},{"newline":true,"@type":"Output","id":"id_fcea9342_0452_4929_b5fd_8fbc1640f42e","value":"\"Hello! Welcome to the restutant!\""},{"newline":true,"@type":"Output","id":"id_a9d37bd6_6c6f_4764_a9e1_82db069199f1","value":"\"What is the price of your first item? (Press 0 to finish)\""},{"condition":"newitem != 0","@type":"While","id":"id_3fe58b7a_cc33_400f_900c_bce255b9ac4f","body":{"statements":[{"@type":"Input","name":"newitem","id":"id_79e3218e_5c4c_438f_83f8_60557a7c3d36","prompt":null},{"newline":true,"@type":"Output","id":"id_ac0043cd_6e5f_4ea1_93c4_049f60c3a6c1","value":"\"The price has been added to your total.\""},{"@type":"Assign","name":"price","id":"id_27098110_d7a6_4f08_b4a7_7d244dcb6f89","value":"price + newitem"},{"newline":true,"@type":"Output","id":"id_3a519335_0c2b_4425_a497_13148ac7bb57","value":"\"Anything else? (press 0 to finish)\""}],"id":"id_57c5287f_7c59_42ba_b471_f86991bef962"}},{"newline":true,"@type":"Output","id":"id_09ef08da_bffd_4dfa_8647_329c65f441d8","value":"\"Thank you. Your total is £\" + price"},{"newline":true,"@type":"Output","id":"id_b8632bee_b200_4c51_a8c8_ab2bfb7f1af8","value":"\"\""},{"@type":"Return","id":"id_6c32ff9d_5c93_4577_b7ad_86cff8da21bb","maybeValue":null}],"parameters":[]},"id":"id_396b3bef_9a69_4970_bed2_b85c85a91715","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":371}