User Profile

Collapse

Profile Sidebar

Collapse
joor
joor
Last Activity: Feb 23 '08, 04:18 PM
Joined: Feb 15 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • joor
    started a topic multiplying the elements in parallel Arrays

    multiplying the elements in parallel Arrays

    Hi

    I am a beginner and currently trying to create a small program. I seem to be stuck on the multiplication of their elements. Eg. I have an Array with 4 different prices for 4 different products and have created 2 other Arrays to which I have assigned values through window.prompt(p arseFloat) , what I am trying to do is multiplicate the values on the parallel arrays by their corresponding indexes and keep a running total so I can...
    See more | Go to post
    Last edited by acoder; Feb 25 '08, 07:40 AM. Reason: Added code tags

  • joor
    replied to iterating through Array
    thanks for your help,

    I have taken a slight different route, however, I still seem to be stuck, what I am really trying to do is to create a while loop which will keep prompting me for the password if the password does not match the strings. also, if I had a parallel array, I would like to keep the index relevant to the password position. Any ideas?? Thanks again


    [CODE=javascript]<script language="JavaS cript"...
    See more | Go to post
    Last edited by acoder; Feb 16 '08, 09:33 AM. Reason: Added code tags

    Leave a comment:


  • joor
    started a topic iterating through Array

    iterating through Array

    Hi
    I am new to all this so please excuse my ignorance. I am trying to work out how I can check if my Array contains my declared variable and if so, for the boolean to return true, however, I dont seem to be getting anywhere. I have tried the for loop and while loop as below; I would very much appreciate any help

    [CODE=javascript]var customerCodes = ['sh-12', 'gw-4', 'to-0'];
    var customerPasswor ds = ['tony', 'darma',...
    See more | Go to post
    Last edited by acoder; Feb 18 '08, 10:09 AM. Reason: Added code tags
No activity results to display
Show More
Working...