Question:

I am looking for pseudocode for any type of conversion program... i.e metric, currency

by  |  earlier

0 LIKES UnLike

I am looking for pseudocode for any type of conversion program... i.e metric, currency

 Tags:

   Report

1 ANSWERS


  1. For a general-purpose conversion program, I would probably have the actual conversion data in a separate file (database, flat-file or whatever). The following assumes the file is in the format from_units, to_units, conversion_amount (for example inch,centimeter,2.54):

    Controls of a drop-down selection box, text box and pushbutton

    Load conversion file values into drop-down control

    When 'Convert' button pressed

    if (textbox.value not numeric) error "Please enter numeric value in text box"

    else display dropdown.value * textbox.value



Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.