by @rezky hidayatullah(13020260131) A4 Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_579102d4_5603_4c1a_be39_0691dcfdc4b3"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahproduk","lengthValue2":"5","id":"id_93ef53a4_f592_4cde_ba83_22824698f56a","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"namaproduk","lengthValue2":"5","id":"id_b65fdc5a_84e8_4427_9175_54fdf64e8619","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"harga","lengthValue2":"5","id":"id_78aa42e6_c7db_4d6b_a904_5064fadbd88f","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalpendapatan","lengthValue2":"5","id":"id_319d7a79_83a0_4cc3_91fc_cf6bd8c5ed86","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"totalbarang","lengthValue2":"5","id":"id_e5079a27_11e0_4546_b03f_fef22c32cf46","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"jumlahterjual","lengthValue2":"5","id":"id_81b534ad_fa97_484c_aac6_c26971f560cc","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"subtotal","lengthValue2":"5","id":"id_c45bc084_7bcb_4fe4_bb15_287bb6d3756e","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"ratarata","lengthValue2":"5","id":"id_fd0c137e_4bb0_469d_99ff_90b25611e656","initValue":null},{"@type":"Input","name":"jumlahproduk","id":"id_d4f444b9_ff47_41f6_a659_457fe4157ab2","prompt":"Input jumlah produk:"},{"@type":"Assign","name":"totalpendapatan","id":"id_44c92078_9892_43a4_9827_6a7ae3cdef62","value":"0"},{"@type":"Assign","name":"totalbarang","id":"id_dbfc79b1_fc68_443c_91b5_2e0bfc299c21","value":"0"},{"varName":"i","incr":"1","@type":"ForLoop","start":"1","end":"jumlahproduk","id":"id_28deaa92_955e_4c1a_a847_d6f8d7c8781d","body":{"statements":[{"@type":"Input","name":"namaproduk","id":"id_9195c7c7_7305_4e71_8efa_81192ce76a3d","prompt":"Input nama produk:"},{"@type":"Input","name":"harga","id":"id_f84c8871_479d_4d50_949f_cb6050ef4323","prompt":"Input harga:"},{"@type":"Input","name":"jumlahproduk","id":"id_2b08602d_34ea_476b_a561_06e0d7afb5fd","prompt":"Input jumlah produk:"},{"@type":"Assign","name":"subtotal","id":"id_528b9a51_2539_4f56_bf8e_f953d524c183","value":"harga*jumlahproduk"},{"@type":"Assign","name":"totalpendapatan","id":"id_83b1d0de_dfd4_4ee4_9ed6_2e1fa1b18792","value":"totalpendapatan+subtotal"},{"@type":"Assign","name":"totalbarang","id":"id_c9327164_5512_4b83_b13c_292a6dce2407","value":"totalbarang+jumlahproduk"},{"newline":true,"@type":"Output","id":"id_9a86476d_8a96_4a75_862b_a9bc0d5bf488","value":"\"namaproduk: \"+namaproduk+ \"subtotal: \"+subtotal"}],"id":"id_75c8c25e_0cc6_4690_a95c_bb5fbc70ca27"}},{"@type":"Assign","name":"ratarata","id":"id_255eede7_3761_47b4_b0c6_80df33a55caf","value":"totalpendapatan/jumlahproduk"},{"newline":true,"@type":"Output","id":"id_b193d38c_d8c8_4c88_b990_07e50e816bf4","value":"\"namaproduk: \"+namaproduk"},{"newline":true,"@type":"Output","id":"id_be0151e5_3b38_4f76_8aac_cd1c648517b6","value":"\"totalpendapatan:Rp. \"+totalpendapatan"},{"newline":true,"@type":"Output","id":"id_7e6a17cf_9fc1_4b13_8ad0_f9134308e7a8","value":"\"totalbarang: \"+totalbarang"},{"@type":"Return","id":"id_88ff8473_963f_4ca0_8ea0_0ccafe28f741","maybeValue":null}],"parameters":[]},"id":"id_0372ed64_541d_44df_8cd1_4f5fe303e690","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":1110}