Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 3 Create a class called Quiz that uses your Question class to create Quiz objects A Quiz can be composed of up to 25
Exercise 3 Create a class called Quiz that uses your Question class to create Quiz objects A Quiz can be composed of up to 25 questions and a score. The Quiz constructor should accept the number of questions on the quiz as a parameter and initialize an ArrayList accordingly. Create a way to keep track of the total number of quizzes ever created. Create a method called void add(Question q) that adds a new question to the quiz. What should happen if we try to add a 26h question to a quiz? Create only the necessary getters and setters. Create a method called void giveQuiz0 that presents each question, and its difficulty, in turn to the user, accepts an answer for each one, and keeps track of the results
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started