Phase III: Now you will change your doOneSet function so that it will work for either addition, subtraction, or multiplication. For the purposes of this assignment, a set of problems is defined to be a group of problems that are all of the same type (all addition, all subtraction, or all multiplication). After completing this phase your program will give 5 addition problems, 5 subtraction problems, and 5 multiplication problems, for a total of 15 problems. Your main function must look exactly like this:
int main()
{
srand(time(0));
doOneSet('+');
doOneSet('-');
doOneSet('*');
}
so I saw a response to this question but I do not understand what they ment "I would just have a check inside the function that, based on what the operator is (plus, minus, etc.), it calculates the answer differently. That's all you'd really need to do. Just pass another parameter for the operator you want to practice on."