431351 Programming Project 1280709971

This project was awarded to tkearn5000 for $30 USD.

Get free quotes for a project like this
Employer working
Project Budget
Total Bids
Project Description

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


Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online