In Progress

431351 Programming Project 1280709971

Create a project which consists of three classes; an Event class, the Time class and a Date class.

1) The Event class should have data members that are objects of the Time and Date class.

2) Extend the code for the Event and Time classes given in this description to include all necessary function and constructor implementation code. Also, design a Date class which has three data members to represent the year, month and the day.

Date class member functions should be able to:

set the date

return the date

print the date

add a default constructor and a constructor with parameters

3) Construct the main method so that it can test the member functions of each of the classes by creating an Event object and then performing the necessary operations to test all possible behavior.

This must be done in C++ and only one .cpp file.

output events:

New Year's Eve 00:01 12/31/1900

New Year's Day 00:01 01/01/1901


// Time Class


class Time


//this is a simple time class to demonstrate

//the use of one object within another class (composition)


void setTime(int, int);

void getTime(int&, int&);

void printTime() const;

void incrementMin();

void incrementHrs();

Time(int, int); //constructor with parameters

Time(); //default contructor


int hour;

int minute;



//Event Class


class Event



void setEventData(string eventName, int hour, int minute, int month, int day, int year);

void printEventData() const;

Event (string eventName = "", int hour = 0, int minute = 0, int month = 1, int day = 1, int year = 1900);


string eventName;

Time eventTime; // the event object is composed of a time object

dataType eventDay; // and a date object


Skills: Anything Goes, C Programming

See more: string programming, string in c programming, string in cpp, string functions in cpp, string c programming, string cpp, public programming, programming with cpp, programming object, programming method, programming functions, programming function, programming events, programming classes, programming class, objects in programming, object in programming, object c programming, method programming, functions programming, functions in programming, functions in c programming, function programming, function in programming, event programming

About the Employer:
( 10 reviews )

Project ID: #2177222

Awarded to:


Please see PMB.

$30 USD in 0 days
(0 Reviews)