by @Samuel Burridge Fork
{"functions":[],"name":"Restraunt_Bill","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_66784e5c_e937_4351_8610_043f716b2f29"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_ca5dfa9e_4fc2_4d1c_bd29_ea9d8c156450","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"bill","lengthValue2":"5","id":"id_fa0e9723_1d76_4301_b1e2_41ae111ef720","initValue":null},{"newline":true,"@type":"Output","id":"id_63231083_ca1e_4d81_8484_dabfa6b9dab5","value":"\"Welcome to my restraunt, add the price of the item onto the bill and when you have finished your order just cli"},{"newline":true,"@type":"Output","id":"id_a968f23d_7593_45d8_9905_1bfc8134b611","value":"\"What would you like to order sir\""},{"@type":"Input","name":"bill","id":"id_820612b6_a1cf_4119_917d_47e1e448237f","prompt":null},{"@type":"Assign","name":"price","id":"id_34099dde_eba2_439a_b6b9_d95cc5393503","value":"price + bill"},{"condition":"bill != 0","@type":"While","id":"id_d425c80e_f75d_42e1_95c3_8a7f1f322c08","body":{"statements":[{"newline":true,"@type":"Output","id":"id_4354c6c4_1d9d_47b2_8b9a_5569bd3b5335","value":"\"Anything else sir?\""},{"@type":"Input","name":"bill","id":"id_80e09bc1_6211_4a67_a04f_ba0bdc64b1bc","prompt":null},{"@type":"Assign","name":"price","id":"id_2091b8d0_992a_4099_b87d_205268a9748a","value":"price + bill"}],"id":"id_93cb5981_334c_422f_a693_0490519ba739"}},{"newline":true,"@type":"Output","id":"id_cbd2558c_763c_4134_bd18_d14467768bf0","value":"\"The total price of the bill is \" + price"},{"@type":"Return","id":"id_ab075d5a_6889_4459_81ab_0dc413fc89a8","maybeValue":null}],"parameters":[]},"id":"id_8b5bcc8c_75e9_4d2d_a096_ebe79a196b7b","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":481}