Difference between revisions of "UTS"

From ccitonlinewiki
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Algoritma  
 
Algoritma  
  
Untuk soal A
+
*[[Soal A UTS ]]
  
from math import*
+
*[[Soal B UTS]]
  
g = 9.8
+
Muhasabah
  
m1 = int(input("Massa benda 1(kg): "))
+
*[[Video Muhasabah UTS]]
 
 
m2 = int(input("Massa benda 2(kg): "))
 
 
 
m3 = int(input("Massa benda 3(kg): "))
 
 
 
KoefG1 = eval(input("Koefisien gesek1: "))
 
 
 
KoefG2 = eval(input("Koefisien gesek2: "))
 
 
 
KoefG3 = eval(input("Koefisien gesek3: "))
 
 
 
alpa = eval(input("sudut alpa: "))
 
 
 
a = eval(input("percepatan: "))
 
 
 
q = sin (alpa)
 
 
 
w = cos (alpa)
 
 
 
t1 = m1*g*(q-KoefG1*w) - m1*a
 
 
 
t2 = m2*g*(q-KoefG2*w) + t1 - m2*a
 
 
 
t3 = m3*g*(q-KoefG3*w) + t2 - m3*a
 
 
 
print("tegangan tali 1: ",t1)
 
 
 
print("tegangan tali 2: ",t2)
 
 
 
print("tegangan tali 3: ",t3)
 
 
 
print("total tegangan tali : ",t1+t2+t3)
 
 
 
[[File:[[File:N1UTS.png]]]]
 
 
 
[[File:bandicam 2019-10-29 18-46-25-872.mp4]]
 
 
 
Untuk soal B
 
 
 
from math import *
 
 
 
from sympy import *
 
 
 
ro = 1.2
 
 
 
g  = 9.8
 
 
 
cd = eval(input("drag coefficient: "))
 
 
 
area = eval(input("luas area(m^2): "))
 
 
 
m = eval(input("massa mobil(kg): "))
 
 
 
vt = eval(input("kecepatan akhir(m/s): "))
 
 
 
a = eval(input("percepatan(m/s^2): "))
 
 
 
koefg = eval(input("koef gesek: "))
 
 
 
fgesek = g*koefg
 
 
 
fmobil = a
 
 
 
for vo in range (0,vt):
 
 
 
  fdrag = (cd*area*ro*vo**2)/2*m
 
 
 
atotal = (fmobil - (fdrag+fgesek))
 
 
 
t = - vt/atotal
 
 
 
print("waktu untuk mencapaii topspeed(s): ", t)
 
 
 
print("percepatan total(m/s^2): ", atotal)
 
 
 
[[File:N2UTS.png]]
 
 
 
[[File:bandicam 2019-10-29 20-39-11-028.mp4]]
 

Latest revision as of 21:05, 29 October 2019