#include <iostream.h>
#include <string.h>
#include <iomanip.h>

float x = 0, y = 0, solution = 0;
char YesNo1[] = "y";
char YesNo[] = "y";
int do_again = 0;
int operand = 0;

void instructions();

main()
{
	cout << "Welcome to mandreko\'s super calculator\n";
	cout << "Do you need instructions? (y/n)\n";
	cin >> YesNo1;
	if (YesNo1 == "y" || YesNo1 == "Y");
		{
		instructions();
	}
	do 
	{
	cout << "Here is a list of problems you can do.\n";
	cout << "1 - Addition (+)\n";
	cout << "2 - Subtraction (-)\n";
	cout << "3 - Multiplication (*)\n";
	cout << "4 - Division (/)\n";
	cout << "What kind of problem do you want to do?(1-4)";
	cin >> operand;

	if ( operand == 1 || operand == 2 || operand == 3 || operand == 4 )
	{
		}
	else
	{
		cout << "You made an invalid choice.\n";
	}
	cout << "What is the first number that you want to use?\n";
	cin >> x;
	cout << "And what is the second?\n";
	cin >> y;


	if (operand = 1)
	{
	solution = x + y;
	}
	else
		if (operand = 2)
		{
			solution = x - y;
		}
	else
		if (operand = 3)
		{
			solution = x * y;
		}
	else
		if ( operand = 4)
		{
			solution = x / y;
		}
	cout << "The answer is " << solution << ".  Would you like to do another problem?\n1 - Yes\n2 - No\n";
	cin >> do_again;
	}
	while ( do_again == 1);
	return 0; 
}

void instructions()
{
	cout <<"Insert instructions here\n";
	cout << "Press enter to continue\n";
}
