Monday, 21 November 2011

CS304 Assignment 2 Idea Solution


#include<iostream.h>
#include<conio.h>

class Users{ // User class

// Userclass attributes
// Access specifier is by default private 
int ID; 
char Name;
string Address;

public:// public access specifier

// User class functions/ operations 
void viewcard();
void searchcard();
};// end of User class
// ************************************************************
// ************************************************************

class Administrator{ // Administrator class
//Attributes of Administrator class 
int ID; 
char Name;
string Address;
password password;

public:// public access specifier

// Administrator class functions/operations 
void addcard();
bool deletecard();
void Viewcard();
void searchcard();
void sendcard();
};// end of Administrator class

// ************************************************************
// ************************************************************

class Members{ // Members class
//Attributes of Members
// Access specifier is by default private
int MemberID; 
char Name;
string Address;
// Member class functions/operations 

void Viewcard();
void searchcard();
void sendcard();

};// end of Member class

// ************************************************************
// ************************************************************

class Memberlist{ // Memberlist class

//Memberlist class attributes
// Access specifier is by default private
Char membername;
Password password;
Char status;
Char country;

public: // public access specifier

// memberlist class functions/ operations 
void verifymembers();
void addmembers();
void getrecord();
void showmemberlist();
};// end of memberlist class

// ************************************************************
// ************************************************************

class card{ // card class

//card class attributes
// Access specifier is by default private
Int cardID; 
Char cardname;
Int BGid;
Int MUid;
Date date;

public: // public access specifier

// memberlist class functions/ operations 
void sendcard();

};// end of card class

// ************************************************************
// ************************************************************
class cardlist{ // cardlist class

//cardlist class attributes
// Access specifier is by default private
Int cardID;
Char cardname;


public: // public access specifier

// memberlist class functions/ operations 
Void delete();
void addcard();
void getcard();

};// end of cardlist class

// ************************************************************
// ************************************************************
class Categorycatolog{ // Categorycatolog class

// class attributes
// Access specifier is by default private
Int catID;
Char catname;

public: // public access specifier

// memberlist class functions/ operations 

void addcatagory();
void deletecatagory();
void addcard();
void deletecard();
void showcard();
};// end of catagorycatolog class

// ************************************************************
// ************************************************************

JUST IDEA SOLUTION


No comments:

Post a Comment