/*
* @author Michele Van Dyne
*
* This program tests our multiple file Mathematics class.
*/
#include
#include
using namespace std;
#include "Mathematics.h"
/*
* The main function of the program. It creates a Mathematics
* instance and uses it to perform each of the operations on
* two integers that are input by the user.
*
* @return an integer indicating successfull completion of the program
*/
int main()
{
int num1, num2, result;
Mathematics maths;
cout << "Enter the first number: ";
cin >> num1;
cout << "Enter the second number: ";
cin >> num2;
result = maths.add(num1, num2);
cout << "\nThe result of adding the two numbers is: " << result << endl;
result = maths.subtract(num1, num2);
cout <<"The result of subtracting the two numbers is: " << result << endl;
result = maths.multiply(num1, num2);
cout << "The result of multiplying the two numbers is: " << result << endl;
result = maths.divide(num1, num2);
cout << "The result of dividing the two numbers is: " << result << endl;
return 0;
}