by @Merliana Dwi Saputri Fork
{"functions":[],"name":"Bagian 4","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_277aad21_25d9_4c03_8c83_e9ff5dc33fcf"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"beli","lengthValue2":"5","id":"id_b60bc2f5_5c02_4c6c_934f_6e941d23e345","initValue":"\"\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlah","lengthValue2":"5","id":"id_cf9ce17f_d41b_4f84_8aef_20b24d9246ef","initValue":"0"},{"newline":true,"@type":"Output","id":"id_3978be7d_d77a_493b_a54e_0cf3bac77956","value":"\"mau beli apa?\""},{"@type":"Input","name":"beli","id":"id_e8c17dee_3fe3_4606_b858_885f1dbf2371","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e8cabb55_efdc_4d23_bc77_3c51aa47d7e1","value":"\"tidak tersedia\""}],"id":"id_8686d494_282a_4e95_a50c_ff2da4714033"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3e6776d2_c03e_4a0c_a49e_a0e095235b7b","value":"\"mau beli berapa?\""},{"@type":"Input","name":"jumlah","id":"id_a986174d_3c94_43fc_b5c6_0220db8dcc17","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_7e92f326_6d9a_4f29_8d5b_6bdff1d0b5fb","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_10814943_2eb4_4453_b693_fcd021eabbff","initValue":"jumlah*harga"},{"newline":true,"@type":"Output","id":"id_7af8a312_333a_4539_b08b_9eb4ab44cd55","value":"\"diskon Rp-\""},{"newline":false,"@type":"Output","id":"id_0e170f2a_0ce4_425a_8a5f_9d90284ef053","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_798a2311_edba_47c8_b3eb_2321cb5c726a","value":"total"}],"id":"id_2ef87d37_a532_4f3f_b141_71e5eec76bc8"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_83180ff4_d16b_4d04_976a_43ce0ba29e78","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_92f87377_8c0a_4bda_a10b_479fc0d00fd7","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_43566f20_ad64_4cf6_b705_68de3ba685b4","initValue":"jumlah*harga*2/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_6dd9c5b7_3974_4461_84a1_e362473dc5a0","initValue":"total-diskon"},{"newline":false,"@type":"Output","id":"id_1a8eb70f_4f53_4766_97b7_2153565a177e","value":"\"subtotal Rp\""},{"newline":true,"@type":"Output","id":"id_e2765d79_1587_4e4b_9db1_f8a6580744fb","value":"total"},{"newline":false,"@type":"Output","id":"id_78f2c81b_26d7_4ba0_bbc1_db2547f06344","value":"\"diskon Rp\""},{"newline":true,"@type":"Output","id":"id_84332af0_3878_4e24_96df_e2a7b111af71","value":"diskon"},{"newline":false,"@type":"Output","id":"id_a2411d33_504b_4371_8edc_acd36c5de829","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_5258bce7_e44e_41e5_a88d_b04edb0ebb16","value":"price"}],"id":"id_9455d582_bd3c_4f70_9807_130e563f66fe"},"condition":"jumlah>=10","@type":"If","id":"id_7e224e7a_923b_4e8f_974a_378bd0a24bec"}],"id":"id_44b4f7c2_d06d_47bb_a153_72c634b563ee"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_b73a5aa0_4fc5_48d4_9747_0f3b15ac6b4c","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_4a3eaaf7_1de2_4737_95d2_2092bb628252","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_ae8d2c2f_5eba_4b14_8c5e_4c6992d1b55a","initValue":"jumlah*harga*4/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_470ae05b_198b_4d9e_a389_58455e0bb1f7","initValue":"total-diskon"},{"newline":false,"@type":"Output","id":"id_29c61755_b1c5_4307_8d47_c255db039e28","value":"\"subtotal Rp\""},{"newline":true,"@type":"Output","id":"id_37118688_f8e4_4f69_84e1_af8a584dd059","value":"total"},{"newline":false,"@type":"Output","id":"id_4974b6dc_260a_4163_a540_8984e52ca2f9","value":"\"diskon Rp\""},{"newline":true,"@type":"Output","id":"id_6254dfd8_17f8_4c21_828a_b5613779eaa6","value":"diskon"},{"newline":false,"@type":"Output","id":"id_24e067cf_19ce_4657_9c33_b784f26a1e66","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_b4d5c3a4_3540_4af9_9c18_88d5f738eaf9","value":"price"}],"id":"id_3c6ba738_aa69_468c_8aba_696817314233"},"condition":"jumlah>=20","@type":"If","id":"id_a962b6a4_f719_4455_ae11_e4aa1d9ae512"}],"id":"id_2c80bdc8_956b_489c_8904_faeb0d332a96"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_01d96b0f_36dd_4277_889e_fcda965a540f","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_a761c3e9_3e03_4e40_844c_f7b3984629d3","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_da3b1530_348b_43bf_a2be_f21ef226c6b6","initValue":"jumlah*harga*10/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_ecb165d4_0c50_425a_bc64_0b9d05bc8f9c","initValue":"total-diskon"},{"newline":false,"@type":"Output","id":"id_eb3fe978_d24d_4681_b867_84c79d8cb58c","value":"\"subtotal Rp\""},{"newline":true,"@type":"Output","id":"id_604631b5_9439_4311_bd74_bf03804ff671","value":"total"},{"newline":false,"@type":"Output","id":"id_21f0228f_eef7_427d_a840_87e955f8a16f","value":"\"diskon Rp\""},{"newline":true,"@type":"Output","id":"id_874d8ad9_78e5_44bc_854e_5aab8cc2ff53","value":"diskon"},{"newline":false,"@type":"Output","id":"id_66c10f6b_2bfc_4710_92a2_7c235efc01b3","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_f38dc0f3_4ff1_4c03_817e_9646fe454bac","value":"price"}],"id":"id_68624397_76e7_47a2_aca1_a49f4e84db8d"},"condition":"jumlah>=30","@type":"If","id":"id_ff12548f_6a7c_45b4_8dc8_4480b12b4892"}],"id":"id_bf7dfb63_bd6e_4972_9f5c_6684577be5fb"},"condition":"beli==\"jus minute maid\"","@type":"If","id":"id_a0771573_a565_4c86_ad11_9de82298145a"}],"id":"id_9ea9bf54_1138_43e1_96e1_5e91b4fb52cb"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f3aa2db8_1915_42a4_98e3_60bd6313d01d","value":"\"mau beli berapa?\""},{"@type":"Input","name":"jumlah","id":"id_ed826449_e7bf_4cf7_b05c_461b9b2dcf97","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_89d2e490_4b80_42c9_81c7_6b63500b0c5b","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_bcc7aa24_6225_4351_bb7e_4b84b08b2add","initValue":"jumlah*harga"},{"newline":true,"@type":"Output","id":"id_230ea629_f808_4ba8_89fe_47e6cf1b66aa","value":"\"diskon Rp -\""},{"newline":false,"@type":"Output","id":"id_772f555c_1fd2_4f26_ac18_80d909104cde","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_53365797_1643_4bb3_bc7b_623fa5682865","value":"total"}],"id":"id_3f506236_79b7_4b6c_9582_e97263a5d8e7"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_9ab5fb67_5f13_41f8_91c8_782011cdac72","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_e0a74fd7_d2dd_42cd_b6bb_0ad10fce0a9c","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_235462ee_58d4_444b_a55b_b46481410be8","initValue":"jumlah*harga*6/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_64e1b31d_adb6_4a36_9132_9aa1ee50b367","initValue":"total-diskon"},{"newline":false,"@type":"Output","id":"id_f0dfd85c_b067_4762_9293_a107b26cc0d2","value":"\"subtotal Rp\""},{"newline":true,"@type":"Output","id":"id_da9b8376_a21c_445b_af05_3ffcf67ad190","value":"total"},{"newline":false,"@type":"Output","id":"id_3830421f_8906_46fd_9c6b_3656d2271883","value":"\"diskon Rp\""},{"newline":true,"@type":"Output","id":"id_1dd95d0a_15fb_4a0a_abac_d333debba9d9","value":"diskon"},{"newline":false,"@type":"Output","id":"id_1c5a641e_8379_4116_98cd_48285bf44bfd","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_4aaebe2f_8d31_40f7_b201_2b53a84bd9a7","value":"price"}],"id":"id_8ca0cb9c_f4b6_4ac5_8f46_5817c594ce82"},"condition":"jumlah>=10","@type":"If","id":"id_890bc84d_175e_4513_90b0_4082bd57d253"}],"id":"id_acf11544_665e_43f0_8467_8779ae0c2a09"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_59268172_2ca2_4ed1_ba75_cdbe7b631057","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_9fbc3ece_49f6_4828_80f0_b4f5679631ff","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_05f74685_1f5d_42e5_8669_e071ec23b2e9","initValue":"jumlah*harga*12/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_34e2adb8_6e44_454e_95fa_75cfceb58ad5","initValue":"total-diskon"},{"newline":false,"@type":"Output","id":"id_e1da473b_5c41_4bc3_9d3e_0399e1b60dfa","value":"\"subtotal Rp\""},{"newline":true,"@type":"Output","id":"id_5c6b0032_3414_43d4_8ae0_8bde79153cfb","value":"total"},{"newline":false,"@type":"Output","id":"id_e3abaf70_4187_40bf_9e8c_442aa7ea81a6","value":"\"diskon Rp\""},{"newline":true,"@type":"Output","id":"id_e0dd3cb7_e767_450c_9253_40375ac8d49f","value":"diskon"},{"newline":false,"@type":"Output","id":"id_32d7be09_94e9_4d79_b767_f3908c728545","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_2d372d82_ab54_4c4e_b63c_b3dea6a8fb13","value":"price"}],"id":"id_697ec65e_3a8c_4611_b74b_f34084f0500d"},"condition":"jumlah>=20","@type":"If","id":"id_e23cc92d_c83f_4a7c_91a7_66fdf601910e"}],"id":"id_09e5bb67_216d_4a5c_abe0_e58d50e054ca"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_d08a6166_22e7_48b4_8f85_e1e05f4a3dcc","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_298bc873_d9b0_4197_ba98_07a079e73f24","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_b08c272e_444b_4eba_9f71_20a3af452698","initValue":"jumlah*harga*18/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"price","lengthValue2":"5","id":"id_251c6674_e583_454d_a518_8e1043ca9990","initValue":"total-diskon"},{"newline":false,"@type":"Output","id":"id_9feb7343_7418_4a8c_9355_5e5d7a6a258b","value":"\"subtotal Rp\""},{"newline":true,"@type":"Output","id":"id_90dd1857_bbe7_48e0_bfe1_65e553ec4956","value":"total"},{"newline":false,"@type":"Output","id":"id_e931aa57_940e_463d_8059_71185da308e8","value":"\"diskon Rp\""},{"newline":true,"@type":"Output","id":"id_81714b29_86e4_456e_bcfb_af087c136e50","value":"diskon"},{"newline":false,"@type":"Output","id":"id_0618bcf1_8b96_40f1_b182_708eca6b4b25","value":"\"total Rp\""},{"newline":true,"@type":"Output","id":"id_5b1d65b2_1c7b_40ff_a7e1_e4d57c160990","value":"price"}],"id":"id_a067c619_7d95_4f3d_81ae_90f282b68315"},"condition":"jumlah>=30","@type":"If","id":"id_740ba59c_cee7_4023_9f26_4ebfdd8564b8"}],"id":"id_a8d16ec3_2a57_4e45_bcea_a8024b210def"},"condition":"beli==\"jus tropicana\"","@type":"If","id":"id_adbcd134_b555_4782_9216_cb4e0df0499e"},{"@type":"Return","id":"id_6fe9facc_3af1_4442_9b6e_a618f855cd2f","maybeValue":null}],"parameters":[]},"id":"id_002505da_40a5_413a_8ee0_80da08ff794c","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":1666}