How do I create a GUI for adminstering a 10 question, 4-alternative multiple choice test? (Addition, Subtraction, and Multiplication)
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I need to create a GUI that uses the digits 1 through 9 to randomly generate math questions (using addition, subtraction, or multiplication for each question) and alternatives (while randomly shuffling the alternatives for each question). I also need to keep track of the user's performance so that it can be saved as a variable at the end of the exam. The GUI should include a figure window, static text box for the question, radio buttons for the alternatives, a push button that moves to the next question, and a static text box showing how many questions are remaining.
Attached is what I have so far. I am new to creating GUI's so what I am struggling with is creating the missing code that will enable this to work like it is supposed to.
1 Kommentar
Walter Roberson
am 28 Nov. 2016
Your code cannot work unless you replace the
if True
with a function header. If you do that, then you would be able to use nested functions and shared variables such as nAlternatives .
Antworten (1)
Siehe auch
Kategorien
Mehr zu MuPAD finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!