{"functions":[],"name":"program latihan- mod 6","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_4b9d9bf4_32bd_4f2e_be68_157b4943e2d8"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"ratarata","lengthValue2":"5","id":"id_fb56176e_0134_4e2c_b3bd_9178625b69a3","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalpendapatan","lengthValue2":"5","id":"id_34c3415b_9c3f_45df_82bb_2d884e3a1ac5","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalbarang","lengthValue2":"5","id":"id_d4792824_31e4_43f2_966a_9923c2282cbe","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahproduk","lengthValue2":"5","id":"id_d5c0393d_e05e_42bf_a86f_ef8e32edfdb9","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"namaproduk","lengthValue2":"5","id":"id_14ecb73e_ee06_4f8e_9059_065a01eae854","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_1311167e_10fd_434e_bae8_63dcd8333baf","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahterjual","lengthValue2":"5","id":"id_59602230_53f9_46cf_85aa_3602e559b62f","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"subtotal","lengthValue2":"5","id":"id_7339aea9_8bd8_4508_9326_7460a25af9ad","initValue":null},{"@type":"Input","name":"jumlahproduk","id":"id_61fa3d7c_ac26_4be1_9fe2_1ba06e8c6c59","prompt":null},{"@type":"Assign","name":"totalpendapatan","id":"id_500c7dd0_91b6_4295_bd37_f11d96fd52ab","value":"0"},{"@type":"Assign","name":"totalbarang","id":"id_c0b3d68e_a42b_4bb1_b624_638d8196a7c1","value":"0"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"jumlahproduk","id":"id_a74e4603_0990_4d6e_9aa6_43d6bff666e0","body":{"statements":[{"@type":"Input","name":"namaproduk","id":"id_5eaa06fc_941a_48e0_a75e_ecd90cd776bb","prompt":"masukkan nama produk : "},{"@type":"Input","name":"harga","id":"id_43dd482f_97c3_4048_8baa_c2994166bd2f","prompt":"masukkan harga rp : "},{"@type":"Input","name":"jumlahterjual","id":"id_f8080806_e501_4a78_a95e_bdc280518f47","prompt":"input jumlah terjual :"},{"@type":"Assign","name":"subtotal","id":"id_586b7c67_95c0_4ccd_8d5d_bba709f72517","value":"harga * jumlahterjual"},{"@type":"Assign","name":"totalpendapatan","id":"id_4af7ddfc_ad5f_4f07_bd4a_d6c50e712ef4","value":"totalpendapatan + subtotal"},{"@type":"Assign","name":"totalbarang","id":"id_5750fd11_6917_4c87_8c13_92b0c0fae66c","value":"totalbarang + jumlahterjual"},{"newline":true,"@type":"Output","id":"id_49309a80_1d54_46a5_ac16_ab3cfd61fb82","value":"\"Nama produk = \" + namaproduk + \",\" + subtotal"}],"id":"id_2afdef95_23f7_4c32_aec9_c989d38dd6e4"}},{"@type":"Assign","name":"ratarata","id":"id_bb7fb930_2029_450b_9df8_0701e9463017","value":"totalpendapatan/jumlahproduk"},{"newline":true,"@type":"Output","id":"id_0622585c_e81d_4961_9063_fcfc84222091","value":"\"total pendapatan rp: \" + totalpendapatan"},{"newline":true,"@type":"Output","id":"id_043fe395_5ab0_48f8_8840_4e7423521578","value":"\"total barang : \" + totalbarang"},{"newline":true,"@type":"Output","id":"id_be0b987a_4e3b_4b3a_a7fb_421ad3504f56","value":"\"ratarata rp: \" + ratarata"},{"@type":"Return","id":"id_1f385a8f_f6a6_4807_b492_3c399a670c62","maybeValue":null}],"parameters":[]},"id":"id_9fb61ae4_8d3e_471f_9fa1_bcafddef4a17","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":true,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":938}