public static bool RunProgramLoop() { bool view = false; string[] inputs = ReturnValidStrings(); RepeatCounter newCounter = new RepeatCounter(inputs[0], inputs[1]); string t = ""; if (newCounter.GetCount() > 1) { t = "times"; } else { t = "time"; } Console.WriteLine($"The word '{newCounter.Word}' appears {newCounter.GetCount()} {t} in the sentence '{newCounter.Sentence}' "); if (RepeatCounter.GetInstances().Count > 0) { Console.WriteLine(""); Console.WriteLine("If you want to try again, press Enter."); Console.WriteLine("If you want to [V]iew your previous entries, press V and enter."); string resp = Console.ReadLine().ToLower(); if (resp == "v") { view = true; } else { view = false; } } return(view); }