إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


إضافة رد
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 09-28-2010, 05:00 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,610
عدد الـنقاط :3341
 تقييم المستوى : 2139

السلام عليكم ...

عندي كم برنامج ياريت لو تساعدوني فيه واكون لكم شاكره ..


حاولت فيه بس مو راضي يزبط معي .
ضQ1:Create a C++ program to calculate the average marks of 5 students entered by the user. Create a class student which has one member variable marks. The user is asked to enter the marks of these 5 students.

Q2:Create a C++ class 'Student' with two private member variables of integer data type, age and marks. This class should define two functions average Marks() and averageAge() both of which take two arguments (objects of Student class itself, say s1 and s2, passed by reference). In main(), create three objects of this class, initialize their member values using constructor and print the average marks and average age of all three students.

Q3:Create a C++ class 'Employee' which has two member variables 'salary' and 'age' of integer data type. In main() create a array of 10 objects of Employee class using new operator and assign suitable values to member variables of each object using either function or constructor. The program should print the average salary of these employees as well as the salaries of the oldest and youngest employee.

وشكرا انتظر المساعده ..
__DEFINE_LIKE_SHARE__
رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)

أدوات الموضوع
انواع عرض الموضوع

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

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 07:09 PM


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML