项目作者: nsiddiqui25

项目描述 :
vb.net variables, input, and output
高级语言: Visual Basic .NET
项目地址: git://github.com/nsiddiqui25/VB.NET-Length-Conversion.git
创建时间: 2020-02-24T19:44:20Z
项目社区:https://github.com/nsiddiqui25/VB.NET-Length-Conversion

开源协议:

下载


VB.NET-Length-Calculator

vb.net variables, input, and output

  • A program to convert U.S. Customary System length in miles, feet, and inches to a Metric System length in kilometers, meters, and centimeters

  • After the number of miles, yards, feet, and inches are read from the text-boxes, the length is converted entirely to inches, and then divided by 39.37 to obtain the value in meters. The Int function is used to break the total number of meters into a whole number of kilometers and meters. The number of centimeters is displayed to one decimal place.

Formulas

  1. - total inches = 63360 * miles + 36 * yards + 12 * feet + inches
  2. - total meters = total inches / 39.37
  3. - kilometers = Int(meters/1000)
  • Input
    • Miles - txtMiles
    • Yards - txtYards
    • Feet - txtFeet
    • Inches - txtInches
  • Output
    • ListBox = lstMetric
  • Events
    • Convert To Metric - btnConvert