الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[تنبيه - عنوان غير مناسب : ]مساعده بشرح فقرتين

بدأه ^sweet java ^ في 24 نوفمبر 2010 · 1 رد · 374 مشاهدة · في قسم البرمجة بــ Javascript
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

You are required to model a new user-defined object type, Account. The Account object has the following properties

q1p2.jpg

The Account object type has the following methods:

Using good programming style that helps readability, write JavaScript code to do the following:

a. Write a constructor function for the Account object data type.

b. Implement the methods getName(), getBalance(), credit(anAmount), debit(anAmount) and displayInfo() according to the above specifications.

c. Create an Account instance named myAccount, and initialize its properties as follows: name = a string representing your name, balance = 200.

<<<<انا حلييت الفقرات التاليه بس مافهمت هالفقرتين ياليت احد يشرحها لي

d. Using the appropriate methods, make the following transactions to myAccount in the given order:

· Debit myAccount by 400 à Credit myAccount by 300 à Debit myAccount by 100.

e. Use the method display() to show myAccount final state after making the transactions in d. Insert a screen dump showing the resulted alert box into your Solution Document.

#2

الأخ الكريم/الأخت الكريمة

السلام عليكم ورحمة الله وبركاته

مرحباً بكم في منتدى الفريق العربي للبرمجة

نود تنبيهك أن العنوان غير مناسب.

الرجاء اختيار عنوان مناسب أكثر في مواضيعك القادمة، وهذا بمثابة إشعار للأهمية.

وفي حال التكرار سيتعرض موضوعك للإغلاق والحذف!!!

قواعد المشاركة

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…