/********************************************************************************************
driver.cpp
    Jim Millard
    Practical 10
********************************************************************************************/
#include <iostream>
#include "compass.h"
using namespace std;

void paces(compass& c);

void main() {
    //no arguments
    compass cTest;
    paces(cTest);

    //create using arguments
    compass cTest2(45,15); //45 degrees, 15 minutes
    paces(cTest2);

    cout << "Add the first to the second: ";
    cTest2.addSame(cTest);
    cTest2.print();
    cout << endl;
}


void paces(compass& c) {
    //putting the object through it's paces...
    cout << "Start:   ";
    c.print();
    cout << endl;

    int i;
    for (i = 0; i < 4; i++) {
        cout << "Add 35s: ";
        c.addSecond(35);
        c.print();
        cout << endl;
    }

    for (i = 0; i < 4; i++) {
        cout << "Add 35m: ";
        c.addMinute(35);
        c.print();
        cout << endl;
    }


    for (i = 0; i < 4; i++) {
        cout << "Add 200d: ";
        c.addDegree(200);
        c.print();
        cout << endl;
    }
    cout << endl;
}