UTS Fakhri Saputra

From ccitonlinewiki
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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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}')