After the user answers the question just put the actual


Create a class called Simple Question and Answer that contains instance data for a simple mathematical question (i.e. What is 5*4?) and for the answer (i.e. 20).Create a constructor that initializes the data.Create a method that returns the question. Create a method that returns that answer. In the driver, you should ask the user if they want to play a simple game and then have them answer at least 5 questions.(you do not need a loop for this) You will create questions with randomized numbers being passed into the constructor. After the user answers the question, just put the actual answer down below the one entered. You do not need to check if they were correct.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: After the user answers the question just put the actual
Reference No:- TGS0667844

Now Priced at $30 (50% Discount)

Recommended (92%)

Rated (4.4/5)