{"functions":[],"name":"Bank flow chart","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_4f251620_e55b_4018_b1c4_99d6dc082072"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_207044f7_06d3_49cb_a9e1_79eaba968a6c","initValue":"2000"},{"newline":true,"@type":"Output","id":"id_de32f8e0_fc8d_469f_8d29_96c663f25f68","value":"\"Welcome to the bank: St Albans branch\""},{"newline":true,"@type":"Output","id":"id_4a07815d_de79_43b7_8e80_0db8d8d6bc42","value":"\"Whats your official name?\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"2","tpe":"String","name":"name","lengthValue2":"5","id":"id_f1bea491_f97c_4614_a478_dea94a42c7ab","initValue":null},{"@type":"Input","name":"name","id":"id_ecc6bad6_940d_4994_b25a_79ae8a9b0b9f","prompt":null},{"newline":true,"@type":"Output","id":"id_ba000ecf_bc19_4158_9a70_6ff98c527fe6","value":"\"Hello \"+name+\" ,what can we do for you today.\""},{"newline":true,"@type":"Output","id":"id_bd2cc65b_14e5_4f12_a079_36a47ed47d31","value":"\"We have a range of options including: withdrawal (1) , depositing (2) , and cheques (3) .\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"1","tpe":"Integer","name":"option","lengthValue2":"5","id":"id_5a406b01_cf8f_4d19_add0_1fd42430ec88","initValue":"1/2/3"},{"@type":"Input","name":"option","id":"id_4f23a9ab_6b78_494b_aef4_6085e1b2f747","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_9e1927c6_a59d_411a_9fa3_5d27e9fd0471"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3b090c8b_0707_4891_b06b_9bf48e8eec22","value":"\"You have chosen: cheque\""},{"newline":true,"@type":"Output","id":"id_c466ec49_28d6_4376_9ead_b24aa78aa1f9","value":"\"Would you like to cash in (1) or write a cheque (2) ?\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"1","tpe":"Integer","name":"option2","lengthValue2":"5","id":"id_cc78ad36_6b68_4e87_be84_d3e7a5160d71","initValue":null},{"@type":"Input","name":"option2","id":"id_820c6ab8_2a03_4f48_b8df_e99842332b85","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_df02e67f_243a_4454_968b_966c5b98adf5"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_70ca2b95_8d95_4550_9814_2631d4512cb4","value":"\"You have chosen: write cheque\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"cheque2","lengthValue2":"5","id":"id_a092b510_627e_421b_a3e4_29222ba417f2","initValue":null},{"newline":true,"@type":"Output","id":"id_2afcc268_1fee_4680_b162_291de4632049","value":"\"How much money would you like to write on your cheque?\""},{"@type":"Input","name":"cheque2","id":"id_39148455_3e45_4e22_bbf9_3daee2831ab9","prompt":null},{"falseBlock":{"statements":[{"@type":"Assign","name":"balance","id":"id_f2cfc59e_7b8c_49b8_b2fe_d7bdc5e42fb6","value":"balance-cheque2"},{"newline":true,"@type":"Output","id":"id_81bbb41c_36a3_4192_a732_4749cca90847","value":"\"Funds cleared for : £\"+cheque2"}],"id":"id_a86915ef_b696_46ff_9bf9_0e2d3a6ea39e"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_5145747c_554f_4824_9f0b_cfecaa5a199d","value":"\"Required amount exceeds current balance - please cash in cheque or deposit\""}],"id":"id_63773c81_093e_499b_ade8_4a021d77da3c"},"condition":"balance<cheque2","@type":"If","id":"id_5f6bcf63_3ee6_49dd_8bcd_843913f3fa1d"}],"id":"id_de329cc3_2714_46a6_b336_d00981fd1d1f"},"condition":"option2==2","@type":"If","id":"id_fa113873_958e_4848_9107_1e44163c8e7e"}],"id":"id_f294fd9d_9332_45ac_b4f2_543e4e38fef2"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_8dc19095_b84f_438e_9437_a5fc9c4c5b68","value":"\"You have chosen: cash in cheque\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"cheque1","lengthValue2":"5","id":"id_f9a8112a_8c26_4a44_bd1a_8d063f5375ff","initValue":null},{"newline":true,"@type":"Output","id":"id_4213e109_781b_4e26_b07e_688e9f9bb9b6","value":"\"How much is the cheque for?\""},{"@type":"Input","name":"cheque1","id":"id_200abc8e_e3ea_47f8_831c_526bf3271ec4","prompt":null},{"newline":true,"@type":"Output","id":"id_37df1752_0148_46b4_bd71_d9ffa3131eec","value":"\"Please wait a moment while our systems check if this is a valid claim.\""},{"@type":"Assign","name":"balance","id":"id_a91c5b71_885a_4d9d_bce5_1e92d670906d","value":"balance+cheque1"},{"newline":true,"@type":"Output","id":"id_5ab8b657_6326_40f6_85ee_82685ad89296","value":"\"Funds (\"+cheque1+\") added\""}],"id":"id_d54e7f24_4941_4e26_ae6c_77e2f1953a9f"},"condition":"option2==1","@type":"If","id":"id_e950efc0_0102_447b_9e0f_2e80751bbc7c"}],"id":"id_f92e9380_1f69_4d94_9f9d_5764c3b8a2eb"},"condition":"option==3","@type":"If","id":"id_da62b647_1776_4780_b4ad_0e4695952ed5"}],"id":"id_2f43a3ee_eb81_4b32_b1c7_3424a93d09e0"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_72d2e6f2_dd1b_4a22_aaa3_fcd66ecdef61","value":"\"You have chosen: depositing\""},{"newline":true,"@type":"Output","id":"id_1896c7b5_e27e_40b1_981d_53679baa8cfd","value":"\"How much would you like to input in cash?\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"deposit1","lengthValue2":"5","id":"id_8f1b1ebf_c8c8_4edb_abc7_99d34d95161b","initValue":null},{"@type":"Input","name":"deposit1","id":"id_ce8d8a7b_dbe8_4f0d_8519_94c4317ef283","prompt":null},{"newline":true,"@type":"Output","id":"id_78e09dc4_d949_49fc_8222_ca1d344ccc9a","value":"\"Counting...\""},{"falseBlock":{"statements":[{"@type":"Assign","name":"balance","id":"id_fac036a9_cb20_4727_b530_e5bc427fcff1","value":"balance+deposit1"}],"id":"id_e7001f80_0a45_4e28_b414_96ad12bcce34"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e8b94332_3f81_4df8_bef3_d8cc2e4bffa7","value":"\"Funds too high-please write cheque for amounts over £499\""}],"id":"id_a0c062b0_6cc2_40da_bb9c_ef07a8be7510"},"condition":"deposit1>499","@type":"If","id":"id_68d34d83_b553_4c50_84aa_2d9f7ba2536a"}],"id":"id_b789a9d4_f432_4cbf_8ba0_095daa0ec720"},"condition":"option==2","@type":"If","id":"id_7de1992f_5b6f_4b9c_8cc3_2f95599f45ce"}],"id":"id_26906136_25ba_4fff_8e41_6dcd10d0ac62"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_60c5f604_7760_41de_9193_1ffc32b8f693","value":"\"You have chosen: Withdrawal\""},{"newline":true,"@type":"Output","id":"id_095a1fae_57e0_4b27_af0a_7cee42c268bb","value":"\"How much would you like to withdraw?\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"withdraw1","lengthValue2":"5","id":"id_a66c6e27_5427_4538_be80_313c6b21beb1","initValue":null},{"@type":"Input","name":"withdraw1","id":"id_7519172c_35b3_4a1a_ab85_76ad82b421c8","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_10cb4896_8cc4_46ba_91d1_6957bfe6d3f4","value":"\"Drawing funds...\""},{"@type":"Assign","name":"balance","id":"id_18c87e23_6aa0_459a_a6e9_7911de6d2fec","value":"balance-withdraw1"}],"id":"id_4280c651_a673_464c_8f0e_6d4f7108868c"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_9fded3af_8ec1_4ab7_a6e8_1590074f6a15","value":"\"Please submit a cheque\""}],"id":"id_769a7ed3_f662_4955_ae03_074c3faf9cde"},"condition":"withdraw1>499","@type":"If","id":"id_48df1f15_f98c_47e2_969e_6c7b837dd223"}],"id":"id_821b4a93_693d_449e_a788_be91d6fa3514"},"condition":"option==1","@type":"If","id":"id_2b422600_dfd6_46ab_bc8f_955560301825"},{"newline":true,"@type":"Output","id":"id_6924c389_95bd_4b04_b55e_e1a9428209d1","value":"\"Your current balance is £\"+balance"},{"newline":true,"@type":"Output","id":"id_bedbf03a_034c_4647_8b29_a61718c3f145","value":"\"We hope you had a smooth banking experience.Have a nice day!\""},{"@type":"Return","id":"id_d2293463_891c_4033_86b1_f97bbe489f45","maybeValue":null}],"parameters":[]},"id":"id_36d43f42_1d7c_43b3_9210_d3f6effc0af2","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":2010}