Join Kevin Skoglund for an in-depth discussion in this video Introducing speed measures, part of Easy PHP Projects: Measurement Conversion.
- We've learned how to perform conversions…on length, area, volume, and mass.…So far, these have all followed a pretty similar pattern.…The next conversion we're going to learn about is speed,…and it has a small wrinkle to the pattern that…we've been working with so far.…Speed is the measurement of the distance…that an object travels over a given period of time.…That has two components: distance, and time.…We can express that as an equation,…as speed equals distance over time,…or distance divided by time.…
The speed measurements that we typically use in the…imperial system are: feet per second and miles per hour.…In the metric system we have: meters per second…and kilometers, or kilometers, per hour.…If you're driving a boat on the ocean,…then you might also use knot which is…equal to one nautical mile per hour.…Now, we typically use feet per second,…because feet is a small distance and…second is a small amount of time.…Same with meters per second.…Whereas we have miles per hour and…kilometers per hour because those are…
Along the way, series designer Kevin Skoglund introduces coding strategies, refactoring techniques, and useful skills including dynamically generating form select-option values and formatting decimal numbers and scientific notation.
- Converting length and area measurements
- Using functions to avoid repetition
- Refactoring to produce simpler code
- Converting volume and mass
- Generating form select-option values dynamically
- Formatting scientific notation
- Converting speed and temperature
Skill Level Beginner
PHP: Accessing Databases with PDO and MySQLiwith David Powers3h 47m Intermediate
1. Length and Distance
3. Volume and Capacity
4. Mass and Weight
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.