C# Function/Class for Unit Conversion
$30-100 USD
Paid on delivery
I need a simple/elegant function that will convert a real number from one type of units to another. For example from feet to inches or from KiloWatts to HorsePower.
I envision the function and call will look something like:
double Convert( double value, fromUnit, toUnit);
newtemp = Convert( 72, [url removed, login to view], [url removed, login to view]);
where fromUnit and toUnit would be defined from the list of 40 in the attached spreadsheet file.
If the Convert function is called with miss matched unit types, for example [url removed, login to view] to [url removed, login to view], a compile time error (if possible) would occur. If not possible to receive a compile time error than a runtime error would be thrown.
I would also like it structured so that it is easy to add addition units to the conversion. For example by adding rows to an array in the code. This function will be called often and changed infrequently.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) Class can be compiled withou warnings or errors.
b) Class runs as described in MS Visual Studio 2003 and 2005.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
C#
Visual Studio 2003
Project ID: #3095102