Thursday, May 17, 2012

MetricConversion

This application involved entering a number and being able to convert between metric/customary units for various lengths.

I made a few errors while typing this program
The first one was that I treated a function like a procedure and typed:
finalNumber=(initialNum*2.54)
Return finalNumber

I changed this to:
 Return (initialNum * 2.54)
after Ms. Stark pointed out my error.

The second mistake I made was I predefined finalNumber as being equal to zero:
Dim finalNumber As Double

The third mistake I made was that I forgot to type in the tags. Oops.

No comments:

Post a Comment