Question: C + + 4 Task D Read a csv file containing arithmetic expressions and their corresponding answers, randomly display the questions and answer them, stop

C++4 Task D
Read a csv file containing arithmetic expressions and their corresponding answers, randomly display the
questions and answer them, stop if a correct rate of 60% or higher is reached. Report the correct rate.
Here is a sample run:
(1) what is 1+42?3
true
(2) what is 3+2%2?3
true
(3) what ia 1+3%2?2
true
(4) what ia 1.02**3?1.5
true
(5) what is (3+2)%2?1
true
(6) what ia 12.0**3?1.5
true
At least 60% ia correct. Stop.
Here is another sample run:
(1) what ia 1+42?1
false
(2) what is 3+2%2?
false
(3) what is 1+3z2?
true
(4) what is 1.02**3?1.5
true
(5) what is (3+2)x2?1
true
(6) what is 12.0**3?1.5
true
(7) what is 1+4%2?0
false
(8) what is 12**3?0
true
(9) what is 12**3.0?1.5
false
percentage correct: 55.5556%
 C++4 Task D Read a csv file containing arithmetic expressions and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!