by @Erichsen Ni Fork
{"functions":[],"name":"Restaurant","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_aade6715_5eff_493d_b5c9_6e77b76bf89c"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Items","lengthValue2":"5","id":"id_0a5a20f4_4e7c_466c_b9a6_fc7b036601df","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Cost","lengthValue2":"5","id":"id_4906628a_d40c_4767_9e17_c3a60db1bab2","initValue":"0"},{"newline":true,"@type":"Output","id":"id_879e2008_34b5_4399_915e_37ec514dacd2","value":"\"All of the items on your menu are in pounds and do not have any extra pence. Please state the costs of the items you have bought, and I will add up the prices to bring you your final bill. Please put in a 0 when you have stated all of your items. Tips are appreciated.\""},{"@type":"Input","name":"Items","id":"id_516f691d_d5da_46c2_9b68_f2a09c401f4c","prompt":null},{"condition":"Items>0","@type":"While","id":"id_1d5c8aa3_d78c_448f_ab5c_3ee073cf9375","body":{"statements":[{"@type":"Assign","name":"Cost","id":"id_f7741173_f35d_4171_9c61_e0c889733625","value":"Cost + Items"},{"@type":"Input","name":"Items","id":"id_864f66f1_51fd_4a59_b4a4_d6b86162b0f4","prompt":null}],"id":"id_7d4c7c4e_fb12_4db6_bb0b_194cb62a2374"}},{"newline":true,"@type":"Output","id":"id_4eaf744c_2bcb_48e1_8706_30422cd8f9ba","value":"\"Your final cost is \" + \"£\" + Cost + \".\""},{"@type":"Return","id":"id_4a7b1216_1554_4ec0_b621_d554af8a453c","maybeValue":null}],"parameters":[]},"id":"id_4ab4002b_df84_4016_83d6_5c257040f41c","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":486}