home *** CD-ROM | disk | FTP | other *** search
/ ticalc.org / ticalc_org_rev_b.iso / archives / 81 / basic / math / ftin2m.81 < prev    next >
Encoding:
Text File  |  2001-07-01  |  671 b   |  28 lines

  1. Feet/Inches to Meters Converter
  2. by Daniel J. Bishop (danb2k@hotmail.com)
  3. 2000-10-09
  4.  
  5. This is a simple program to convert feet/inch measurements to meters.
  6.  
  7. Sample run:
  8. FEET
  9. ?5                 // user input: 5 feet
  10. INCHES
  11. ?10                // user input: 10 inches
  12.            1.778   // so 5'10" is 1.778 m
  13.           METERS
  14.             Done
  15.  
  16. The code:
  17. (Note: -> represents the STO key.  Do not type in the lines preceded by //: they're just comments.
  18.  
  19. Prgm_:FTIN2M
  20. :Disp "FEET"
  21. :Input F
  22. :Disp "INCHES"
  23. :Input I
  24. :.0254(12F+I -> M
  25. // 1 ft=12 in and 1 in=0.0254 m
  26. :Disp M
  27. :Disp "          METERS"
  28. // 10 spaces: not essential but makes output nicer