289636 Multiple choice java program
N/A
货到付款
Mini-project 2: A multiple choice exam for Java programming
Write a program that provides a multiple-choice question exam for the Java programming language. The
number of questions should be substantial (>50) and should cover all aspects studied in the 1st year Java
courses (>30 should be on the topics covered in Object Oriented Programming).
Level 1
Includes screen output and keyboard input and basic classes.
There are Java source files for at least three major classes of the program.
Good source comments and code indentation is expected for all implemented parts of the program.
Example: The program reads the questions and answers and prints them.
Level 2 –
Includes methods and variables for at least three major classes, and all constructions above.
At least 3 major methods fully implemented and working for each class
Example: As above, but also questions are displayed on the screen, and answers are classified as correct or
wrong.
Level 3 –
At least three major program classes will be implemented, with methods working and well designed, and
all constructions above
Use of inheritance with at least one superclass and three subclasses
Class, method and variable naming will be clear and consistent
Example: As above, but also questions and answers are defined using inheritance, e.g. questions can be easy
(e.g. two alternatives), medium (e.g. 4 alternatives), difficult… or open (several alternatives + the option for
the user to enter another possible answer)
Level 4
Polymorphism should be used in at least three subclasses, and all constructions above
Exception handling is used to catch and handle at least three different types of exceptions
At least four major program classes will be implemented, with methods working and well designed,
Comments are clear and applied to class and method level consistently
Example: As above, plus the behaviour of the system with respect to the user input is handled using
polymorphism.
Level 5
Use of Vectors in all parts of the program, and all constructions above.
Exception handling is carried out appropriately in all parts of the program.
Inheritance is correctly applied to all parts of the program.
Example: As above, but questions and answers are now stored into vectors, and once the user has submitted
an answer this cannot be changed. A GUI will also be included: questions and answers are shown on a
window, answers provided by clicking buttons or using text areas for open questions.
Level 6
Includes file input and/or output, and all constructions above
The systems will be displayed on a fully working GUI (including opening and saving files).
Example: As above, plus at the end of the exam an analysis is provided (e.g. “answer x was wrong; correct
answer was y because z”). It should be possible to save the user session into a file, and read questions and
answers from a file.
项目ID: #2035937