1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
//Initial Value of opSign
opSign = '+';
while (opSign != '%', count <=3)
{
cout << "Please enter your operation -->" << endl;
cout << endl;
cin >> num1 >> slash >> den1 >> opSign >> num2 >> slash >> den2;
cout << "Please enter your result -->" << endl;
cout << endl;
cin >> answerUser1 >> slash >> answerUser2;
// Function Calls
fractionCalc (num1, num2, num3, den1, den2, den3, opSign);
fractionComparison (num1, num2, den1, den2, num3, den3, answerUser1, answerUser2, opSign, floatPoint, correct);
count++;
}
|