home *** CD-ROM | disk | FTP | other *** search
- Feet/Inches to Meters Converter
- by Daniel J. Bishop (danb2k@hotmail.com)
- 2000-10-09
-
- This is a simple program to convert feet/inch measurements to meters.
-
- Sample run:
- FEET
- ?5 // user input: 5 feet
- INCHES
- ?10 // user input: 10 inches
- 1.778 // so 5'10" is 1.778 m
- METERS
- Done
-
- The code:
- (Note: -> represents the STO key. Do not type in the lines preceded by //: they're just comments.
-
- Prgm_:FTIN2M
- :Disp "FEET"
- :Input F
- :Disp "INCHES"
- :Input I
- :.0254(12F+I -> M
- // 1 ft=12 in and 1 in=0.0254 m
- :Disp M
- :Disp " METERS"
- // 10 spaces: not essential but makes output nicer