by @Leonard Tomaszewski-Mbianda Fork
{"functions":[],"name":"Cost of commute","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_63a5ec19_80fc_43ff_b364_0ae0462c01a9"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"csmn","lengthValue2":"5","id":"id_9c6da74d_7de5_4afa_b842_ca4af97d5135","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"ppl","lengthValue2":"5","id":"id_d89ba218_a11d_49ae_8e23_c0c2eced45f2","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"dist","lengthValue2":"5","id":"id_8b325066_462e_446b_bcb7_f689f0d7e115","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"cocmt","lengthValue2":"5","id":"id_136a5be7_2c82_4bf8_83d1_5355a29f530b","initValue":"0"},{"newline":true,"@type":"Output","id":"id_dc175c13_6450_4939_8029_95a8cfb72dda","value":"\"What is your car's fuel consumption\""},{"@type":"Input","name":"csmn","id":"id_905a4815_1e6b_4fa9_9933_fd9fb058dc24","prompt":null},{"newline":true,"@type":"Output","id":"id_301e97e6_c5e5_4c96_a0f9_f5a6b258a760","value":"\"What is your gas station's price per litre\""},{"@type":"Input","name":"ppl","id":"id_48719c93_a5cb_4ce5_868c_64fcda4e10b5","prompt":null},{"newline":true,"@type":"Output","id":"id_450b81e9_0550_4405_aaee_97f9dc3219e1","value":"\"What is the distance of your commute\""},{"@type":"Input","name":"dist","id":"id_61e01da4_3b85_488e_9f1d_9ad87f26f413","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_2d946e0f_bc94_4d0d_9d37_92eafe99afe4","value":"\"Invalid\""}],"id":"id_3371f53b_4e5b_4872_8366_2e3d035bf12a"},"trueBlock":{"statements":[{"@type":"Assign","name":"cocmt","id":"id_5193c97a_d424_4f9b_aa96_eec5bc077459","value":"(ppl / csmn) * dist"},{"newline":true,"@type":"Output","id":"id_94f89726_530f_437f_9362_b341336ea03c","value":"\"The cost of your commute is\" + cocmt"}],"id":"id_e3d8cde9_3458_47a8_a307_8d3e66a92a30"},"condition":"ppl > 0 AND cmsn > 0 AND dist > 0","@type":"If","id":"id_bb41a3c3_6efc_4e8b_8c57_eafecbaae945"},{"@type":"Return","id":"id_fbce52dc_4bfe_41b1_8e88_65150dba068b","maybeValue":null}],"parameters":[]},"id":"id_c1f83d6e_5c05_47e2_915f_6f80abde6d02","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":652}