How to make a program which is to convert meter to a kilometer and vice versa...with their code..
There is a series of books, all titled "CRC Book of Tables" with different types of tables for physics, chemistry, mathematics, etc. At this link, there is one on DVD and it probably has the conversion tables for you to put on your PC.
http://www.routledge-ny.com/books/CRC-Handbook-of-Chemistry-and-Physics-CD-ROM-Version-2010-isbn9781439817551
It may be worth looking into, but it is not cheap. The DVD version is about $170.00, while some of the printed books are more than twice that cost. But that is a reflection of the completeness of their formulae.
I bought one in the late 60s for college and it is still relevant ... as mathematical formulae - basic formulae - do not change.
While I am not certain that you can put it into your PC using the DVD drive, and then use their formulae, it's a safe bet that your conversios are in there somewhere, given that the most esoteric formulae are already in the CRC Books. BTW, "CRC" stands for "Chemical Rubber Company" but I am not at all sure why.
Best of luck,
-a.
Why bother with a computer program to do this simple conversion of meters (m) to kilometers (km)? If you know the number of meters, simply move the decimal place over to the left three places. For example, 115 m = 0.115 km. This works b/c 1 meter = (1/1000) km. Also, you can convert the reverse situation of 0.115 km to meters by multiplying the number of km by 1000. Such as 0.115 km x 1000 = 115 m. [Maybe the above is not of interest to you because you are more interested in computer programming than conversion factors? :-)]
Tip: You can do almost any metric conversion if you know the SI (System International) definitions. Click here for more information:
https://www.google.com/#q=system+international+definition.
You can set up a conversion factor for any metric conversion if you know the SI definitions or "prefixes." For example, one prefix I have already used is the "k" in kilometer, km. The "k" is the metric prefix, and m is the standard metric unit for length, the meter. The k stands for "kilo" or the x1000 factor. This prefix in from of m means that you are multiplying the m by 1000. Another way to write km is like this:
1000 m or 10^3 m. That is, 1 km = 1000 m = 10^3 m. But it is so much easier to write km, since it is an internationally recognized way to abbreviate this quantity. It is how scientists of all kinds write their data that are suitable for publishing in professional journals.
What is really convenient about the SI method of recording data is that you can use the SI definitions to write your conversion factors!
For example, since 1 km = 1000 m, you can rewrite it as a ratio, like this:
(1 km / 1000 m) and use it in two ways, depending on what the conversion you want to do.
If you want to convert meters to km, you would multiply the meters by (1 km / 1000 m). Such as in 115 m x (1 km / 1000 m). That would be the same thing as [(115)(1) / 1000] km = (115 / 1000) km = 0.115 km. Notice that all units cancelled out except for the unit of the quantity you were trying to calculate.
On the other hand, if you wanted to convert km to meters (m), you would also multiply, but with the reversed ratio, x(1000 m / 1 km). For example, if you had 0.115 km, you would write your calculation like this: 0.115 km x (1000 m / 1 km) = 0.115 km x (1000 m / 1 km) = [(0.115)(1000) / 1] m = 115 m.
To check your understanding of this method, convert 115 centimeters to meters (m), knowing the conversion factor, 1 m = 100 cm. (Answer: 1.15 m) And convert 0.00158 m to centimeters (cm). (Answer: 0.158 cm.)
286 views
Usually answered in minutes!
×