It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

How to write the following JavaScript program

How to write the following JavaScript program

Postby ScottyMalaysia on Sat Apr 12, 2008 5:36 am

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
 
Posts: 2
Joined: Sat Apr 12, 2008 5:30 am

Postby rangana on Sat Apr 12, 2008 6:11 am

Definitely an array ;)
http://javascript.about.com/library/bltoword.htm

See if it helps ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 5 guests