Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 6th, 2006, 5:56 PM   #1
orez35
Newbie
 
Join Date: Nov 2006
Posts: 3
Rep Power: 0 orez35 is on a distinguished road
Number Combinations

I need help creating a program that generates all of the possible combinations of the last four digits of a telephone #. I want to be able to input the area code and exchange which are known values. The program will then generate the list which I need to export into another program. The list must be in a excel or CSV format.
I think this can be accomplished in excel but I have had no success.
orez35 is offline   Reply With Quote
Old Dec 7th, 2006, 2:21 AM   #2
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
Thumbs up

there are 10,000 possibles.
psuedocode...
for(i = first known val; i <= last known val; i++)
{
for(j = 0; j < 10000; j++)
{
concatenate i to the end of j
}
}
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Dec 7th, 2006, 12:14 PM   #3
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 311
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
Oiye.
andro is offline   Reply With Quote
Old Dec 7th, 2006, 2:39 PM   #4
orez35
Newbie
 
Join Date: Nov 2006
Posts: 3
Rep Power: 0 orez35 is on a distinguished road
thankks for the info, you guyas a little ahead of me so please bare with me. If I ma in excel can i simply put that formula into the colum for the last 4 digits. What I am saying is I need my hand held alittle on this one, if you can give more specific directions thank you so much
orez35 is offline   Reply With Quote
Old Dec 8th, 2006, 1:56 AM   #5
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
i would, but i need my hand held also when it comes to excel.

click on help.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nid Help:about combinations veiga2 Java 5 Aug 15th, 2006 1:49 PM
Jython Jessehk Coder's Corner Lounge 2 Feb 5th, 2006 4:35 AM
[tutorial] Python for programming beginners coldDeath Python 30 Dec 14th, 2005 11:35 AM
FiveDigit + RandomeNumber Game. TecBrain Java 0 Nov 18th, 2005 2:53 PM
Number Systems... Ade Coder's Corner Lounge 7 Jan 19th, 2005 5:32 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC