User Profile

Collapse

Profile Sidebar

Collapse
LBailey
LBailey
Last Activity: Mar 9 '07, 06:45 PM
Joined: Mar 4 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi,

    I think i've almost cracked it, i'm now just stuck on the equation at the bottom of the code. Any help you could give would be appreciated, Regards, Laura.
    So far i have:

    Removed code - moderator

    Code:
    dollarAmount = amountEntered * currencyRates[sourceCurrency];
    amountConverted = dollarAmount / currencyRates[targetCurrency];
    
    document.write('<BR>' + amountEntered + currencyNames[sourceCurrency]
    ...
    See more | Go to post
    Last edited by acoder; Mar 8 '07, 07:12 PM. Reason: Deleted unnecessary code

    Leave a comment:


  • I think i have a solution, if i replaced this part of the code mentioned above (*) with the window.prompt code would the converter still work?

    (*) function ConvertToDollar (val, from) {

    Laura
    See more | Go to post

    Leave a comment:


  • Hi,
    I'm completely confused, I need to adapt a currency converter to convert between four specific currencies. Using the conversion rates of Dollar = 1 dollar,
    Euro = 1.27 dollars, Pound Sterling = 1.87 dollars, Japanese = 0.0085 dollars.

    I need to use three parallel arrays to store the currency names, codes and conversion rates and also window prompts for these three points:
    1. prompt the user to input a number...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...