Advertisement
akosiraff

Conversion App VB 2010

Dec 2nd, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/conversion-app-vb-2010/
  3. Write a program to convert a U.S. Customary System length in miles, yards, feet, and inches to a Metric System length in kilometers, meters and centimeters. A sample run is shown in Fig. 3.21. After the numbers of miles, yards, feet and inches are read from the text boxes, the length should be converted entirely to inches and then divided by 39.37 to obtain the value in meters. The Int function should be used to break the total number of meters into a while number of kilometers and meters. The number of centimeters should be displayed to one decimal place. The needed formulas are as follows:
  4. total inches = (63360 *miles + 36*yards + 12*feet + inches
  5. total meters = total inches/39.37
  6. kilometers = Int(meters/1000)
  7.  
  8. Download: http://solutionzip.com/downloads/conversion-app-vb-2010/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement