النتائج 1 إلى 2 من 2

الموضوع: اخوان مساعدتكم رجاءا

  1. #1
    عضوية جديدة
    تاريخ التسجيل
    May 2008
    المشاركات
    11
    معدل تقييم المستوى
    0

    Post اخوان مساعدتكم رجاءا

    سلام عليكم

    محتاج مساعدة بخصوص هذا السؤال

    والرجاء المساعدة لأن تعتمد عليه درجة النجاح

    :ah27:


    وهذا السؤال

    Write a program that simulates Vending Machine.

    User of the machine inserts coins. (can insert 10 cents or 25 cents)
    Machine reports the total money inserted in it, then user selects the button for the drink to choice. (5 different kind of drinks are available and each of their price may be different.)
    If the person insert enough money and if the selected item is in stock, the beverage can drops into the bin and change is dispensed. If person is not entered enough money , message is displayed on the screen. If the item is out stock "out_of_stock" message is displayed.
    Sample outputs:
    (input money until user input s: (s for stop))
    Input money: 25
    Input money: 25
    Input money: 25
    Input money: 25
    Input money: s

    You entered $1.00
    0 Coke ($1.25)
    1 Pepsi ($1.25)
    2 7-Up ($1.00)
    3 Bixi ($0.75)
    4 Uludag ($0.75)
    5 Return money and exit.


    Create 3 classes: 1- Money Control, 2- Stock Control 3- Vending Machine
    1- Money Control class has one attribute called input_amount.
    2- Stock Control class has three attributes: beverage, cost_of_the_beverage and total_amount_in_stock
    3- Vending Machine has five different beverages(use array), and money bank.: (use composition)
    You set your own stock, and add necessary functions.
    In main create one machine, and test your program.
    Vending Machine Object


    وان شاء الله ما اكون طولت عليكم



    مع التحية والسلام



    ابن العراق



    :ah49:



  2. #2
    عضوية جديدة
    تاريخ التسجيل
    May 2008
    المشاركات
    11
    معدل تقييم المستوى
    0

    رد: اخوان مساعدتكم رجاءا

    اعرف مواضيعي قليله

    وما مشارك وياكم بس اريدها نخوة منكم

    لأن عليها درجة نجاح وجدا محتاجها

    وان شاء الله ما تقصرون

المواضيع المتشابهه

  1. مساعدتكم في تبديل لوحة الام رجاءا
    بواسطة قناص البرامج في المنتدى الأرشيف
    مشاركات: 5
    آخر مشاركة: 15-10-2009, 11:53
  2. مساعدتكم يا اخوان في كسر سرعه ال gigabyte GA-EP35-DS3L
    بواسطة بوعلووووي في المنتدى الأرشيف
    مشاركات: 3
    آخر مشاركة: 29-12-2008, 14:23
  3. تقارير عن معالجات الـ Intel , AMD , Motorolla مساعدتكم يا اخوان
    بواسطة طالب كلية تقنية في المنتدى الأرشيف
    مشاركات: 6
    آخر مشاركة: 25-11-2008, 14:56
  4. حاس أنه اتنصب علي!! رجاءا المساعدة يا اخوان
    بواسطة A.M.Z في المنتدى الأرشيف
    مشاركات: 13
    آخر مشاركة: 07-10-2007, 05:01
  5. محتاج مساعدتكم يا اخوان
    بواسطة صقر العراق في المنتدى الأرشيف
    مشاركات: 1
    آخر مشاركة: 24-08-2005, 18:05

المفضلات

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •