langkah dasar pensekoran.rtf

Download langkah DASAR PENSEKORAN.rtf

If you can't read please download the document

Upload: eka-septiana

Post on 24-Sep-2015

220 views

Category:

Documents


0 download

TRANSCRIPT

Ikuti langkah-langkah berikut :1) Buatlah 12 slide soal pilihan ganda. Sebanyak 10 slide untuk soal (satu slide hanya memuat satu soal), 1 slide untuk pembuka dan satu slide untuk display skor.2) Membuat code macro.Pada menu, klik view=>macros. Pada macro name tuliskan right =>enter, akan keluar visual basic editor.3) Ganti semua code yang ada di visual basic editor kemudian ganti dengan code di bawah ini (dikopas/copy paste).Public NumberCorrect As IntegerPublic variables retain their value so they can be added to each time a macro is run.Sub Initialise()Sets the score to zero so its not added to the previous users total, and goes to the first question.NumberCorrect = 0ActivePresentation.SlideShowWindow.View.NextEnd SubSub Correct()Adds one to the total correct and moves to the next slideNumberCorrect = NumberCorrect + 1ActivePresentation.SlideShowWindow.View.NextEnd SubSub Display()Shows the result in a pop-up message box with some explanatory textMsgBox (Selamat, kamu & mendapatkan skor & NumberCorrect)End SubSehingga akan tampak seperti pada gambar di bawah ini.