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

[مخالف - طلب حل : ]ابي مساعدتكم الله يسعدكم :)...

مغلق
بدأه رماد انساان في 24 فبراير 2012 · 2 رد · 315 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ابي احل هذا السؤال ابيه ضروووري

3

) Complete the Exam class below to the following specification:

a) Constructor initialization:

i) Default constructor, to initialize ExamName to Null and No_of_paper to

ii) Parameterized constructor, that initializes all data members to the arguments passed.

b) Class data member validation:

i) Validate ExamType so that it should only be one of the values: Finalterm, Midterm, and Quiz.

ii) Validate No_of_paper so that it should be always greater than or equal to zero.

c) In the Main do the following:

i) Create an object CS140 _Final, CS141 _Final of Exam class, knowing that:

T.Ahmad teaches CS140 and has one Final exam, the number of his students is 41. He also Teaches CS141 and has one final exam, the number of his students is 29.

ii) Create an object CS140 _Quiz, knowing that:

T_Umar is the Teacher assistance of the T_Ahmad's CS140 course, he only has one quiz. (use the Parameterized constructor for initialization).

iii) Create an array of objects CS106 of size 3 knowing that:

T_Umar teaches CS106 and has a 2 Midterms and one Final exam.

iv) Print the exam information of all objects in part ©.

class Exam

{

string ExamType;

string ExamCourse;

int No_of_paper;

public:

void setExamType (string type)

{ ExamType= type;}

void setExamCourse (string course)

{ ExamCourse = course;}

void setpaper(int paper)

{ No_of_paper = paper;}

string getExamType()

{ return ExamType;}

string getExamCourse ()

{ return ExamCourse;}

int getpaper()

{ return No_of_paper;}

};

مشكوووورين :) .

−2
#2
اقتباس
1. ضع محاولاتك أولاً

2.استخدم اللغة العربية

3.اكتب عنوان مناسب للمشاركة

+1

-1 لصاحب الموضوع ! :sleep:

الموضوع مخالف لقوانين القسم.

1
#3

الأخ الكريم/الأخت الكريمة

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

مرحباً بكم في منتدى الفريق العربي للبرمجة

تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات، فقرة طلب حل الواجبات والتمارين.

قواعد طرح المشاركات

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

1

logo1.png تطبيق طمأنينة ، نسخة بيتا على أندرويد

عبدالله الشمّري - Al-Shammari

CodingAlone.com

twitter @abshammeri

abshammeri AT gmail.com

github : abshammeri

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

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