Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CLion: * Make sure to add your own code and comment thoroughly. #include #include using namespace atd; Here begins the code for the base class

CLion:

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
* Make sure to add your own code and comment thoroughly. #include #include using namespace atd; Here begins the code for the base class Question. * Do not change the following part! class Question{ public: * Constructs a question with empty text and answer. Question () ; @param question text the text of this question * / void set_text (string question_text) ; * @param correct_response the answer for this question * / void set_answer (string correct_response) ; * Oparam response the response to check * Greturn true if the response was correct, false otherwise bool check_answer (string response) const; * Displays the question. void display () const; private: string text; string answer; Question: : Question () { Question: :set_text ( "Question is empty!") ; Question: : set_answer ("") ;void Question: : set_text (string question_text) { text = question_text; void Question: : set_answer (string correct_response) { answer = correct_response; bool Question: : check_answer (string response) const { bool result = (response == answer) ; return result; void Question: :display () const cout

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_2

Step: 3

blur-text-image_3

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

Unity From Zero To Proficiency Beginner A Step By Step Guide To Coding Your First Game

Authors: Patrick Felicia

1st Edition

1091872023, 978-1091872028

More Books

Students also viewed these Programming questions