Thank you for your fast replies ! Well I want to create a gunstore with the following data:
-BOLT ACTION SNIPERS
For example ,PISTOLS contain 5 guns:Beretta,Desert eagle,R1895, P18C, P1911...I want to specify the damage , effective range and the price of each of these guns.Then the user has to choose the gun he/she wishes to buy and the price of the guns chosen by them must be added to the billing .Then the user is asked to input some of his details for billing.
I am just a school guy so not much ideas about this ....Anything about this ?..And thanks in advance!
Well, how much do you know about programming this? This is probably a foundations I or II programming equivalent assignment from what I can tell. If you have no idea where to start, go read up on classes and object oriented programming.
It's also better if you gave us some code to see where you're at so we can get an idea of how to help.
the price should be a straight lookup table read from a database or disk file or something. Maybe a map. Whatever.
nothing much more than
price = container[selection] once you have the data organized in some way.
or price = container.find(selection)
Sounds like a good school project. Though I am disappointed, I wanted to shop here when you were done :P