Post Office Project
I have to do this project, but I really don't know how to. If someone could help me, please do, I would really appreciate it :)
We suppose we have N cities identified by a numeric code and by their geographical position (north, center, south) and many different postal products identified by a code, a type (letter, recorded delivery, etc.)and shipping prices.
For each city it's possible to insert a max of M products.
The program must allow the user to:
-given a city, the user can insert a new product, if possible. We have to consider the positions of previously entered products.
-calculate entire price of products for a city.
-delete a shipped product.
C project
Started by thenewbiecoder, May 25 2009 12:43 PM
6 replies to this topic
#1
Posted 25 May 2009 - 12:43 PM
|
|
|
#2
Posted 25 May 2009 - 04:25 PM
Are you looking for help on the strategy or code? For code, we would need to see what you've written so far.
#3
Guest_Jordan_*
Posted 26 May 2009 - 12:54 PM
Guest_Jordan_*
What have you create so far? Where are you having problems with?
#4
Posted 27 May 2009 - 01:42 AM
I have problems on creating the algorithm, so I need suggestions to deal with it.
Thanks in advance if you can help me :)
Thanks in advance if you can help me :)
#5
Posted 27 May 2009 - 07:17 AM
Since I'm a little fuzzy on how the cities are supposed to work, I'd start with how to represent that.
#6
Posted 09 June 2009 - 11:33 PM
pastebin.com/d2aebe175
that's what I did, but I miss the correct way to delete an item from the cue... anyone could help me?
that's what I did, but I miss the correct way to delete an item from the cue... anyone could help me?
#7
Posted 10 June 2009 - 07:34 AM
The basic logic for inserting/deleting data from an array:
To insert, find where to insert. Then move everything after where you'll insert one position down in the array. Then insert in the newly created space.
To delete find where to delete. Then move everything after up one, starting with the next element.
Note: the logic for insert and delete is very similar.
To insert, find where to insert. Then move everything after where you'll insert one position down in the array. Then insert in the newly created space.
To delete find where to delete. Then move everything after up one, starting with the next element.
Note: the logic for insert and delete is very similar.


Sign In
Create Account

Back to top









