{"functions":[],"name":"5 - Simple ATM Withdrawal","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_362fcba3_9e46_467e_9e6f_bceb7201e4bd"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_c73ecd33_33fe_4543_825e_87a4458669a1","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"withdrawal","lengthValue2":"5","id":"id_65f924d0_b78a_4ad6_815e_e4e0b13c056b","initValue":null},{"@type":"Input","name":"balance","id":"id_5441b29a_aa44_4073_823b_f3a2376d885c","prompt":"Enter account balance:"},{"@type":"Input","name":"withdrawal","id":"id_893589de_c85e_4e44_ada5_9c8f4b5890cc","prompt":"Enter withdrawal amount:"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8c03c772_86c1_42a6_a9db_0bf893da4363","value":"\"Insufficient Balance or Invalid Amount\""}],"id":"id_97757587_b859_4ed8_919e_99e56ec53fd6"},"trueBlock":{"statements":[{"@type":"Assign","name":"balance","id":"id_ef4461d9_275e_47e4_b23b_7a3d8cfd3c9b","value":"balance-withdrawal"},{"newline":true,"@type":"Output","id":"id_a21f356f_d336_4976_bac7_43af42cd52d5","value":"\"Withdrawal Successful\""},{"newline":true,"@type":"Output","id":"id_e525ecfc_0843_4686_a530_92a36077c8cd","value":"\"Remaining Balance = \" + balance"}],"id":"id_f3f567eb_4d3d_47c5_b15a_ae96ffe58740"},"condition":"withdrawal>0 && withdrawal<=balance","@type":"If","id":"id_57747100_0666_4441_aa39_eefaac93bc49"},{"@type":"Return","id":"id_7448911b_225c_4f1f_8c3c_4b34f468b73d","maybeValue":null}],"parameters":[]},"id":"id_8cd9b43a_d7af_4756_aea5_3579291159be","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":true,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":true},"version":"0.3","revision":125}