using System.Collections.Generic;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;
public static void Main(String[] args)
Console.WriteLine("***************************************");
Console.WriteLine("* Which mode do you want to play? *");
Console.WriteLine("***************************************");
Console.WriteLine("* Practice Mode *");
Console.WriteLine("***************************************");
Console.WriteLine("* Game Mode *");
Console.WriteLine("***************************************");
Console.WriteLine("* Exit *");
Console.WriteLine("***************************************");
Console.WriteLine("* Type Game or Practice or Exit *");
Console.WriteLine("***************************************");
String Start = Console.ReadLine();
while (!(Start.ToLower().Equals("game")) && !(Start.ToLower().Equals("practice")) && !(Start.ToLower().Equals("exit")))
Console.WriteLine("* Type Game or Practice or Exit *");
Console.WriteLine("***************************************");
Start = Console.ReadLine();
Random randomGeneratorG = new Random();
int[] game1 = new int[10];
int[] game2 = new int[10];
int[] game3 = new int[10];
int[] game4 = new int[10];
int[] game5 = new int[10];
int[] game6 = new int[10];
int[] game7 = new int[10];
for (int i = 0; i < 10; i++)
int randomNumber = randomGeneratorG.Next(0, 13);
int randomNumber2 = randomGeneratorG.Next(0, 13);
game6[i] = randomNumber2;
game7[i] = game5[i] * game6[i];
for (int i = 0; i < 10; i++)
int randomNumber = randomGeneratorG.Next(0, 101);
int randomNumber2 = randomGeneratorG.Next(0, 101);
game2[i] = randomNumber2;
game3[i] = game1[i] + game2[i];
game4[i] = game1[i] - game2[i];
Console.WriteLine("Easy,medium,or hard mode?");
String diff = Console.ReadLine();
while (!(diff.Equals("easy")) && !(diff.Equals("medium")) && !(diff.Equals("hard")) )
Console.WriteLine("Please type Easy,Medium,or,Hard");
diff = Console.ReadLine();
Console.WriteLine($"You are playing {diff} mode.");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
for (int i = 0; i < 10; i++)
Console.Write($"{game1[i]} - {game2[i]} = ");
Console.Write($"{game1[i]} + {game2[i]} = ");
test = int.TryParse(kb, out ans);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out ans);
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{10 - CorrectAnswers} | Score: {1.0 * CorrectAnswers / 10,2:P} ");
Console.WriteLine($"Wrong :) | Correct:{CorrectAnswers}, Wrong:{10 - CorrectAnswers} | Score: {1.0 * CorrectAnswers / 10,2:P} ");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
if (diff.Equals("medium"))
for (int i = 0; i < 10; i++)
Console.Write($"{game5[i]} * {game6[i]} = ");
Console.Write($"{game7[i]} / {game6[i]} = ");
test = int.TryParse(kb, out ans);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out ans);
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{10 - CorrectAnswers} | Score: {1.0 * CorrectAnswers / 10,2:P} ");
Console.WriteLine($"Wrong :) | Correct:{CorrectAnswers}, Wrong:{10 - CorrectAnswers} | Score: {1.0 * CorrectAnswers / 10,2:P} ");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
for (int i = 0; i < 10; i++)
int ran = randomGeneratorG.Next(0, 4);
Console.Write($"{game1[i]} - {game2[i]} = ");
Console.Write($"{game1[i]} + {game2[i]} = ");
Console.Write($"{game5[i]} * {game6[i]} = ");
Console.Write($"{game7[i]} / {game6[i]} = ");
test = int.TryParse(kb, out ans);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out ans);
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{10 - CorrectAnswers} | Score: {1.0 * CorrectAnswers / 10,2:P} ");
Console.WriteLine($"Wrong :) | Correct:{CorrectAnswers}, Wrong:{10 - CorrectAnswers} | Score: {1.0 * CorrectAnswers / 10,2:P} ");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
Console.WriteLine("How many problems do you want in this session?");
test = int.TryParse(kb, out eqn);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out eqn);
Console.WriteLine("Do you want to do addition, subtraction, multiplaction, or division? (+,-,*,/)");
String sign = Console.ReadLine();
while (!(sign.Equals("-")) && !(sign.Equals("+")) && !(sign.Equals("*")) && !(sign.Equals("/")))
Console.WriteLine("Please type +,-,*,/");
sign = Console.ReadLine();
Console.WriteLine($"You are {eqn} problems of {sign} type equations");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
Random randomGenerator = new Random();
int[] one = new int[eqn];
int[] two = new int[eqn];
int[] three = new int[eqn];
int[] four = new int[eqn];
int[] five = new int[eqn];
int[] six = new int[eqn];
int[] seven = new int[eqn];
for (int i = 0; i < eqn; i++)
int randomNumber = randomGenerator.Next(0, 13);
int randomNumber2 = randomGenerator.Next(0, 13);
seven[i] = five[i] * six[i];
for (int i = 0; i < eqn; i++)
int randomNumber = randomGenerator.Next(0, 101);
int randomNumber2 = randomGenerator.Next(0, 101);
three[i] = one[i] + two[i];
four[i] = one[i] - two[i];
for (int i = 0; i < four.Length; i++)
Console.WriteLine($"Correct :( | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.WriteLine($"Wrong :) | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.Write($"{one[i]} - {two[i]} = ");
test = int.TryParse(kb, out ans);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out ans);
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine($"Wrong :) | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
for (int i = 0; i < three.Length; i++)
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.WriteLine($"Wrong :( | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.Write($"{one[i]} + {two[i]} = ");
test = int.TryParse(kb, out ans);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out ans);
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine($"Wrong :( | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
for (int i = 0; i < seven.Length; i++)
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.WriteLine($"Wrong :( | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.Write($"{five[i]} * {six[i]} = ");
test = int.TryParse(kb, out ans);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out ans);
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine($"Wrong :( | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();
for (int i = 0; i < seven.Length; i++)
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.WriteLine($"Wrong :( | Correct:{CorrectAnswers}, Wrong:{i - CorrectAnswers} | Score: {1.0 * CorrectAnswers / i,2:P} ");
Console.Write($"{seven[i]} / {six[i]} = ");
test = int.TryParse(kb, out ans);
Console.WriteLine("Please type a number");
test = int.TryParse(kb, out ans);
if (ans == seven[i] / six[i])
Console.WriteLine($"Correct :) | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine($"Wrong :( | Correct:{CorrectAnswers}, Wrong:{eqn - CorrectAnswers} | Score: {1.0 * CorrectAnswers / eqn,2:P} ");
Console.WriteLine("Type anything to continue");
CONTINUE = Console.ReadLine();