{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_05f58296_8096_4745_828a_a5a01e43f461"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"consumption","lengthValue2":"5","id":"id_4398c8b9_a010_4a65_b556_a9e56fa2c183","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"pricePerLitre","lengthValue2":"5","id":"id_7c388df8_110c_464c_8811_2d3a274b2f38","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"distance","lengthValue2":"5","id":"id_3fbaca7e_7a4e_4b73_bf7d_4312202387cf","initValue":"0"},{"@type":"Input","name":"consumption = float(input(\"enter consumption in miles per litre\"))","id":"id_4a2de7be_c8c7_4550_b001_1a63a7f3644f","prompt":null},{"@type":"Input","name":"pricePerLitre = float(input(\"enter price per litre in £\"))","id":"id_9fcc445b_84b9_4107_8e75_115c0449c975","prompt":null},{"@type":"Input","name":"distance = float(input(\"enter distance in miles\"))","id":"id_2047a74b_4be1_42c5_8413_5d2564f4b485","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalCost","lengthValue2":"5","id":"id_0e1ed04d_c5b8_40c3_8afa_8ccdfb574088","initValue":"(pricePerLitre/consumption)*distance"},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8d2a7506_4b90_49ee_abed_e7ebeba4ef97","value":"totalCost"}],"id":"id_8555cad5_866a_4648_b864_ec1624d5fd17"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b5d2d90a_f511_4730_962a_c555aa7f9aa3","value":"\"-1\""}],"id":"id_3ce04a38_c18e_49ce_a6cc_e260621950d2"},"condition":"distance<=0","@type":"If","id":"id_6809348a_9f10_4e09_b495_c1bd4853f9d9"}],"id":"id_bb7e2337_3e25_4977_951b_acc54defbb85"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_16c45b18_5856_44e0_9575_7d3009d89d81","value":"\"-1\""}],"id":"id_17a231e4_0e1b_41c3_bcf5_a8d682d61098"},"condition":"pricePerLitre<=0","@type":"If","id":"id_e0a429ea_88f5_436e_860b_f89fc27806a0"}],"id":"id_3cad04c1_242a_46f6_b5bb_5671fa112362"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_138bd85f_5773_450d_bcef_f96e6650ef40","value":"\"-1\""}],"id":"id_86d23065_554b_4fc4_84bf_6ffbe1c80b9f"},"condition":"consumption<=0","@type":"If","id":"id_0bf40dd1_7be7_490c_8f0e_bee88fc851dc"},{"@type":"Return","id":"id_47bfdf0b_108a_4c18_b9c4_fd30771aff9f","maybeValue":null}],"parameters":[]},"id":"id_96423c52_2495_46d4_ae78_9105fee8a09f","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":595}