posted
i need a source code how to make a quiz. the quiz will have 10 qustion. and i also hope u can give the source code how to calculate the the quiz marks and display gred.Posts:
1 | From:
malaysia | Registered: 03-13-06
posted
hey Salha ok to have a quiz what you have to do is:
press ctrl+shift+U
type: global quizCorect, quizIncorecr -- this sets the variables for your quiz
on startMovie -- do 1 time when director loads quizCorect=0 -- set the variable to 0 quizIncorecr=0-- set the variable to 0 end
on your frame script you are going to write:
on exitFrame me -- do all the time go to the frame -- stay were you are end
on the corect button you are going to write
global quizCorect on mouuseDown me -- the mouse is down
quizCorect=quizCorect+1 -- and 1 the your corect anser go to the frame +1 -- takes you to the next frame end
on the incorect button you are going to type
global quizIncorecr on mouuseDown me -- the mouse is down
quizCorect=quizIncorecr +1 -- and 1 the your incorect anser go to the frame +1 -- takes you to the next frame end
now to finish on frame 11 we are going to put a empty text field names "pass_faild"
on frame 11 frame you are going to write:
global quizCorect, quizIncorecr on exitFrame me if quizCorect >=quizIncorecr then put "you pass" into field "pass_faild" else put "you did not pass" into field "pass_faild" end if go to the frame end
and that is how you do itPosts:
1 | From:
Ft lauderdale | Registered: 03-15-06
posted
i also need a source code to make a quiz using java programming language. It consist of 8 questions.the user need to answer all questions.hen, a suitable color would appear based on the score the got.plis help me since i am new in this forum... i dun no how to ask question on this site..Posts:
2 | Registered: 10-20-09