Question: write a practice engine to drill a student on log based 2 in Python or C++ Repeat until the student gets 5 correct answers in
write a practice engine to drill a student on log based 2 in Python or C++
Repeatuntil the student gets 5 correct answers in a row.
1. Display a log problem such as
log 16K =
or
log 64 =
The number is randomly picked from this list:
1
2
4
8
16
32
64
128
256
512
The number is followed by a letter randomly picked from this list:
none K M G T
2. The student enters the answer.
3. If the answer is correct, the program displays a message about the streak. For example log 16K =14 2 in a row CORRECT
3. If the answer is wrong, the program displays the correct answer and resets the streak counter. For example log 16K = 16000 The correct answer is 14 0 in a row CORRECT
4. When the streak counter hits 3, display a congratulations message and exit. For example
log 64 =6 5 in a row CORRECT Congrats, that is correct.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
