Help making a program !
Mostra commenti meno recenti
Write a program which helps a pupil to learn 9×9 multiplication table. The program imposes random questions, for instance, “5 * 3 = ”, “2 * 6 = ”, “3 * 8 = ” etc. and the user should enter an answer. If the answer is not correct the program should display an error message and provide a right answer. The program has 5 different levels of difficulties which correspond to a number of seconds the use has to enter an answer. If the user does not manage to answer within the limited time, the program generates an error message.
-This is to make the table :
N = randi(12)
for i = 0:length(N);
fi(i)=9*N(i);
end
% With out loop
N = 1:10 ;
fi = 9*N ;
-The diffrent messages:
msgbox('Right answer')
errodlg('Right answer is.....',Error')
I have problem to make random Q, make pepole write the answer and get if that rigt or wrong and make the program 5 diffrent level.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!