by @abdillah Syakir Fork
{"functions":[],"name":"contoh modul 6","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_0772ea28_9326_4b8f_9e13_e20d3e4b12ed"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahproduk","lengthValue2":"5","id":"id_0b29d2f3_d74a_42d1_a518_638c9be14511","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"namaproduk","lengthValue2":"5","id":"id_54edccf3_7cde_4447_a680_f944dfec2afd","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_1151b34f_e9eb_4582_bcf6_2fae69b33442","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalbarang","lengthValue2":"5","id":"id_3e851fd3_ed3d_4420_947d_c90ae549daa3","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahterjual","lengthValue2":"5","id":"id_1a719bc6_16fe_4648_896f_b86fa6a51137","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"subtotal","lengthValue2":"5","id":"id_61f0200d_ff98_47f9_b335_29908f7f83a4","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalpendapatan","lengthValue2":"5","id":"id_75bce881_d6ef_457f_8000_a43a1230dad1","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"ratarata","lengthValue2":"5","id":"id_7b7a9d37_6e35_4da0_a536_96b18828ddff","initValue":null},{"@type":"Input","name":"jumlahproduk","id":"id_f68d66d3_b962_4735_865d_12b809f5945f","prompt":"masukanjumlahproduk:"},{"@type":"Assign","name":"totalpendapatan","id":"id_f3f8d279_018f_4eea_b72a_4e1ef68efd40","value":"0"},{"@type":"Assign","name":"totalbarang","id":"id_392def7f_fcdc_4cce_8f42_8205a4f51c9d","value":"0"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"jumlahproduk","id":"id_07605ef3_bb6b_4abd_9655_c7ee8c822443","body":{"statements":[{"@type":"Input","name":"namaproduk","id":"id_16b9f742_0b77_4fa3_a6cb_60df98b13ac8","prompt":"masukannamaproduk"},{"@type":"Input","name":"harga","id":"id_396fc2fb_4a1d_4acc_bdac_695a5c704f02","prompt":null},{"@type":"Input","name":"jumlahterjual","id":"id_32f484fc_4324_4e96_822e_3449149050ba","prompt":null},{"@type":"Assign","name":"subtotal","id":"id_77e76a03_948c_447a_861f_00ccff231996","value":"harga * jumlahterjual"},{"@type":"Assign","name":"totalpendapatan","id":"id_cdce249d_74a0_4b34_a871_b76081d4df21","value":"totalpendapatan + subtotal"},{"@type":"Assign","name":"totalbarang","id":"id_f37eafb0_de6f_4124_a810_d8c9903933f3","value":"totalbarang + jumlahterjual"},{"newline":true,"@type":"Output","id":"id_3a8031f0_17a3_4ba8_9b6d_1756a80e30e6","value":"\"namaproduk:\"+namaproduk+\" subtotal:\" +subtotal"}],"id":"id_9969ed75_3554_4301_85bb_47bdd777cb4d"}},{"@type":"Assign","name":"ratarata","id":"id_695f7e0a_4cd7_4ac0_af08_4f853e5fff52","value":"totalpendapatan/jumlahproduk"},{"newline":true,"@type":"Output","id":"id_550fc119_2b82_429d_a9f0_c0850273b02d","value":"\"totalpendapatan : Rp. \"+totalpendapatan"},{"newline":true,"@type":"Output","id":"id_99df308f_e922_4b75_b0fd_605e3d234753","value":"\"totalbarang: \"+totalbarang"},{"newline":true,"@type":"Output","id":"id_9ef9c67e_12e7_43c1_83e7_9f2cab275c8a","value":"\"ratarata:Rp \"+ratarata"},{"@type":"Return","id":"id_022e6b51_4040_4a40_b106_b952ea0f2e76","maybeValue":null}],"parameters":[]},"id":"id_2bd7c83f_6bae_4d1a_a41a_3456268bf706","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":748}