by @Merliana Dwi Saputri Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_fb1d7fc1_eb06_4b4a_994f_9da898399a1d"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"beli","lengthValue2":"5","id":"id_f9a6da2e_4353_4f09_8f99_ef492976685e","initValue":"\"\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"merk","lengthValue2":"5","id":"id_65560384_b994_4ffa_bdfd_6b9ad3f278b5","initValue":"\"\""},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlah","lengthValue2":"5","id":"id_3965b2e5_1d50_4f61_a004_0ca9752f924e","initValue":"0"},{"newline":true,"@type":"Output","id":"id_a9118dfb_3dbc_40fc_9497_1ceee163b8e6","value":"\"silakan mau pesan apa?\""},{"@type":"Input","name":"beli","id":"id_9196f118_0421_4e7e_b54c_c06297eb8cf9","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_c34144fa_df97_40b3_8cf5_57e9a6486469","value":"\"kami hanya menyediakan jus tropicana dan jus minute maid\""}],"id":"id_4cac92fe_fa4f_4b16_a2bc_2c30b2edd0a8"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_fa2475ce_24a4_47d3_aa35_0aa466591980","value":"\"mau beli merk apa?\""},{"@type":"Input","name":"merk","id":"id_6cb2ae2a_f29d_4428_ac7b_fc65928d0e3e","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[],"id":"id_4ee3e264_c96b_4caa_a0dc_3f1a78fb7133"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_cf1fc368_d3c5_45d3_bd58_428d23e12362","value":"\"mau beli berapa?\""},{"@type":"Input","name":"jumlah","id":"id_47fb89a9_26bd_4122_bbf1_488d54ab20dc","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_8d9ef66b_96bd_40ed_bf56_ff74ace546bd","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_74bc7b85_d31e_452f_9411_9a5415108631","initValue":"harga*jumlah"},{"newline":false,"@type":"Output","id":"id_83b1116b_5954_4958_b222_e7f1c515234a","value":"\"total yang harus dibayarkan Rp\""},{"newline":true,"@type":"Output","id":"id_716306e0_f0f4_4108_8ede_9467015d21c1","value":"total"}],"id":"id_141366db_be5e_403a_8bbe_1147181f42da"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_e4d874cd_dd6d_4737_98c1_a782f6f6f0d6","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_c1fb2fae_93a2_480c_a82a_f25fcd5ba4af","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_805696e8_3a93_490b_a981_80b6174a34a2","initValue":"jumlah*harga*2/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalakhir","lengthValue2":"5","id":"id_e8d4d266_054e_40d1_9022_8d12f0c3d95b","initValue":"harga-diskon"},{"newline":true,"@type":"Output","id":"id_3760f422_780b_44d4_8629_af1cd0f28809","value":"\"anda mendapatkan diskon 2%\""},{"newline":false,"@type":"Output","id":"id_6ba45582_65e3_47af_aad3_a515f84d4641","value":"\"total yang harus dibayarkan Rp\""},{"newline":true,"@type":"Output","id":"id_e55f7681_ea59_4a63_be72_3b20969777f4","value":"totalakhir"}],"id":"id_11ed75b3_4c12_40f6_aea0_f40741f2319b"},"condition":"jumlah>=10","@type":"If","id":"id_e89b531e_9e79_4619_a39e_0dc6cfb8d009"}],"id":"id_083d61a8_fa10_4912_b063_4f69695e1a2c"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_f21d0df0_6093_4c7a_b9b3_abd12f26786b","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_cade4753_ea70_4349_a723_0d053e035576","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_86265f8b_f687_4eeb_b46a_51f2ac83abe3","initValue":"jumlah*harga*4/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalakhir","lengthValue2":"5","id":"id_3b6d8dcc_d879_4cce_a43e_b1e1ef60e5a3","initValue":"total-diskon"},{"newline":true,"@type":"Output","id":"id_71c3b6b1_b5d7_4521_b63a_33f4e5ace8f5","value":"\"anda mendapatkan diskon 4%\""},{"newline":false,"@type":"Output","id":"id_d8a384f1_3bb3_484e_a97a_739dc779ceef","value":"\"total yang harus dibayarkan Rp\""},{"newline":true,"@type":"Output","id":"id_db73dafd_fa1e_4e5a_9298_cc79b28ecdff","value":"totalakhir"}],"id":"id_bc12f33d_ea82_42f9_8dfc_d347f8dea2e6"},"condition":"jumlah>=20","@type":"If","id":"id_f309429f_eac1_405e_b759_23a440371170"}],"id":"id_b1ee334b_54eb_476f_93f4_1bcda7ca806d"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_6a2c0070_8dd2_4746_a789_b33ab5b4ac6e","initValue":"25000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_ff124441_9dfb_4ab2_b3aa_0a365ec40ad3","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_773adf30_0161_4493_b7fa_9822674e5d4a","initValue":"jumlah*harga*10/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalakhir","lengthValue2":"5","id":"id_b6d2ebd5_5519_4d3a_861c_02c092ce1a8d","initValue":"total-diskon"},{"newline":true,"@type":"Output","id":"id_0fb021c1_95a9_4d74_92ef_05dad85c0839","value":"\"anda mendapatkan diskon 10%\""},{"newline":false,"@type":"Output","id":"id_c30f7c17_6ccf_416d_aee8_663595d12a6e","value":"\"total yang harus dibayarkan Rp\""},{"newline":true,"@type":"Output","id":"id_fd6a3f1b_7c42_4df9_8ff5_529dd77c5b39","value":"totalakhir"}],"id":"id_3e64d04f_24fd_4540_af61_879348c6d334"},"condition":"jumlah>=30","@type":"If","id":"id_c39530c4_22a4_454f_bc5c_7560c32b82c9"}],"id":"id_017928b4_e92e_46f4_bc62_88565c529f93"},"condition":"merk==\"minute maid\"","@type":"If","id":"id_76ed6d77_ca6d_442e_84bd_0e6190004356"}],"id":"id_8120aa61_6bb9_4213_bec4_2d7bfa6dc131"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_36227413_eb26_44dd_91a9_450b0e71dbb0","value":"\"mau beli berapa?\""},{"@type":"Input","name":"jumlah","id":"id_3c12859e_fd41_44f8_bc4f_a0d082dc964f","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_b41cd406_e31b_471a_9f94_135529a15250","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_dd08737c_f277_41ec_8954_3076d1e5db26","initValue":"harga*jumlah"},{"newline":false,"@type":"Output","id":"id_52521b7a_0b93_4a65_b46f_6c7c4806c121","value":"\"total yang harus dibayarkan adalah Rp\""},{"newline":true,"@type":"Output","id":"id_34839867_0913_4239_bf79_d13088c0afcf","value":"total"}],"id":"id_512dc3ed_586d_4e58_9a54_fc52be365e87"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_a0bb7d12_5e99_4bdd_ab35_aeeb3c41d4ca","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_271eb148_e772_4870_beb9_577718970830","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_477a418a_aa05_4317_ab4d_b5faf89a6df5","initValue":"=jumlah*harga*6/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalakhir","lengthValue2":"5","id":"id_780076d9_d6fb_4fbd_95e2_e72082df3fc7","initValue":"total-diskon"},{"newline":true,"@type":"Output","id":"id_84435bd5_fba9_41cd_afb0_360504c8db71","value":"\"anda mendapatkan diskon 6%\""},{"newline":false,"@type":"Output","id":"id_6337e0f3_9311_4e15_a2ff_0e4c7afaa995","value":"\"total yang harus dibayarkan adalah Rp\""},{"newline":true,"@type":"Output","id":"id_5c576260_8c6b_4102_9f37_3e8faaf9ef54","value":"totalakhir"}],"id":"id_184e9d01_cb77_48b0_9309_07980df11630"},"condition":"jumlah>=10","@type":"If","id":"id_be15f491_7aa2_46ed_88d7_e3282ad07e09"}],"id":"id_d9085ee0_a0fb_48d3_b10e_26da9a80174c"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_1a5b7890_82b3_4c58_838a_6ee73a62f8cf","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_b419980b_fc9e_47d5_9a75_5345696c3bb4","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_cdd26975_8c10_4670_b484_11d624d0675a","initValue":"jumlah*harga*12/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalakhir","lengthValue2":"5","id":"id_0017b419_e1b8_4c84_b9c3_ee8e4a2ed9c3","initValue":"total-diskon"},{"newline":true,"@type":"Output","id":"id_910108af_963d_4946_8e2b_8c67edd15aa8","value":"\"anda mendapatkan diskon 12%\""},{"newline":false,"@type":"Output","id":"id_19575e48_7437_47ed_8d8a_cdea3884d502","value":"\"total yang harus dibayarkan adalah Rp\""},{"newline":true,"@type":"Output","id":"id_76b9aaa6_e434_484e_aef3_a60d602b29fe","value":"totalakhir"}],"id":"id_5bc55fbe_7991_4171_98f6_01b5b49ce90e"},"condition":"jumlah>=20","@type":"If","id":"id_979748b9_6ec9_4206_9d2a_87de740ecd89"}],"id":"id_a2490c74_26e7_41c6_aa9a_17103dab7d17"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_ffca0a2c_97ea_491f_b84e_b0b8657288a6","initValue":"30000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_96e04cc8_7256_49e3_97d3_99bc181eee69","initValue":"jumlah*harga"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"diskon","lengthValue2":"5","id":"id_c2002aa3_594d_4aff_8fa5_c17cfcef69a8","initValue":"jumlah*harga*18/100"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalakhir","lengthValue2":"5","id":"id_a6e5b85e_c002_469e_8e82_8074963691b4","initValue":"total-diskon"},{"newline":true,"@type":"Output","id":"id_9b938466_ec95_46f0_94c2_fb1d2b224144","value":"\"anda mendapatkan diskon 18%\""},{"newline":false,"@type":"Output","id":"id_56656e9d_385c_4a18_98f1_4f396512e064","value":"\"total yang harus dibayarkan adalah Rp\""},{"newline":false,"@type":"Output","id":"id_03b93928_0e44_4acb_b68e_aa5e4f7e596e","value":"totalakhir"}],"id":"id_fc40506c_89a5_4d16_945c_1ca616581288"},"condition":"jumlah>=30","@type":"If","id":"id_dd88f5f0_c136_45a2_9ae3_3389e343b645"}],"id":"id_f3fbf1b4_e496_4dd9_bfd3_f75077d6d3e8"},"condition":"merk==\"tropicana\"","@type":"If","id":"id_091bf16f_baf9_4ebf_8d03_a396edf5942b"}],"id":"id_bd19dfc6_3be0_4455_83c9_29d224f20a04"},"condition":"beli==\"jus tropicana\"","@type":"If","id":"id_6b3ef617_d589_4345_84eb_c35fea5336c5"},{"@type":"Return","id":"id_5f9f8073_ff3a_4a0e_b24f_851fa356d3f0","maybeValue":null}],"parameters":[]},"id":"id_5c05869f_6003_46e2_84a9_d2921a2c90b7","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":2274}