CodeSolved

Solved Programming Questions & Exercises

Calculate speed

Practice Easy 840/ Download 933 Views

Write a program that takes the distance and the time to print speed in the output

Speed = to move / time

16 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
distance = float(input("مسافت (متر) را وارد کنید: "))
time = float(input("زمان (ثانیه) را وارد کنید: "))
speed = distance / time
print(f"سرعت: {speed} متر بر ثانیه")
Ai Download Python
a = int(input("number1:"))
s= int(input("number2:"))
print(a/s)
Hosien Download Python
x = int(input('lotfan masafat ra be metr vared konid')) # Distance traveled to meter
y = int(input('lotfan zaman ra be sanie vared konid')) # Distance traveled to seconds
s = (x/y) # Formula Calculate speed
print (s)
x = int(input("x: "))
time = int(input("time: "))
v = x / time
print("v: " , v)
User 5396 Download Python
t = int(input('time: '))
d = int(input('displacement: '))
v = t / d
print(f'velocity: {v}')
Roham Download Python
def ss():
    while True:
        jabejaee = int(input("entre your number jabejaee:"))
        if  jabejaee <= 0:
            break
        s = int(input("entre your number s:"))
        if s <= 0:
            break
        sorat = jabejaee / s  # The speed is equal to the displacement divided by time
        print(f"sorat: {sorat}")
ss()
Sumy.amiri Download Python

I got the same number for this. Sumy.amiri


a=float(input("enter the masafat:"))
b=float(input("enter the sorat:"))
result=a/b
print(result)
Roghaye.m Download Python
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

×
×
Close