parallel « Array « Javascript Data Type Q&A

Home
Javascript Data Type Q&A
1.Array
2.Clojure
3.date
4.decimal
5.function
6.global
7.loop
8.math
9.number
10.object
11.Regular Expression
12.scope
13.String
14.Var
15.variable
Javascript Data Type Q&A » Array » parallel 

1. Sorting parallel arrays in javascript    stackoverflow.com

I have a couple of parallel arrays called names and sales. I have the user enter up to 100 salespeople (names, obviously) and their sales. I have no problem ...

2. Javascript array problem    stackoverflow.com

I have an array that i wish to looking into and only print something out when the array== another variable, however it seems to print out the statement whatever, am I ...

3. multiplying corresponding elements in parallel arrays    codingforums.com

Hi there, I was hoping for some advice, not really answers as this is part of an assignment. What I have been given is two arrays and I need to multiply the elements in the first with the corresponding value in the second and then save the result into a third array. I am very very new to this and have ...

4. Parallel array return opposite variable problem    codingforums.com

Hi, I could really use some help, i know it's a simple answer but i can't find it. What i need to do is 1) Take the user entered variable textfield 2) Compare textfield against the string variables held in the English array 3) When it finds a match 4) Return the opposite string variable from the Spanish array 5) If ...

5. Help with Javascript arrays & parallel arrays    codingforums.com

Hi there, I urgently need to find a solution to the following problem. I need to add some scripting so the system will do the following: Request the user's name! If what is entered matches the data held then you are prompted to enter a password. If this value matches as well then you receive a message saying "Welcome". If the ...

6. Undefined - Parallel array hell    codingforums.com

Hi guys, I have a new problem with my college project. I have tried and tried but can't understand my text books. I'm hoping for some advice. The program is for an online odering system. It prompts for a user password and displays a list of available items. The program then prompts the user to enter the amount of items that ...

7. parallel arrays    codingforums.com

Hi Here is my code what i need to do is create and initalise 4 names for banks,saving,current,e-save and then i need to be able to initialise them with some specific values which can be any thing. I then need to be able to wrie in new banks. I need a code to which will then ask the user if they ...

8. Advice and help with parallel arrays    codingforums.com

My code is below to show bank details and interest rates but i need add another bank with interest rates with a prompt. How do i do this. Mike

Current Account Rate 2.0%.

Savings Rate 4.0%.

e-Savings account Rate 4.5%.

Current ...

9. Sorting Parallel Arrays    codingforums.com

How do I modify this code so that it rearranges the letters corresponding to their original positions as they related to the numbers? Right now it just prints the letters from a-h after I sort the numbers. The original index position of 15 corresponds the index of h. So when array a is sorted in ascending order, it should display 15H ...

10. Parallel Arrays and Counting    codingforums.com

//create and initialize counter variables ctrA, ctrB, ... ctrZ. for (var i=65; i<=90; i++){ window["ctr"+String.fromCharCode(i)] = 0; } function countLetter(letters) letters = letters.toUpperCase(); for (var p = 0; p < letters.length; p++) { window["ctr"+letters[p]]++; } var counts=""; for (var i=65; i<=90; i++){ counts += String.fromCharCode(i) + "=" + window["ctr"+String.fromCharCode(i)] + "\n"; } alert(counts); } var input = prompt("enter string", ""); countLetter(input); ...

11. Help needed with parallel array    codingforums.com

Hello, basically I need to take the first number out of the array, compare the 3 letters after - but there could be up to 6 numbers/ letters before the - in the number. The three letters is a tax code and i need to compare the find whether its a T at the beginning and an m at the end ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.