431351 Programming Project 1280709971

IN PROGRESS
Bids
1
Avg Bid (USD)
$30
Project Budget (USD)
N/A

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)
public:

void setTime(int, int);
void getTime(int&, int&);
void printTime() const;
void incrementMin();
void incrementHrs();
Time(int, int); //constructor with parameters
Time(); //default contructor

private:

int hour;
int minute;
};


//***********
//Event Class
//***********

class Event
{
public:

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);

private:

string eventName;
Time eventTime; // the event object is composed of a time object
dataType eventDay; // and a date object
};

Skills required:
Anything Goes, C Programming
Hire sanitysquared
Project posted by:
sanitysquared
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.