long a condition 1.3 3atl3rled if wrong answer 2 $condition if the total number
ID: 3802162 • Letter: L
Question
long a condition 1.3 3atl3rled if wrong answer 2 $condition if the total number of answers is greater than one. Scoret mytotal score correct2 answer, correct answer, correctl answer disp you lose &displays; this message if the condition is satisfied return function to stop the whole game if the condition is satisfied end choice menu ('What was the first electronic computer called? pple ENIAC ACORN Computer if choice 1 a: correct answer Correct answer-1; disp Your answer is correct 3displays this message if the condition is satisfied. break tbreaks the loop if condition is satisfied previously end Wrong answer E wrong answer counter Wrong answer disp ('Your answer is incorrect &displays; this message if the condition is satisfied endExplanation / Answer
Let's say you have 4 questions in total, what you can do is:
questionChoice = (rand() * 3) + 1
if questionChoice == 1;
choice1 = menu('What is the square root of 225?', '25', '15', '30');
..... .... .. ..
end
if questionChoice == 2;
choice2 = menu(.... .... ....)
.....
end
if questionChoice == 3;
.....
end
if questionChoice == 4;
....
end
I hope you understood what I'm trying to convey.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.