UTS Fakhri Saputra
Revision as of 08:38, 28 October 2019 by Muhammad Fakhri Saputra (talk | contribs) (Created page with "3. B import math cd = eval(input("koefisien hambatan: ")) ug = eval(input("koefisien gesek roda: ")) m = eval(input("massa mobil: ")) v = eval(input("vmax: ")) ac = eval(inp...")
3. B
import math
cd = eval(input("koefisien hambatan: ")) ug = eval(input("koefisien gesek roda: ")) m = eval(input("massa mobil: ")) v = eval(input("vmax: ")) ac = eval(input("percepatan mobil: "))
def force(v):
return cd * v * math.sqrt(v) + ug * m
t = v / (ac - (force(v) / m))
print(f'waktu yang dibutuhkan untuk mencapai kecepatan {v} adalah {t}')