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

اريد فكره هذا البرنامج

بدأه جنـــــــا في 6 يناير 2009 · 1 رد · 410 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

اريد فكره هذا البرنامج

Write a C++ program for a supermarket. The program should contain for each product: its name, its code, its price, and its type. The type may be one of the following types: food, electronic device, and others. The program must ask the user to input product's name, price, and type. And it must generate for each product a random code. The supermarket wants to discount the price of products which its type is electronic device and its price is more than 200 SR with 15%. If the entered product satisfies the conditions of discounting, the program must discount, other wise it must display the following message : " product does not satisfy discounting condition. Your program must display the following menu:

1. Insert a new data for a product

2. Check for discounting

3. Display information of a product

4. Exit

Notes:

· Use a class

· Random Code must contain six digits.

· Return value of a function that check for discounting is Boolean.

تم تعديل هذه المشاركة بواسطة جنـــــــا في 6 يناير 2009 في 23:17

#2

-_- always

العمل كثير و الوقت قليل أعاننا الله

seo zen SEO Enlightment amazon danbo

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