//---------- private static void dumpAdmissionInstructions() { Console.Clear(); // Console.ResetColor(); Useful.setColors(ConsoleColor.Green, ConsoleColor.Black); Console.Write("\nfile not found: "); Console.WriteLine(si.getCourse() + "_" + si.getExamination() + "_questions.txt"); Console.WriteLine("\nThis program requires that a text data file containing "); Console.WriteLine("the test questions be placed in the local directory from "); Console.WriteLine("whence this program is executed. You can download this "); Console.WriteLine("data file from the Exam Assignment in our Moodle course "); Console.WriteLine("shell."); Console.WriteLine("\nThe information that you just provided "); Console.WriteLine("(YourName, the course name, and the exam type) "); Console.WriteLine("are all used to locate the files used by the program. "); Console.WriteLine("If you did not copy the data file into the directory, "); Console.WriteLine("or if you entered an invalid course name, or an invalid "); Console.WriteLine("exam type (which are parts of the text data file name), "); Console.WriteLine("you will see this error message and be given an "); Console.WriteLine("opportunity to restart the program."); Console.WriteLine("\nAlso be aware that this program produces a text file "); Console.WriteLine("(which includes YourName) containing your responses to "); Console.WriteLine("the test questions. Theoretically, your responses "); Console.WriteLine("should be preserved across multiple runs of the program. "); Console.WriteLine("Still you need to check your work, and maybe even re-enter "); Console.WriteLine("some of your responses, because.... No guarantees! "); Console.WriteLine(); Useful.enterContinue(); }
//---------- private static void dumpIterativeDevelopmentMessage() { Console.Clear(); // Console.ResetColor(); Useful.setColors(ConsoleColor.Green, ConsoleColor.Black); for (int ii = 0; ii < iterativeDevelopmentMessage.Length; ii++) { Console.WriteLine(iterativeDevelopmentMessage[ii]); } Console.WriteLine(); Useful.enterContinue(); }
} // end function Main() //---------- private static void dumpScreenSizeInstructions() { Console.WriteLine("This program requires that the Console Window Size "); Console.WriteLine("must be at least (80 columns by 30 rows). "); Console.Write("\nPresently, it is (" + Console.WindowWidth + " by "); Console.WriteLine(Console.WindowHeight + ") which is too small. "); Console.Write("\nPlease resize this window, before attempting to "); Console.WriteLine("re-run this program."); Console.WriteLine(); Useful.enterContinue(); }
//---------- private static void dumpReleaseInstructions() { // Useful.clearLine(5); Console.Clear(); // Console.ResetColor(); Useful.setColors(ConsoleColor.Green, ConsoleColor.Black); Console.WriteLine("You will need to upload your responses file "); Console.WriteLine("(" + si.getCourse() + "_" + si.getExamination() + "_" + si.getStudentName() + ".txt)"); Console.WriteLine("into the final exam dropbox in the Moodle shell for our course."); Console.WriteLine(); Console.WriteLine("It would also be a very good idea for you to keep "); Console.WriteLine("a backup copy of that file, just in case I encounter "); Console.WriteLine("problems in processing it. "); Console.WriteLine(); Useful.enterContinue(); }
//---------- public StudentInfo() { Useful.setColors(ConsoleColor.Green, ConsoleColor.Black); Console.Clear(); Useful.clearLine(0); Console.WriteLine("Greetings! Before we get started..."); Console.WriteLine(" I need to get a couple of pieces of information from you,"); Console.WriteLine(" in order to process your examination."); studentname = getPromptedInput(4, "What is your name (FirstLast, no spaces)? "); course = getPromptedInput(6, "What course are you taking (csc999, no spaces)? "); examination = getPromptedInput(8, "What examination are you taking (midterm or final)? "); Console.WriteLine(); Useful.enterContinue(); } // end constructor StudentInfo()