subject

The point of this project is to create a quiz system. Create a class called Quiz. This class manages up to 25 Question objects (create at least 10). Attached below is the Question interface, which your questions must implement. Define two methods in Quiz: public void addQuestion(Question q) - This accepts a question object and adds it to it's list of questions public double giveQuiz() - This presents each question, one by one, to the user and asks for their answer. After each answer, it checks if the answer is correct and keeps track of the results. Finally, it returns the score the user got. Create at least 3 classes that implement Question. You have some freedom in choosing the exact types, but I suggest: MultipleChoiceQuestion TrueFalseQuestion ShortAnswerQuestion Again, each question class MUST implement the Question interface. Implement these methods appropriately for the question type. DO NOT MODIFY THE QUESTION INTERFACE IN ANY WAY. Create a new class called QuizTime, which only has a main() method. In this method, create all of your Question objects and a single Quiz object. Add all of your questions to the quiz, then call giveQuiz() and print out the results to the user. Follow ALL of our rules of encapsulation and proper project design For extra credit, after the quiz is over go through each of the wrongly answered questions and printout the question followed by the correct answer.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
You know the right answer?
The point of this project is to create a quiz system. Create a class called Quiz. This class manages...
Questions
question
Mathematics, 09.07.2019 09:30
question
Advanced Placement (AP), 09.07.2019 09:30