Nim : J1A217022
Kelas : TIP R1
Tugas : pemograman komputer
ALGORITMA
Private Sub command _click( )
Dim Nim As String
Dim Nama As String
Dim Tugas As Double
Dim UTS As Double
Dim UAS As Double
Dim Huruf As String
Dim Nilai As double
NIM = Text1.Text
Nama = Text2.Text
Tugas = Text3.text
UTS = Text4.text
UAS = Text5.text
Angka = Text6.text
Nilai = ( 10% *Tugas + 10%*Kuis + 30%*Praktek + 20%*UTS + 30%*UAS)
Text6.text = Nilai
Huruf = Text7.text
If nilai = >80 <= 100 then
Huruf = “A”
Else if nilai => 75 <= 80 then
Huruf = “B+”
Else if nilai => 70 <= 75 then
Huruf = “B”
Else if nilai => 65 <= 70 then
Huruf = “C+”
Else if nilai => 60 <= 65 then
Huruf =”C”
Else if nilai => 55 <= 60 then
Huruf = “D+”
Else if nilai => 50 <= 55 then
Huruf =”D”
Else if nilai => 0 <= 50 then
Huruf =”E”
End if
End sub
DIAGRAM ALIR
Jumlah nilai =
( 10%*tugas) + (10%*kuis) +
(30%*praktek) + (20%*UTS) +
(30%*UAS)
Print nama,jumlah nilai, nilai C
Selesai
PSEUDOCODE