DISUSUN OLEH:
Kelas : TI 11
TEKNIK INFORMATIKA
FAKULTAS ILMU KOMPUTER
UNIVERSITAS LANCANG KUNING
T.A 2021/2022
Modul 4
A. Persamaan y = a2 + b2 * c2
import math
a = int(input("Masukan Nilai a = "))
b = int(input("Masukan Nilai b = "))
c = int(input("Masukan Nilai c = "))
y = math.pow(a, 2) + math.pow(b,2) * math.pow(c,2)
print ("y = ",y)
B. KODING :
A. LUAS SEGITIGA
print("Luas = ", l)
L=p*l
print("Luas = ", L)
D. LUAS TRAPESIUM
l = (a + b) * t / 2
print("Luas = ", l)
√
C. x =
import math
D = math.pow(b, 2) - 4 * a * c
x = (b + math.sqrt(D)) / (2 * a)
Modul 5
√
A. x =
import math
D = math.pow(b, 2) - 4 * a * c
x = (b + math.sqrt(D)) / (2 * a)
B. p =
import math
sin = math.sin(math.radians(a))
cos = math.cos(math.radians(b))
print("p = ", p)
Modul 6
A. Jenis bilangan Genap dan Ganjil yang diinputkan
if (a % 2 == 0) :
b = "Genap"
else :
b = "Ganjil"
if (a == "ti") :
b = "Teknik Informatika"
elif (a == "si") :
b = "Sistem Informasi"
else :
if (a > b) :
elif (a < b) :
else :