You are on page 1of 1

Jawab :

Var

Na, uts, uas, tugas, kehadiran: Real begin

Input (uts, uas, tugas, kehadiran)

Na((uts*0.30) + (uas*0.40) + (tugas*0.2) + (pratikum*0.1))

Output(na)

If (na>=80) then

Output(‘A’)

Else if (na>=70) and (na<80) then

Output (‘B’)

Else if (na>=60) and (na<70) then

Output (‘C’)

Else if (na>=50) and (na<60) then

Else

Output (‘E’)

You might also like