i have to intup the time periods(12 55; 18 00 etc) and distance from the console for a few journeys and then i have to output the journey with the greatest speed, how do i calculate the speed, is there a function for it?
i know how to calculate the speed, thanks. i mean if my time of journey looks like "505", how do i correctly calculate the speed without errors?
here's a part of my code that calculates the difference between two time periods i intup
505 is 5 hours and 5 minutes time difference. i've already found a way to calculate the difference between two time periods, but am stuck on the spead. but i'm gessing i need to find speed in km/minute first and then *60, right?