Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

exercise 3 Exercise 3 Create a class called Quiz that uses your Question class to create Quiz objects A Quiz can be composed of up

image text in transcribed

exercise 3

Exercise 3 Create a class called Quiz that uses your Question class to create Quiz objects A Quiz can be composed of up to 10 questions and a score. The Quiz constructor should initialize an AmayList and the score 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 an 11 question to a quiz? Create only the necessary getters and setters Create a method called void giveQuiz) that presents each question, and its difficulty, in turn to the user, accepts an answer for each one, and keep track of the results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

2. Explain how you would go about validating a test.

Answered: 1 week ago

Question

Discuss the states of accounting

Answered: 1 week ago