#include <iostream>
using namespace std;

class SimpleCalculator
{
private :	//attributes
	float input1, input2, result;
public :	//methods
	void add(void);
	void subtract (void);
	void multiply (void);
	void divide (void);
	SimpleCalculator (void);	//constructor
	~SimpleCalculator (void);	//destructor
};
void SimpleCalculator :: add (void)
{
	// use stubs to get the correct program structure first
	cout << "This method will add two numbers together \n";
}
void SimpleCalculator :: subtract (void)
{
	// use stubs to get the correct program structure first
	cout << "This method will subtract two numbers \n";
}
void SimpleCalculator :: multiply (void)
{
	// use stubs to get the correct program structure first
	cout << "This method will multiply two numbers together \n";
}
void SimpleCalculator :: divide (void)
{
	// use stubs to get the correct program structure first
	cout << "This method will divide two numbers \n";
}
SimpleCalculator :: SimpleCalculator (void)
{
	cout << "This is the constructor \n";
	cout << "The object is constructed by this method \n\n";
}
SimpleCalculator :: ~SimpleCalculator (void)
{
	cout << "\nThis is the destructor \n";
	cout << "The object is destroyed by this method \n\n";
}
void main (void)
{
	SimpleCalculator myCalculator;
	int selection;

	cout << "This is a simple calculator program \n";
	cout << "1 Add numbers \n";
	cout << "2 Subtract numbers \n";
	cout << "3 Multiply numbers \n";
	cout << "4 Divide numbers \n";
	cout << "Enter the number corresponding to your choice : ";
	cin >> selection;
	switch (selection)
	{
	case 1 : myCalculator.add();
		break;
	case 2 : myCalculator.subtract();
		break;
	case 3 : myCalculator.multiply();
		break;
	case 4 : myCalculator.divide();
		break;
	default : cout << "Enter an integer between 1 and 4 to choose an option \n";
	}
}



