C# Function/Class for Unit Conversion

Completed Posted Nov 15, 2005 Paid on delivery
Completed 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

C# Programming Engineering MySQL PHP Software Architecture Software Testing

Project ID: #3095102

About the project

30 proposals Remote project Active Nov 20, 2005

Awarded to:

thest

See private message.

$7 USD in 5 days
(7 Reviews)
3.2

30 freelancers are bidding on average $30 for this job

atixvw

See private message.

$42.5 USD in 5 days
(232 Reviews)
8.5
ignexus

See private message.

$68 USD in 5 days
(104 Reviews)
6.3
zubairuddin

See private message.

$68 USD in 5 days
(62 Reviews)
6.3
AVSCoders

See private message.

$21.25 USD in 5 days
(154 Reviews)
6.2
bogdanstan

See private message.

$41.65 USD in 5 days
(195 Reviews)
5.7
alphabetagammavw

See private message.

$4.25 USD in 5 days
(43 Reviews)
5.7
SUog

See private message.

$42.5 USD in 5 days
(101 Reviews)
5.6
premrishi

See private message.

$42.5 USD in 5 days
(61 Reviews)
5.7
ddumitrascu

See private message.

$25.5 USD in 5 days
(120 Reviews)
5.5
akyinc

See private message.

$17 USD in 5 days
(16 Reviews)
5.0
eiteamwork

See private message.

$34 USD in 5 days
(11 Reviews)
4.9
erikhumala

See private message.

$17 USD in 5 days
(94 Reviews)
4.8
IvanhoeTeam

See private message.

$42.5 USD in 5 days
(41 Reviews)
4.7
micbassa75

See private message.

$12.75 USD in 5 days
(35 Reviews)
4.3
dmitrylapat

See private message.

$12.75 USD in 5 days
(15 Reviews)
4.1
njccomputing

See private message.

$11.05 USD in 5 days
(7 Reviews)
3.9
frule

See private message.

$34 USD in 5 days
(31 Reviews)
3.5
taufikj

See private message.

$25.5 USD in 5 days
(8 Reviews)
3.3
RoyalTiger

See private message.

$42.5 USD in 5 days
(8 Reviews)
3.0
rasaintvw

See private message.

$42.5 USD in 5 days
(1 Review)
0.0