It''s often necessary to convert between units


Assignment 
It's often necessary to convert between units. In this exercise, you will create two functions for converting between units of distance. The first function will be called ConvertMilesToKilometers(), which will accept one parameter for the number of miles. It will return the equivalent number of kilometers. The second function will be called ConvertKilometersToMiles() and will accept kilometers as its parameter; this will return the equivalent number of miles.
The main method will ask the user if he or she wants to convert miles to kilometers or kilometers to miles. It will then ask for the number of miles or kilometers. It will call the appropriate method and display the converted value.
To convert miles to kilometers, divide miles by 0.62137. To convert kilometers to miles, multiply kilometers by 0.62137.
Example
Do you want to convert to Miles or Kilometers? (M or K): K
Enter number of Kilometers: 3.5
3.5 kilometers equals 2.174795 miles.
Be sure to call the correct function. Be sure to save the return value in an appropriate variable.
Be sure to think about the logic and design first (IPO chart and/or pseudocode), then code the Visual Basic program

Required minimum 2 page

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: It''s often necessary to convert between units
Reference No:- TGS086668

Expected delivery within 24 Hours