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.
Public Comments
- 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
Powered by Yahoo! Answers