Program Requirements/algorithm:
1. Create a MainMenu form. On this form implement the following functionality: a) Put a button titled Open Answers File. When this button is clicked; open Answer.txt, and readand store the answers in an array of Strings. Close this file.
b) Put another button titled Open Student Responses File. When this button is clicked, do the following: i. Open StudentResponses.txt file. ii. Read the number of students who sat the exam value and store it a variable. iii. Then use a loop to read the student’s responses to the questions. This loop runs up to the number of students who sat the exam value read in
i). For each line read, split the record into ID# and responses and store in ID and Responses array or into an Exam Structure array that has an ID and responses field.
Comments
Leave a comment