What are the codes for making a conversion calculator with price of gas litres and gallons in US $ and CAN $?
I need a code or just some help with a project.
I have to make a program with visual basic that allows people to find out the price of gas in gallons and litres in Canadian Dollars and American Dollars.
For the currency convert, check out XE Universal Currency Converter. As far as programming it, the application is fairly simple.
- Create some static variables with the known current currency and volume ratios
- Allow a user to input the value and store in a variable
- Calculate the price in gallons, litres, and the various currencies and store in variables.
- Print the output to the user.
I’d recommend creating a conversion object with methods for each type of conversion you’ll need to make it a bit more flexible.
Object name: Converter
Method: gallonToLitre
Method: dollarToCanDollar

|
Ativa Currency and Metric Conversion Calculator
The slim AT-CV1 features a currency conversion function, which makes it a handy tool for conducting foreign business or traveling internationally. It has a convenient last-digit erase feature, automatic shutoff and a large, easy-to-read, 8-character alphanumeric display. Includes 1 button cell battery and a case for easy carrying. Backed by the manufacturer’s 1-year limited warranty….
|