please help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

please help me

You need to calculate the flight time of an upcoming trip. You are flying from LA to Sydney, covering a distance of 7425 miles, the plane flies at an average speed of 550 miles an hour. Calculate and output the total flight time in hours. Hint The result should be a float.

8th Aug 2022, 9:56 AM
Tawanda Kujinga
2 Answers
0
Just divide 550 into 7425 and because you used a division it results as a float type.
8th Aug 2022, 10:23 AM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar
+ 3
In physics we use the following law: d = vt Where d is the distance, v the velocity and t the time needed to covert the distance. You can isolate t: t = d/v. That will be the time needed.
8th Aug 2022, 10:51 AM
Bonsai
Bonsai - avatar