07/10/2024
ĐÃ CÓ ĐỀ BÀI MÔN COMP1551.
💁Coursework Specification:
Part 1
Develop text-based quiz game on the topic of Geography. Implement the game as a C #, Windows-based, Console application. The game is expected to include three types of questions:
1. Multiple choice questions. In this case, four possible answers are provided for the
user to choose from. Only one of the four possible answers is correct.
2. Open-ended questions. In this case, the user is expected to enter the answer. The
answer is expected to have one to four words. Some correct answers can be expressed differently, for example United Kingdom and UK. Allow the program to accept correct answers which are phrased differently.
3. True or false questions. In this case, a statement will be displayed, which the user
will indicate as correct (true) or incorrect (false).
Mode 1: Create a game
In this mode, the user will be able to add questions and their corresponding answers. The game is expected to be able to store variable number of questions. The questions are expected to be organised as objects and stored in data structures, which maintain variable number of elements.
Since the game is not expected to store questions in a file or database, every restart of the game will clear all previously entered data. Additionally, the user is expected to be able to delete and edit selected questions without restarting the game.
Mode 2: Play
In this mode, the user will answer the questions. After answering the last question, the game is expected to display the result (score) of the game as number of correctly answered questions.
Also, the game is expected to display the time, in minutes, which was spent on answering all questions. Additionally, if requested, the game is expected to display the correct answers to all questions. The game is expected to provide a choice to the user either to start again from the beginning, or to exit the program.
Organise each question and its corresponding answer in a separate object. Utilise the
object-oriented principles of encapsulation, abstraction and inheritance. Store all objects in linear data structures, which maintain variable number of elements.
💁 LIÊN HỆ NGAY ĐỂ ĐƯỢC HỖ TRỢ VỚI MỨC PHÍ ƯU ĐÃI.