Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old May 5th, 2006, 6:05 PM   #1
psicodelic
Newbie
 
Join Date: May 2006
Posts: 1
Rep Power: 0 psicodelic is on a distinguished road
I'm new to the forum with a question

I am trying to figure out in a problem as follows:

A user have enter a minimum population number into a textfield.

Next in our code we have to:

-Open the file
-Read three fields in each record and display all the states that have at least the specified minimum population

-Then display the output in a listbox.

i.e. for instance if you enter 10000 and Florida has more than 10000 people display florida and the other states in the listbox

Any input would be helpful
psicodelic is offline   Reply With Quote
Old May 5th, 2006, 6:18 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
First, be sure and read the forum's rules/FAQ and a How to Post thread, then show some code or pseudocode; there's plenty of help available if you break some sweat, yourself.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 6th, 2006, 12:26 AM   #3
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
doesn't sound too terribly hard, i guess you might be more specific about which part you don't get. like reading files, or simply retrieving data from textboxes or whatever, there's lots of documentation online also.

the problem itself is kind of dumb though...is it an assignment? i mean, who cares about the data? florida 100000 and more states? why enter a state in the first place? it's a decent intro excercise, but damn they could have made it more interesting.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old May 6th, 2006, 11:14 AM   #4
gryfang
Programmer
 
gryfang's Avatar
 
Join Date: May 2006
Location: Ohio
Posts: 36
Rep Power: 0 gryfang is on a distinguished road
Send a message via AIM to gryfang
Quote:
Originally Posted by psicodelic
I am trying to figure out in a problem as follows:
-Open the file
-Read three fields in each record and ...
I noticed you Said Read three fields... and You play with only State and Population (what's the third field).
I'd at least ask the Teach/Prof about the exact format the file will be in, [State, Population, Age] or [Population, State \\\ DateAdmittedIntoUnion <Year>] so that you know how to do your problem.
Also I would think about all the error cases that you could encounter so you don't get penalized for not thinking about then (Such as the user entering Florida twice with two different populations, of the User entering Florida with a population of a string "People").
Those are just suggestions and you really have to work on the solution a little so that the problems you have specifically can be overcome except for just stating a generality and waiting for a miracle.

I hope my rant helped
__________________
--------------------
LOAD "*" ,8,1

God bless
- Gryfang
gryfang is offline   Reply With Quote
Old May 6th, 2006, 12:10 PM   #5
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Wink

Quote:
Originally Posted by DaWei
First, be sure and read the forum's rules/FAQ and a How to Post thread, then show some code or pseudocode; there's plenty of help available if you break some sweat, yourself.
Just to add to it, ..

Please be a bit specific on the thread title that should speak about the problem domain
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old May 8th, 2006, 1:31 AM   #6
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
still just at one post...gone with the wind.
__________________
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




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

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