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

سوال في لغة السي بلس بلس

مغلق
بدأه nextday في 27 فبراير 2006 · 5 رد · 598 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

اخواني هذا السؤال تعبنا ما عرفتة وانا توني مبتدا في اللغة يا ليت تساعدوني

َ:Q

For this part, write the class definitions for the following classes (described using UML notations). Product IDs range from 1 to 10000, while employee IDs range from 1000 to 9999.


Product
ID: Integer
name: String
displayInfo()


Customer
name: String
phone: String
displayInfo()


Employee
ID: Integer
name: String
birthDate: Date
hireDate: Date
salary: Number
displayInfo()


Tasks:
1. Create one file called Store.cpp and put all class definitions in it.
2. Put your name and ID # as comments in the beginning of the file.
3. Add a main() function at the end of the Store.cpp file.
4. Save, compile, and test your program to make sure you don’t have any errors.
5. Add one constructor for each class. The constructor should receive (as parameters) all the information of the class object, as listed in the UML class diagrams. Add the necessary code in the class constructor to initialize the data members of each class. The constructor should validate all passed arguments before assigning them to data members. After adding code to one of the constructors, compile, link, and run your project to make sure you still have no errors.
6. Add the necessary code to implement the displayInfo() function of each class.
7. In main(), create one object of each class and call its displayInfo().
8. Save, compile, and test your program and make sure you don’t have any errors.
9. When you are done, upload your Store.cpp to the Assignments section in WebCT.



Note: You should use the Principle of Least Privilege when defining the prototypes of member functions

اتمنى تساعدوني ولكم جزيل الشكر

#2

موضوع مخالف إحنا مبنحلش واجبات !!!

الواحد زهق من كتر المواضيع إللي ذي دي

#3

اخوي هو مجرد سوال ...مو مطلوب الحل الكامل مطلوب الشرح للسؤال والطرق المستخدمة لحل مثل هذا السوال فقط؟؟؟؟ إن امكن اخواني

#4

السلام عليكم

انا مبتدئ في هذا المجال ايضا

رجاءا ممكن الحل ؟؟

#5

الموضوع مخالف من عـدة نواحي كثيرة .... رجاء مراجعـة مواضيع القسـم

كما أنني لا أدري لماذا يطلب في السؤال الخطوة رقم 2 .........

#6
Sultan_Althibity كتب:
كما أنني لا أدري لماذا يطلب في السؤال الخطوة رقم 2 .........

ربما ليتأكد أن اللذي قام بالواجب هو وليس أحد غيره

ولمعرفة كيف يكتب الملاحظات!!!!

هذا الموضوع مغلق.

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