111z 0 Report post Posted August 9, 2004 hi allaku nak mi ntak tolong skit..pasal tugasan java aku..aku tak bape geti maa..soalannya : write a java application program taht can store numbers in 5 arrays which are item_number, item_name,price,unit and amount.Array of item_number and unit store the value of integers, item_name store the value of String where as price and amount will store the value of floating number. Use for loop and your program will allow user to input data from the keyboard and will store the item_number, name and unit in arras. Your program has to store the multiplication result for the values in array price and array unit; in the array amount.For example:- amount[1] = price[1]*unit[1].so kpd memember yg tau ape code dia..sudi2 lah tolong eeek..aku tak bape getilah nak buat..ok tq Quote Share this post Link to post Share on other sites
hotfloppy 19 Report post Posted August 9, 2004 aku tengok soalan tu simple je walaupun aku tak penah blaja java. biar betul hang tak bape reti, sebab soalan tu memang simple. takkan nak suh otai otai java kat sini tolong buatkan kot. ape kate hang rujuk balik buku java hang Quote Share this post Link to post Share on other sites
encik pot pet 0 Report post Posted August 10, 2004 ko buat dulu sket...nanti ada masalah tanya lapaste kan codes yang bermasalah ko tunanti orang lain akan tolong betulkantakkan nak suruh orang lain suap semua Quote Share this post Link to post Share on other sites
julia 0 Report post Posted August 13, 2004 (edited) Ceh kalo ko nak tanyer pasal bende tu kat forum nie berjanggut arr arrr brother aper kater ko cuber cari inisiatif lain mcm pi kat tutorial java ker ,study kat buku ker aper ker misti caro sehhhhhhhh Edited August 13, 2004 by julia Quote Share this post Link to post Share on other sites
DarkWan 3 Report post Posted August 13, 2004 soalannya : write a java application program taht can store numbers in 5 arrays which are item_number, item_name,price,unit and amount.Array of item_number and unit store the value of integers, item_name store the value of String where as price and amount will store the value of floating number. Use for loop and your program will allow user to input data from the keyboard and will store the item_number, name and unit in arras. Your program has to store the multiplication result for the values in array price and array unit; in the array amount.For example:- amount[1] = price[1]*unit[1]. ha .. nnt masa exam nnt, jangan lupa bawa sekali komputer dan akses ke putera.com ! nnt tak boleh jawab pulak final exam.just my 2 cents.p/s: soklan tu agak mudah. cuma guna array. aku penah OOP II ngan Java dulu. tp aku tak penah paste soklan assignment programming kat Putera or mana2 forum sekalipun. sbb tu la aku extend ! hu hu hu .. Quote Share this post Link to post Share on other sites
aRmsTer 0 Report post Posted August 14, 2004 aku tolong bagi jalan cerita je laa yee.. 1. declare sume tu sbg 5-size array variable.. yg integer n float sume laahh2. pakai repetition for loop... count=0 to 43. dlm loop tu prompt user utk masukkan value utk setiap array variable..4. dlm loop jugak buat pengiraan amount[count] = price[count]*unit[count].5. tutup loop:additional:6. display/print sume tuh... mcmmana? pakai loop jugak laaa..tuh je aku bole tolong psl aku xtau syntax java... lain kali xpayah laa bagi soalan pasal mende2 mcm ni... psl ini basic program daa... belom masuk GUI GUI lagi tu... hmmm Quote Share this post Link to post Share on other sites
acik 0 Report post Posted September 20, 2004 sblm aku jawabkan, nak tanya sikitla... Ko nak tulis kod dlm plain text atau GUI. Jawab soalan ni dulu baru aku boleh fikir. Sebenonya aku tak berapa setuju ko tanya soalan asgmnt dlm forum, coz this is an opportunity utk tak nak memikir. The only way u wanna be good in programming is try to make it yourself, and use your so called brain. Human brain is thousand times more powerful than the computer. Human made computer, human make program to instruct computer to do human's job. Keja mudah sebenonya nak buat arahan bagi komputer buat reja. Bukan kita kena buat komputer pong.p/s: Gunakan apa yg dicadang aRmsTer untuk mula berfikir....................The beauty of programmming is when u get error...The hardwork is when u make another error in order to fix an error... Quote Share this post Link to post Share on other sites