Flash Card Demo
Objectives:
- Program to interfaces and allow different styles of flash cards
- Read in and store a collection of flash cards.
- Enumerate through a collection of flash cards.
- Develop a Windows Forms application to present the flash cards.
Background
For this assignment, you are to develop a simple application that reads in (question/answer) pairs from an XML file, display the the questions (or answers) and prompt for the user for an answer. Keep a score for each flash card on the percentage that the user got correct. Can you determine an iteration scheme to favor those missed? Your answer selection can be mulitple choice or typed in. If typed in, you should have a list of possible correct answers and either have several possible answers with different capitalization or use a comparer that ignores case.
Tasks
- Read in a XML file using the XmlReader and XmlDocument classes (Chapter 11). Each flash card should be read in using an XMLDocument, the overall file should be processed using a xml elements.
- Develop an interface, IFlashCard, for your application.
- Develop at least two concrete implementation for the IFlashCard interface. One may only have text. The other may also contain graphics or sounds, hints, and/or different ways to present the flashcard.
- Create your own custom collection class to hold the flash cards using only the IFlashCard interface.
- Provide a user interface to control the flash cards, loading in a set, closing the application, restarting and providing statistics on the users progress.