Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Math Help How many seconds from my turn am I
Message
De
23/02/2013 07:48:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/02/2013 11:56:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01566768
Message ID:
01566807
Vues:
97
>Any math experts that can validate this (Just like the old school questions)?
>
>A mile has 5,280 feet, and an hour has 3,600 seconds, so 60 miles per hour is:
>60 x 5,280 / 3,600 = 88 fps
>(60 mph = 88 fps )
>
>How to determine how many seconds from your destination you are (example driving in a car and you are 1500' from your next turn):
>
>1. Determine distance to travel (1500 feet)
>2. Determine speed
>3. Determine feet per second
>4. Determine how many seconds from the destination you are
>
>Let’s say you are 1500 feet from your turn and you are going 30 mph. You want to be notified 7 seconds from the turn.
> 30 x 5280 / 3600 = 44 feet per second
> 1500 feet / 44 feet per second = you are 34.090909 seconds from the turn
>
>I can process this every second until I am 7 seconds out. Is that the best method (assuming you could speed up or slow down it would need to be checked/computed every second)
>
>Looks right to me, but can anyone verify that is accurate?

That looks correct. The basic formula is:

distance = speed x time

Solving for time:

time = distance / speed

And, of course, you have to convert to the appropriate units, as you are already doing.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform