/* Mike Shain
CIS 10 A
ONLINE
Project 1

This program is a Math Tutor program that will ouput different
random numbers using addition, multiplication, and subtraction.
It will also tell the user if the answer is correct and the
print out a report informing the user of how many incorrect and
correct answers they got.

****************** THIS LINE IS 70 CHARACTERS LONG **********
*/
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
using namespace std;

void doOneSet('+','-','*');
void RandomNum(int &FirstNum,int &SecondNum);
//void getNumbers(int &FirstNum,int &SecondNum);
//void getProbPerSet();


int main()
{
srand(time(0)); //creats random numbers
//getProbPerSet(); //get amount of problems per set
doOneSet('+'); //The Addition set
//doOneSet('-'); //The Subtraction set
//doOneSet('*'); //The Multiplication set
//printReports(); //Print the amount incorrect/correct

//return 0;
}

void doOneSet('+','-','*')
{
//printHeader
//getMaxNum
//doOneProblem

int FirstNum;
int SecondNum;
int Answer; //Answer to problems
int pCount = 0; //counter for problems sets
char operand;

while (pCount < 5)
{
RandomNum(FirstNum,SecondNum);

//this is to check for a leading zero
//if (FirstNum < 10 || SecondNum < 10)
//{
cout << FirstNum << " + "
<< SecondNum
<< " = ";
cin >> Answer;
//}
//else
//{
// cout << FirstNum
// << " + " << SecondNum
// << " = ";
// cin >> Answer;
//}

pCount ++; //Counts the loop until count = 5

getNumbers(char operand); //calls the getNumbers function
//then gets the operator
}
}



///*this will be renamed getOperand()
void getNumbers(char &operand)
{
//char operand;
switch (operand)
{
case '+' :
{
//Addition
operand = FirstNum + SecondNum;
break;
}
case '-' :
{
//Subtraction
operand = FirstNum - SecondNum;
break;
}
case '*' :
{
//Multiply
operand = FirstNum * SecondNum;
}
}
}
*/
void RandomNum(int &FirstNum, int &SecondNum)
{
for (int i = 0 ; i < 100; i++)
{
//cout << setw(8) << rand() % 101;
FirstNum = rand() % 101;
SecondNum = rand() % 101;

if (i % 5 == 4)
{
//cout << endl;
}
}
}

void getProbPerSet()
{

}