Question: COMPUTER SCIENCE TRAIN STATION PROJECT! I have written the code for one main classes for a sequence of programs that will determine the activity around

COMPUTER SCIENCE TRAIN STATION PROJECT! I have written the code for one main classes for a sequence of programs that will determine the activity around a train station. The code will be Train.h, TrainCar.h, Train.cpp, TrainCar.cpp, Time.h, Time.cpp, TrainStation.h, and TrainStation.cpp.

Train.h - http://www.csee.umbc.edu/courses/undergraduate/202/spring16_marron/projects/proj3/Train.h

TrainCar.h - http://www.csee.umbc.edu/courses/undergraduate/202/spring16_marron/projects/proj3/TrainCar.h

TrainStation.h - http://www.csee.umbc.edu/courses/undergraduate/202/spring16_marron/projects/proj3/TrainStation.h

TrainStation.cpp - http://www.csee.umbc.edu/courses/undergraduate/202/spring16_marron/projects/proj3/TrainStation.cpp

A full description of the guidelines for how I built my code for Train.cpp are outlined in Train.h.

Train.cpp:

#include using namespace std;

#include "Train.h" #include "TrainCar.h"

// Default constructor. Initialize variables and create dummy node. Train::Train() : m_number(0), m_departs( Time() ), m_destination ( "" ), m_hasSnackCar(false), m_numCoachClass(0), m_numBusinessClass(0), m_numSleepingCar(0) { m_head = new TrainCar(); // dummy node }

// Non-default constructor. Initialize variables and create dummy node. Train::Train( int num, Time dep, string dest) : m_number(num), m_departs(dep), m_destination(dest), m_hasSnackCar(false), m_numCoachClass(0), m_numBusinessClass(0), m_numSleepingCar(0) { m_head = new TrainCar(); // dummy node }

// // IMPLEMENT THE REMAINDER OF THE CLASS AND THE OVERLOADED // INSERTION OPERATOR //

void Train::addCar( TrainCar::car) {

TrainCar::cType newCarType = car.getType();

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!