{"functions":[{"rawId":"id_07bcc220_9d38_4582_81a8_c4f82223c1ee","tpe":"Void","name":"fun1","statements":[{"@type":"Begin","id":"id_fc83d970_8de2_4edf_a135_25fb8ea48a2b"},{"@type":"Return","id":"id_5ad70992_6260_4a63_aa47_5e56e789dbed","maybeValue":null}],"parameters":[]}],"name":"library book","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_a8d63bf7_e40d_4cf3_9921_24935c2ba595"},{"@type":"Declare","tpe":"Boolean","name":"SM","id":"id_ad1f3bdc_2170_467d_a2cb_27c3f1a01368","initValue":null},{"@type":"Input","name":"SM","id":"id_a40a613d_874b_485f_a25d_e88114cdb48b","prompt":"Please give your library membership"},{"falseBlock":{"statements":[],"id":"id_9a9ae82f_5d73_45c1_8b18_47462b1c986f"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"Book","id":"id_72277760_db58_4402_9d16_00d4fa37b433","initValue":null},{"@type":"Input","name":"Book","id":"id_dfa4c9d6_9621_4061_b619_3c1da2fdf30f","prompt":"Please enter the number of books borrowed"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e7afe0f1_b121_474b_9647_6f95eefed5e6","value":"\"rejected\""}],"id":"id_21429a9b_517c_4d47_ae83_14f19676b323"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Boolean","name":"reference","id":"id_1ece7d54_8437_4fe1_a3c2_667959e6926a","initValue":null},{"@type":"Declare","tpe":"Boolean","name":"textbook","id":"id_53d0f428_c935_4e44_b64f_3ad04c420600","initValue":null},{"@type":"Declare","tpe":"Boolean","name":"regular","id":"id_a834389e_69f1_4c87_829a_cbf47aee8859","initValue":null},{"@type":"Input","name":"reference","id":"id_4e95c2a8_adca_42eb_9c26_b3a65f53f428","prompt":"It is reference book?"},{"falseBlock":{"statements":[{"@type":"Input","name":"textbook","id":"id_c51a3bb8_1872_42aa_9e93_ee3bf1f43609","prompt":"It is textbook?"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e6182a30_1bb6_46c3_a343_8de71ad767ac","value":"\"regular book can be borrowed for 7 days\""}],"id":"id_bad982c7_e962_4446_8629_dd58c70213d8"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Boolean","name":"FY","id":"id_65558ea7_dca4_4bd8_a4d0_b4706ef31e7e","initValue":null},{"@type":"Input","name":"FY","id":"id_b08be4d8_a638_479e_8e49_6d7ec598afea","prompt":"Are you final year student?"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_fc630476_1ed7_4e72_832b_31519de03813","value":"\"can be borrowed for 14 days\""}],"id":"id_cb2a4ea5_da36_465e_9226_ca82015edc94"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_1f9babfd_49be_47c5_a685_ddeb60f30207","value":"\"can be borrowed for 21 days\""}],"id":"id_7114c0ee_2348_449f_8a0d_2c0df94b80fc"},"condition":"FY == true","@type":"If","id":"id_7da7b21a_999f_4b42_9fbc_89949190e516"}],"id":"id_743e7b13_ba29_4e78_84fb_d7af2b2899bf"},"condition":"textbook == true","@type":"If","id":"id_ee1f9aa4_a097_46a3_8a4d_9513ac4d2d10"},{"@type":"Declare","tpe":"Boolean","name":"check","id":"id_e119abc8_a2a4_485b_96cc_4ac5f7146b80","initValue":null},{"@type":"Input","name":"check","id":"id_5ab5ec25_4745_40d9_8eb6_94a742fe4baf","prompt":"there is unpaid fines?"},{"falseBlock":{"statements":[],"id":"id_08e8f91e_d647_4cf5_889e_9bfa258ffebb"},"trueBlock":{"statements":[{"@type":"Declare","tpe":"Integer","name":"fines","id":"id_da84fd1a_b7e8_46a2_8b55_a84f77829934","initValue":null},{"@type":"Input","name":"fines","id":"id_d86c6b8b_00ce_4eb1_8eae_d8e7e029c429","prompt":"Input unpaid fines"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_980d48cf_54d2_4130_ae9a_106fd0da83af","value":"\"must pay before new loans\""}],"id":"id_03cb11ac_0229_4224_8ca3_6c20ce814441"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_93b4e1ac_92f9_4698_88b1_24d741ac4daa","value":"\"must pay whitin a week\""}],"id":"id_e8873137_5247_47c1_af06_457c135764af"},"condition":"fines<10","@type":"If","id":"id_71757150_b381_4131_ae2e_38ed9d406f57"}],"id":"id_e8925173_4e6d_449c_9724_a87c6787ad91"},"condition":"check == true","@type":"If","id":"id_2b15f0e5_fdbc_4924_81c8_45b87d64a127"}],"id":"id_af110baa_5552_4800_b6e3_678b1d454ccc"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_88a43569_5927_4b5c_8fee_7d31b377b043","value":"\"cannot be borrowed\""}],"id":"id_17bd760a_9db2_4a1e_b46d_cd9463cf6d2e"},"condition":"reference == true","@type":"If","id":"id_8f6f13f7_b805_47d6_a5f3_44c6efebb888"}],"id":"id_5b837f32_eaec_4ca7_95ef_b7803d9619c5"},"condition":"Book<=3","@type":"If","id":"id_07963942_6990_4518_bc69_8cca76cab15f"}],"id":"id_1172ce18_8dce_4929_b19e_d04c9e3d5c88"},"condition":"SM == true","@type":"If","id":"id_53813df4_c02e_4efb_a63f_72ad99fef5d6"},{"@type":"Return","id":"id_f6eef694_ade5_4588_aaac_d2aa75a417af","maybeValue":null}],"parameters":[]},"id":"id_37ee0037_0f7e_43da_a0bb_535344233de7","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":2573}