Utkarsh
2012-08-23 07:15:06 UTC
the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions. Finally, a message should display whether the student passed or failed the exam based on:
The student must answer 15 out of 20 questions correctly.
This is my code so far:
private void button1_Click(object sender, EventArgs e)
{
//Array holding answers to test
string[] testAnswer = new string[20] { "1. B", "2. D", "3. A", "4. A", "5. C", "6. A", "7. B", "8. A", "9. C", "10. D", "11. B", "12. C", "13. D", "14. A", "15. D", "16. C", "17. C", "18. B", "19. D", "20. A" };
//Reads text file line by line and stores it in array
string[] inputAnswer = System.IO.File.ReadAllLines(@"C:\Users\Momo\Desktop\UNI\Software tech\test.txt");
}
Help would be awesome! :D