by @Gabriel Woenadu Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_53ff3cf4_6c73_4d5f_95db_89cbb131ae94"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"studentID","lengthValue2":"5","id":"id_6d5577eb_4dc8_4e8a_830f_1645c6abe131","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"studentName","lengthValue2":"5","id":"id_c90add82_3c4d_49e4_adae_914037c258a3","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalFees","lengthValue2":"5","id":"id_9bdff01d_1ff0_483b_9b8b_f1d1fcac7c06","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"amountPaid","lengthValue2":"5","id":"id_68303fda_5f91_4274_afe3_4f9c37c95b6d","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"minimumPayment","lengthValue2":"5","id":"id_fbced62e_0ce4_4ffb_9197_260721aa1cda","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"processAnother","lengthValue2":"5","id":"id_0c874e16_a065_4a12_b9f0_984b76acfabf","initValue":null},{"newline":true,"@type":"Output","id":"id_d0f7774c_e202_4875_b690_045effca2e92","value":"\"Enter student name\""},{"@type":"Input","name":"studentName","id":"id_3858b7df_8216_4f18_a6a8_f6f514d41db3","prompt":null},{"newline":true,"@type":"Output","id":"id_f6597c82_3a67_4f1b_9de7_f114a0f38844","value":"\"Enter student index number\""},{"@type":"Input","name":"studentID","id":"id_6b79dfdf_efed_4494_82e1_35c763bc182e","prompt":null},{"newline":true,"@type":"Output","id":"id_96dcbd59_3d65_4ecd_a40f_0c805891065d","value":"\"Enter total school fees\""},{"@type":"Input","name":"totalFees","id":"id_e7c17c35_f721_4ff0_93c1_9d0231f90301","prompt":null},{"condition":"totalFees<=0","@type":"While","id":"id_e3574143_2b1e_4bde_9c19_2e0a48c1df9a","body":{"statements":[{"newline":true,"@type":"Output","id":"id_4d138f11_21c6_4bd5_ac88_026845405a31","value":"\"Invalid.Total school fees must be greater than 0\""},{"newline":true,"@type":"Output","id":"id_c6535d52_79ee_48d4_a45b_4789ebcff8cb","value":"\"Enter total school fees again\""},{"@type":"Input","name":"totalFees","id":"id_d2c1edcb_6abe_4bd3_9a25_3ded7d9ba8a1","prompt":null}],"id":"id_3d51ca81_cb40_4a87_9da7_a48b2dd4d433"}},{"newline":true,"@type":"Output","id":"id_c9f0f4cc_a1e3_4212_b659_e466558d33d1","value":"\"Enter amount paid\""},{"@type":"Input","name":"amountPaid","id":"id_5008e11e_2c15_44c0_b989_cc7fea07da68","prompt":null},{"condition":"amountPaid>totalFees","@type":"While","id":"id_a92c37c7_7f3c_4205_8c4f_0421e3986627","body":{"statements":[{"newline":true,"@type":"Output","id":"id_e271977e_c5c0_4512_8707_4582007fe107","value":"\"Invalid payment.Amount paid cannot exceed the total school fees.\""},{"newline":true,"@type":"Output","id":"id_16f2bc03_8871_4198_8ddc_788d0d670eff","value":"\"Enter amount paid again\""},{"@type":"Input","name":"amountPaid","id":"id_0c30b3ca_0df5_49b2_b67d_5b02228fcd88","prompt":null}],"id":"id_1420fd7e_dddb_4ad4_af9e_482e7419e6d2"}},{"@type":"Assign","name":"minimumPayment","id":"id_d95a8264_ad53_430b_8a5e_a48999303344","value":"totalFees*0.60"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a7ff000e_dc35_43f4_9617_40e663fc9410","value":"\"Payment requirement not met.The student cannot proceed with course registration\""}],"id":"id_e8057ea2_cd4b_4e1f_9599_eb2fb9f0663f"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_18a34fe4_f3c8_4ea1_a57c_0adbd67dfdd9","value":"\"payment requirement met.Student can proceed with course registration\""}],"id":"id_ea78a7e8_1c72_449e_9c13_f94867fc2d2c"},"condition":"amountPaid>=minimumPayment","@type":"If","id":"id_5a8ec467_e1c4_4a61_b453_92c02111c882"},{"newline":true,"@type":"Output","id":"id_387b1a5d_1bca_4d87_bb0e_cb4032c7772b","value":"\"Do you want to process another student(Yes/No)\""},{"condition":"processAnother==\"Yes\"","@type":"DoWhile","id":"id_6b310837_5fb4_4923_ac23_cac49ec654cd","body":{"statements":[],"id":"id_074e103d_a668_4b97_a61e_04f646b983ad"}},{"newline":true,"@type":"Output","id":"id_5a49aee9_659d_403b_8be5_c3aa6d89110f","value":"\"End of payment process\""},{"@type":"Return","id":"id_cb4c923b_7bcc_4105_888f_2b8d40ab5a09","maybeValue":null}],"parameters":[]},"id":"id_083dcd7d_d99b_4ae3_bd1f_dcf24dec4946","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":850}