Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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%
image text in transcribed

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

1. Explain how technology has changed the learning environment.

Answered: 1 week ago