0
Please tell me how to solve this problem with step by step.
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.
4 Antworten
+ 2
speed = distance / time
time = distance / speed
distance and speed are given
+ 2
It depends on the language you want to write this code in. you can make 2 inputs one of them for distance and the second one for speed (this means you can calculate time for travelling anywhere by just giving the speed and distance to this program). Then all you need is printing the formula.
If you want to solve just this one and you dont want to solve all this kanda calculations, you just need to print the numbers on formula (the last line with number).
+ 1
For that you need learn atleast the basics of the language you are interested in.. Lessons will teach you with example, how to write codes.. See example, and use "try yourself " In lessons..
Seems you started python, keep it going.. It's just a line of code in python of printing the calculation result for this... Keep learning, and try yourself first. share your attempt if not work. ...
0
A͢J ("sir or madam I know that formula but how to write code there?")