by @Elliott Dawtrey Fork
{"functions":[],"name":"cost of restaurant bill","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_6d5e0237_4de5_47e5_aec6_d3654eedcfbe"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"item","lengthValue2":"5","id":"id_81d39c1e_5c25_4c1f_9e3e_7a26600e7071","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"total","lengthValue2":"5","id":"id_4f1075d2_b344_4ba7_b289_54d497d8e13f","initValue":"0"},{"newline":true,"@type":"Output","id":"id_d6b541e5_2acc_4e6f_8a9f_1945f5fa7c23","value":"\"enter the cost of the item and enter zero when you are finished\""},{"@type":"Input","name":"item","id":"id_73b2f5ef_4445_4b0d_8ea8_e1b40b306636","prompt":null},{"condition":"item != 0","@type":"While","id":"id_60b0a09c_6ad1_49ef_ac21_985b135b0745","body":{"statements":[{"@type":"Input","name":"item","id":"id_a2369b32_2af3_47b8_865b_eeb9a38a7cb4","prompt":null},{"@type":"Assign","name":"total","id":"id_39eaf16b_7ed7_4b5a_9c48_cea751d66764","value":"total + item"}],"id":"id_b22c1b0a_f1d9_4e8c_9f63_f7e82cbca135"}},{"newline":true,"@type":"Output","id":"id_4b563683_022e_4c33_aefc_fbefc1529567","value":"\"the total cost of your bill is \" + total"},{"@type":"Return","id":"id_692dc3a9_f728_41a7_b693_c8275346a870","maybeValue":null}],"parameters":[]},"id":"id_6daa96f1_6308_41d7_814e_62a744625f02","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":598}