How to write this JavaScript Program

Discussion in 'JavaScript' started by ScottyMalaysia, Apr 11, 2008.

  1. #1
    In my Internet and Web Technology class, I have to write the following program:

    "Write a JavaScript that inputs a numeric check amount and writes the words equivalent of the amount. For example, the amount 112.43 should be written as

    ONE HUNDRED TWELVE and 43/100"

    I have absolutely no idea how to do this. My teacher mentioned using an array, but I can't see how an array would work for this.

    Any help here would be greatly appreciated.
     
    ScottyMalaysia, Apr 11, 2008 IP
  2. temp2

    temp2 Well-Known Member

    Messages:
    1,231
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    2
    #2
    temp2, Apr 12, 2008 IP
  3. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    MMJ, Apr 12, 2008 IP