Click to See Complete Forum and Search --> : Help!


joeschmo
11-03-2003, 07:27 PM
I have to do some crap assignment about doing a grocery type class. The guy gave us on how the example should look like at the end, it goes like this. He gave us 8 food items and we are suppose to implement a greocery store checkout system. he gave us eight items like popcorn, paper towels, cat chow, aspirin, bread, oreos, milk, and soap. The end result is that you could say i want 6 popcorn packages, the end result would be how much it is and such and tax, i have no clue where to start, any suggestions?

Khalid Ali
11-04-2003, 10:22 AM
create an array with 8 entries init.
then ask user a question using prompt()
and match the input witht he array values if amtches then add some kind of counter...hope this points to somewhere..:)