زهرة ربيعية
Well-Known Member
- تاريخ التسجيل
- 25 أكتوبر 2012
- المشاركات
- 107
- المجموعة
- أنثى
- الدفعة الدراسية
- 2010
- الكلية
- كلية تقنية المعلومات
- التخصص
- هندسة حاسوب
انا حليت السؤال كامل تقريبا بس ال3 أسئلة اللي سألتهم أمس ماعرفت شلون :/
PART (A)
Implement a class named MenuType for a restaurant. The class includes the following data members: Name (string), price (float) and Type (string) which specifies that plate offered for “Breakfast”, “Lunch” or “Dinner”.
And the following public member's functions:
1) A constructor with default parameters. The constructor must output the following message: "Object has been created".
2) A set function to all data members of the object.
3) A get function to return all data members of the object.
4) A function ShowMenu to display all data of the object.
5) IncreasePrice which adds an amount to the Price of the object
PART (B)
In the main function do the following:
1) Write one statement to declare an array Name MenuList with maximum size 50 of Type MenuType.
2) Write the code to enter (from the user) data of four objects in array MenuList
3) Write the code to output all the items offered in "Lunch" time.
4) Write the code to increase the price of all items in Menulist by 0.5 BD.
PART (A)
Implement a class named MenuType for a restaurant. The class includes the following data members: Name (string), price (float) and Type (string) which specifies that plate offered for “Breakfast”, “Lunch” or “Dinner”.
And the following public member's functions:
1) A constructor with default parameters. The constructor must output the following message: "Object has been created".
2) A set function to all data members of the object.
3) A get function to return all data members of the object.
4) A function ShowMenu to display all data of the object.
5) IncreasePrice which adds an amount to the Price of the object
PART (B)
In the main function do the following:
1) Write one statement to declare an array Name MenuList with maximum size 50 of Type MenuType.
2) Write the code to enter (from the user) data of four objects in array MenuList
3) Write the code to output all the items offered in "Lunch" time.
4) Write the code to increase the price of all items in Menulist by 0.5 BD.
ياريت تخلون السؤال كامل عشان أقدر أحله![]()

؟



ابي جم جزئية اذا تقدر تشرحهم ليي جزئية ال fuction overload اني احس مسويتنها غلط ,, و الaddress كل ما احط ال defult value ما يصير ليي يطلع فيه ايرور وبعد المين فنكشن ,, السؤال الي اغير الرقم مو عارفة شلون اسويه