Public Jumlahbenar As Integer

You might also like

You are on page 1of 5

Public jumlahbenar As Integer

Sub start()

jumlahbenar = 0

ActivePresentation.SlideShowWindow.View.Next

End Sub

Sub benar()

jumlahbenar = jumlahbenar + 1

ActivePresentation.SlideShowWindow.View.Next

End Sub

Sub salah()

ActivePresentation.SlideShowWindow.View.Next

End Sub

Sub cekjawaban()

ActivePresentation.SlideShowWindow.View.Next

tamplikan

End Sub

Sub tampilkan()

With ActivePresentation.Slides(9)

.Shapes(1).TextFrame.TextRange.Text = jumlahbenar

.Shapes(2).TextFrame.TextRange.Text = 5 - jumlahbenar

.Shapes(3).TextFrame.TextRange.Text = 100 * (jumlahbenar / 5)

End With

End Sub
Dim nilai As Integer

dimkonfirmasi As String

Sub mulai()

nilai = 0

ActivePresentation.SlideShowWindow.View.Next

End Sub

Sub benar()

konfirmasi = MsgBox("Yakin dengan jawaban Anda ?", vbYesNo, "Cek Jawaban!")

If konfirmasi = vbYes Then

nilai = nilai + 20

ActivePresentation.SlideShowWindow.View.Next

End If

End Sub

Sub salah()

konfirmasi = MsgBox("Yakin dengan jawaban Anda ?", vbYesNo, "Cek Jawaban!")

If konfirmasi = vbYes Then

ActivePresentation.SlideShowWindow.View.Next

End If

End Sub

Sub jawab()

MsgBox ("Skor Anda adalah " & nilai)

End Sub
Sub hasilscore()

If jawabanbenar >= 3 Then

MsgBox " Hebat " & username & "," + " Jawaban Benar Anda : " & jawabanbenar & " Skor Anda : " &
jawabanbenar * 20, vbaplicationModal, "Test"

ActivePresentation.SlideShowWindow.View.Next

Else

MsgBox " You must study again " & username & "," + " Your Correct Answer : " & jawabanbenar & "
Your Score : " & jawabanbenar * 20, vbaplicationModal, "Test"

End If

End Sub

Sub benar()

confirmation = MsgBox("Yakin dengan jawaban Anda ?" + username, vbYesNo, "Cek Jawaban")

If confirmation = vbYesNo Then

jawabanbenar = jawabanbenar + 1

ActivePresentation.SlideShowWindow.View.Next

End If

End Sub

Sub salah()

confirmation = MsgBox("Yakin dengan jawaban Anda ?" + username, vbYesNo, "Cek Jawaban")

If confirmation = vbYesNo Then

jawabansalah = jawabansalah + 1

ActivePresentation.SlideShowWindow.View.Next

End If

End Sub
Dim nilai As Integer

Dim konfirmasi As String

Dim hitung As Integer

Dim hitungx As Integer

Dim kkm As Integer

Dim persen As String

Dim nama As String

Dim nis As String

Sub mulai()

nilai = 0

hitung = 0

kkm = 80

nama = InputBox("Enter Your Name")

nis = InputBox("Enter Your ID Number")

ActivePresentation.SlideShowWindow.View.Next

End Sub

Sub benar()

konfirmasi = MsgBox("Yakin dengan jawaban Anda ?" + username, vbYesNo, "Cek Jawaban")

If konfirmasi = vbYes Then

hitung = hitung + 1

ActivePresentation.SlideShowWindow.View.Next

End If

End Sub

Sub salah()

konfirmasi = MsgBox("Yakin dengan jawaban Anda ?" + username, vbYesNo, "Cek Jawaban")

If konfirmasi = vbYes Then

nilai = nilai + 1

hitung = hitung + 1
ActivePresentation.SlideShowWindow.View.Next

End If

End Sub

Sub jawab()

ActivePresentation.SlideShowWindow.View.Next

persen = (nilai * 100) / hitung

hitungx = hitung - nilai

tampilkan

End Sub

Sub tampilkan()

With ActivePresentation.Slides(9)

If persen >= kkm Then

.Shapes(1).TextFrame.TextRange.Text = "Congratulation You are Passed"

End Sub

You might also like