I was actual able to do it a different way once I manipulated the code some so it's
string[] manyStrings = {"+", "-", "*", "/"};
Random Rstring = new Random();
string symbol = manyStrings[Rstring.Next(0, manyStrings.Length)];
however now I'm stuck on my if statement to show points earned and point total. Here's what I have
do
{
Console.Clear();
numberOne = number.Next(1, 10);
numberTwo = number.Next(1, 10);
symbol = manyStrings[Rstring.Next(0, manyStrings.Length)];
//Calculation of the answer prior to the user inputting their solution
if (symbol == "*")
{
answer = numberOne * numberTwo;
}
else if (symbol == "+")
{
answer = numberOne + numberTwo;
}
else if (symbol == "-")
{
answer = numberOne - numberTwo;
}
if (symbol == "/")
{
answer = numberOne / numberTwo;
}
for (int i = 1; i >= 1; i++)
{
Console.WriteLine("\t" + "### Math Problems ###");
Console.Write("Problem {0}: {1} {2} {3} = ", i, numberOne, symbol, numberTwo);
userA = (Convert.ToInt32(Console.ReadLine()));
pointsTotal += 5;
averageM = pointsTotal / (i*5);
if (userA == answer)
----->>>> This is what I'm stuck on below {
Console.WriteLine("Points Earned: 5" + "\t Point Total: " + "{0}" + "\t Average: " + "{1:P)", pointsTotal, averageM);
}
}
} while (runApp == true);