السلام عليكم ورحمة الله وبركاته
انا حابه تخدموني في برنامج بلوجي جافا ..انااعتبر مبتدئه في البرمجه
وياليت تساعدوني
ابغى اعمل برنامج صراف الي
ATM
السلام عليكم ورحمة الله وبركاته
انا حابه تخدموني في برنامج بلوجي جافا ..انااعتبر مبتدئه في البرمجه
وياليت تساعدوني
ابغى اعمل برنامج صراف الي
ATM
21شخص مرو على ذا الموضوع
معقول ماحد يقدر يساعدني
لو اقلها فكرة عن الموضوع ...
او اقلها ردو انو ماعندكم اي خلفيه ومشكورين
اشرح ماذا تريد بالضبط ،
انا لاأعرف كيف يشتغل ATM لكن بالتأكيد انت تعرف ،
للأسف السؤال غير واضح بالمره ..
هذا كود
ATM
الcomments تشرح وش صاير
public class ATM
{
// instance variables
private String accountName;
private String accountID;
private double balance;
// constructor
public ATM(String name, String accountNum, double initBalance)
{
accountName = name;
accountID = accountNum;
balance = initBalance;
}
// second constructor
public ATM(String name, String accountNum)
{
accountName = name;
accountID = accountNum;
balance = 0.0;
}
/****** methods ******/
// return name on account
public String getName()
{
return accountName;
}
// return the account ID
public String getAccountNumber()
{
return accountID;
}
// return the current balance
public double getBalance()
{
return balance;
}
// change name on account
public void setName(String newName)
{
accountName = newName;
}
// add money to account balance
public boolean deposit(double amount)
{
balance = balance + amount;
return true;
}
// withdraw money
public boolean withdraw(double amount)
{
if (balance >= amount)
{ balance = balance - amount;
return true;
}
else
return false;
}
}تم تعديل هذه المشاركة بواسطة ScarFace في 12 مايو 2007 في 00:19
ScarFace جزاك الله خيرا
ماقصرت ياخوي وماعليش عشان ماوضحت الموضوع
بس انا ابغى الموضوع بتعمق شويه المشكله اني انا مو قادر ارتب الفكره
بس اطلعت على موقع تقريبا قادر يشرح طريقة عمل الصراف
فياليت ياخ عيسى لو تتطلع عليه اوي احد يقدر يفيدني
http://www.math-cs.gordon.edu/local/course...c/packages.html
السلام عليكم
اتمنى انكم اطلعتم على الموقع
انا بحثت في مواقع إخرى عن توضيح فوجدت هذا السوال , احس انه صحيح
ولتوضيح اكثر هذا هو السؤال
inthis project you will write aprograme that simulates an ATMmachine .( 1)you will need to creat abase Accountsclass and(2) creat child classes for different types of accounts(3) you will need to input your card number from the console(4) you need acontrol class that will have accounts for diffrent customers (5) creat functions for creating accounts using input from the user.
component of an ATM machine
Takes in ATM card
checkes if PIN number is correct
checkes to see if part of instiution (if not surcharge $2)
Do you want areceipt with your transaction?
Only allows increments of $20
withdrawal _Checking or saving option
Fast cash option$60
Deposit_Checking or saving option
other
-Account Balance- checking or saving
- Last 10 recent Deposists
-last 10recent Withdrawals
option for another transaction (yes or no) .l
if no ,then gives money
if yes,go back
ارجو المروروالافادة والرد سريعاً
وشكراً
جيد ، ابدأ بفهم المسأله بشكل جيد ثم اعمل implement لها ،
بعض الخطوات :
انشأ كلاس Account ، يكون عام لجميع انواع الحسابات ،
انشأ انواع متعدده من الحسابات ، ماعرف بالضبط وش هي ، لكن هناك حساب عائلي وهناك حساب شخصي على مااعتقد
اسند القيم أو الخصائص اللازمه لكل كلاس ، وابدأ بالتطوير ،
لاتتردد ان واجهتك مشكله ...
شكراً للأخ عيسى
بس لوني ثقلت عليكم ممكن تساعدوني بكتابة الsource code
لان موعد التسليم قرب والاختبارات على الابواب
افاااااااااااااااا
هذي هي اخرتها
106 شخص قراء الموضوع ولا رد واحد
وين الفزعة وين لاتتردد ان واجهتك مشكله ...
بس كلام
كل ماعلينا ان نفعله هو ان نضع الكره في مرماك ، ونساعدك في مشاكلك ، أما ان نحل assignments فهذه لاتنفعك ولاتنفعنا
ولاتتردد ان واجهتك مشكله !
هذا الموضوع مغلق.
المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية
جارٍ التحقق من المتواجدين…