عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 21-12-2013, 06:04 PM   #522

noofi saeed

جامعي

 
تاريخ التسجيل: Nov 2012
نوع الدراسة: إنتظام
المستوى: الثالث
الجنس: أنثى
المشاركات: 11
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

السلام عليكم ..

انا ابببببدا مو فاهمه array ممكن احد يشرحها ببساطة ؟

واحتاج مساعدة في حل البروجت دا


Extension 1: The program should store all transactions for every country separately ( Only Sender name and the amount to transfer) Hint: you need 11 arrays to store this information (five arrays for sender's names , five arrays for amount to transfer and the last one for storing the id numbers for all senders).

Extension 2: Write a method called displayDetails() which accepts two arrays (one as String which contains the sender's names and the second one which contains the amount to transfer) and string value which represent country name.
And display the names and amount to transfer also it should display the total amount.
For example suppose the following senders send the corresponding amount
(Ali, 10000) , (Shoaib ,12000 ) , (Abdullah , 9000),…..
The method should display like the following
The details of transactions Yemen
---------------------------------------
S.No Name Amount
-----------------------------------------------------------------------------------------------------------------------------
1Ali 10000
2Shoaib 12000
3Abdullah 9000
Total Amount: 31000

الله يسعدكم دنيا واخخخخخره انقذوني حتى لو البداية وانا اكممل

 

noofi saeed غير متواجد حالياً   رد مع اقتباس