Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to creat a currency converter

how to creat a currency converter

Scheduled Pinned Locked Moved Visual Basic
designtutorial
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 2350631
    wrote on last edited by
    #1

    please gimme the steps and codes to design a currency converter thank you

    C D I 3 Replies Last reply
    0
    • U User 2350631

      please gimme the steps and codes to design a currency converter thank you

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      rexford wrote: gimme Since this looks like a homework question, I'll help you to understand the problem. You should then have enough information to write your own code based on what ever book you are following or the information provided by your tutor. Currency conversion is a fairly easy problem to solve. You have a source currency and a destination currency and a conversion factor. This is usually expressed in the format of one unit in the source currency is equal to some units of the destination currency. For example. £1.00 == €1.46 So, to get from Sterling to Euros (left to right) you multiply the value by 1.46. To get from Euros to Sterling (right to left) you divide by 1.46. How about if it is expressed the other way around. €1.00 == £0.68 The calculation is the same (left to right / source to destination) you multiply. To go the other way (right to left / destination to source) you divide. Does this help?


      My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious

      1 Reply Last reply
      0
      • U User 2350631

        please gimme the steps and codes to design a currency converter thank you

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        There's nothing to this. The most complicated part is getting the current exchange rate for the currencies involved. I don't know of a public source myself, but if you get this data, the rest is easy: TargetCurrency = SourceCurrency * ExchangeRate. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        1 Reply Last reply
        0
        • U User 2350631

          please gimme the steps and codes to design a currency converter thank you

          I Offline
          I Offline
          icDavid
          wrote on last edited by
          #4

          Hmm, Depend what information did you get? for example you want to know for 50 USA is how much on money on RMB Frist you need to know 1.00 USD = 8.50 RMB then using the following equation A = 1.00 USD_ B = 8.50 RMB_ C = 50.00 USD_ X = ? RMB_ A (USD_) = B (RMB_) --> eq.(1) C (USD_) = X (RMB_) --> eq.(2) X = (B/A) * C You can create a Function to accomplish that. Hope it will help. If I am wrong please correct me.:doh:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups