![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 1
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#4 | |
|
Programmer
|
Quote:
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 |
|
|
|
|
|
|
#5 | |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
Quote:
Please be a bit specific on the thread title that should speak about the problem domain
__________________
Visit: http://www.somaiya.edu |
|
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|