Jump to content
Sign in to follow this  
111z

Assignment Java

Recommended Posts

hi all

aku 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 biggrin.gif

Share this post


Link to post
Share on other sites

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 smile.gif

Share this post


Link to post
Share on other sites

Ceh kalo ko nak tanyer pasal bende tu kat forum nie berjanggut arr arrr brother tongue.gif

aper kater ko cuber cari inisiatif lain mcm pi kat tutorial java ker ,study kat buku ker aper ker smile.gif misti caro sehhhhhhhh wink.gif

Edited by julia

Share this post


Link to post
Share on other sites

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 ..

Share this post


Link to post
Share on other sites

aku tolong bagi jalan cerita je laa yee..

1. declare sume tu sbg 5-size array variable.. yg integer n float sume laahh

2. pakai repetition for loop... count=0 to 4

3. 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

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...