Create Calendar objects chair & prof; For object chair, insert the following two
ID: 3534714 • Letter: C
Question
Create Calendar objects chair & prof;
For object chair, insert the following two appointments:
here is what i have so far::::>
*********** Â please do provide screenshots, thankyou. *********************
class Entry // Declares an appointment entry
{
public:Â
Entry();
Entry(int year, int dt, int hr, int min,Â
int sec, string first, string last);
void displayName() const;
void displayTime() const;
bool timeEqual(Time t);
bool dateEqual(Date d);
bool isEarlier(Entry appointment);
private:
Date date;
Time time;
Name name;
};
// Specification file array-based list (unsorted) (“list.hâ€)
const int MAX_LENGTH = 50;
typedef Entry ItemType;
class List // Declares a class data type
{
public: // Public member functions
List(); // constructor
bool IsEmpty () const;
bool IsFull () const;
int Length () const; // Returns length of list
void Insert (ItemType item);Â
void Delete (ItemType item);Â
virtual bool IsPresent(ItemType item) const;
virtual void SelSort ();
void Reset ();
ItemType GetNextItem ();
private: // Private data members
int length; // Number of values currently stored
ItemType data[MAX_LENGTH];Â
int CurrentPos; // Used in iteration
};
class Calender : public List
// Declares a class data type
{
public: // Public member functions
Calender(); // constructor
bool IsPresent(ItemType item) const;
void SelSort ();
void displayEntries(Date d);
bool entryExist(Date d, Time t);
};
Explanation / Answer
You're missing several classes. You need a name and a time class, also, entry class should inlude those two classes. then all that is left is to implement your classes.