by @Kevin Simatupang Fork
{"functions":[],"name":"LATIF2_KEVIN_171026","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_3ba8379a_6da1_45e9_9d0f_666d27575fa6"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"total","lengthValue2":"5","id":"id_26f331be_fd92_4e7a_bc66_56dd698f2fe8","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"diskon","lengthValue2":"5","id":"id_87e7db75_67af_4c47_9197_40c8d2aab805","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"potongan","lengthValue2":"5","id":"id_c984dfd1_a3f1_4d8f_97b5_085f10f975e2","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalbayar","lengthValue2":"5","id":"id_fd122d7b_e46f_4519_8dce_cc5cf634c626","initValue":null},{"newline":true,"@type":"Output","id":"id_d7399cd1_394e_4da0_b4a3_3f7dedbd300c","value":"\"masukkantotalbelanja\""},{"@type":"Input","name":"total","id":"id_4740317e_8cf9_4c14_a271_601157f0f838","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"total","id":"id_39e67827_3c96_4e77_bc68_d78176d8421f","value":"0"}],"id":"id_a7e4d2a8_2e2a_4bff_a900_9abd0eda540a"},"trueBlock":{"statements":[{"@type":"Assign","name":"diskon","id":"id_7ab1e7d9_2f32_48d1_b9c7_3fcfa84b6895","value":"0.1"}],"id":"id_45c57c95_e593_4404_9b03_c76ae24ba8f3"},"condition":"total >=200000","@type":"If","id":"id_36a115fe_a14a_43a0_829f_546bd03dab03"}],"id":"id_349d4f93_fc18_430f_a545_108ca0d4ac0a"},"trueBlock":{"statements":[{"@type":"Assign","name":"diskon","id":"id_3c4d2cfd_f058_4911_a11e_7b41fba2aab1","value":"0.2"}],"id":"id_97471d57_e181_4f2a_bcbf_f228c43dfa08"},"condition":"total >= 500000","@type":"If","id":"id_5503adbe_b0ac_46b7_8b0c_fdf268137510"},{"@type":"Assign","name":"potongan","id":"id_e6fa270a_eac9_4b92_85fd_ef7c14394e1f","value":"total * diskon"},{"@type":"Assign","name":"totalbayar","id":"id_521ca501_5f56_4c08_ae44_a008b4119d4a","value":"total - potongan"},{"newline":true,"@type":"Output","id":"id_a43c05c0_c472_4279_b1b0_e04277a57a00","value":"\"total belanja awal : Rp\""},{"newline":true,"@type":"Output","id":"id_95089e90_8a8a_483e_9b5f_a01a09c838b4","value":"total"},{"newline":true,"@type":"Output","id":"id_68144be8_aa3f_4279_b7b1_94c8c2f38fe1","value":"\"Diskon yang didapat:\""},{"newline":true,"@type":"Output","id":"id_d2ddc8f3_4fcf_47aa_bb1a_cbcb854d7c13","value":"diskon*100"},{"newline":true,"@type":"Output","id":"id_e40c70db_73fd_4018_8c50_6c256b30c91d","value":"\"%\""},{"newline":true,"@type":"Output","id":"id_4caf05c4_823e_4e20_9702_8c529afaaf54","value":"\"jumlah potongan:\""},{"newline":true,"@type":"Output","id":"id_fe414299_bd68_4ecf_8879_212313c776ab","value":"potongan"},{"newline":true,"@type":"Output","id":"id_2578b136_8972_4de9_b343_d52726cd9af1","value":"Total yang harus dibayar :Rp"},{"newline":true,"@type":"Output","id":"id_d5c9a371_b8ff_4a77_b621_a2ba385a0fa3","value":"totalbayar"},{"@type":"Return","id":"id_d6be1929_0e7e_42b6_9a54_4e044f7b4fd4","maybeValue":null}],"parameters":[]},"id":"id_3b772a9c_3004_4bfc_98ac_1df2cf8309a5","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":858}