A social recreation club has a system to keep track of club members, committees
ID: 3771554 • Letter: A
Question
A social recreation club has a system to keep track of club members, committees and activities. Each club has a registration number and a title. Committee is formed by several members. Members are male and females. Each committee has a name, a unique number and a date which the committee has formed. The system stores the members’ unique identification number, name, address, gender, birth date and club joining date. The club forms committees for different activities. A committee controls and organizes a number of activities, each of which has a unique name, a unique number and description of the event. An event has event ID and description of the event. An activity may consist of several events. Committee publishes many online advertisements about the activities. Advertisement details are ID and a title.
Draw a class diagram to represent the above scenario??
Explanation / Answer
class club{
string title;
int reg_num;
vector<committee*> comm;
};
class committee{
string name;
date d_form;
int number;
vector<activity*> act;
vector<member*> mem;
};
class advertisement{
string title;
int ID;
};
class activity{
vector<event*> event;
};
class event{
string event_name;
int uni_num;
string description;
};
class member{
int identification_num;
string name;
string address;
int gender; // 0 for male
date birth_date;
date join_date;
};
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.