{"functions":[],"name":"Total Bill","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_b836d603_a006_4ce3_9fc1_8148284850c6"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"price","lengthValue2":"5","id":"id_3d54e978_f13d_4604_8093_639c90409d16","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"100","tpe":"Real","name":"total","lengthValue2":"5","id":"id_83f03ece_fa02_4c44_b631_a6351528de9b","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"item","lengthValue2":"5","id":"id_958912a4_0d98_467f_9f5c_3457b88dd61e","initValue":"1"},{"newline":true,"@type":"Output","id":"id_6bbd5afb_c451_49f9_9f0c_bee316c08756","value":"\"This program will ask you for prices and when you enter 0 will tell you the total cost of the bill!\""},{"newline":true,"@type":"Output","id":"id_12352c89_ebb0_4059_9beb_3f9a6b83b7ab","value":"\"What is the price of item \" + item + \"?\""},{"@type":"Input","name":"price","id":"id_ecae7ea3_5ed1_4c8b_a71e_5b20cc12a1b1","prompt":null},{"@type":"Assign","name":"total","id":"id_5b1890d4_640e_42be_82e3_239200a17ab0","value":"total + price"},{"condition":"price != 0","@type":"While","id":"id_9dec8408_39ae_4071_b0a5_215b9c1095a7","body":{"statements":[{"@type":"Assign","name":"item","id":"id_8332e24d_842a_42c1_9e6c_fd6f6e68db00","value":"item + 1"},{"newline":true,"@type":"Output","id":"id_e11a6415_fd31_4ff5_a490_5b2c05c1f472","value":"\"What is the price of item \" + item + \"?\""},{"@type":"Input","name":"price","id":"id_16456c06_2892_4c11_904c_d70bfb454303","prompt":null},{"@type":"Assign","name":"total","id":"id_72d51e8d_b88e_4541_a3ff_3e30a2fd7549","value":"total + price"}],"id":"id_3188d85a_35c2_4afc_9a79_2309b04aced0"}},{"newline":true,"@type":"Output","id":"id_e894874f_b930_43f2_aae7_e9f64af9c3df","value":"\"Your total bill is £\" + total"},{"@type":"Return","id":"id_5e62b77f_db24_4cfc_8289_72a144864b3e","maybeValue":null}],"parameters":[]},"id":"id_6040f407_14da_4ef3_bacb_76b84e3acc94","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":353}