
-----------------------------------
Jenkinz
Sun May 07, 2006 8:02 pm

car program
-----------------------------------
i was fooling around with this for a while and got help from a friend, can someone please explain to me why i need the (count) in this?

var car : array 1 .. 5 of string := init ("Hummer H2", "Ferrari Spyder", "Mini", "GTI", "Porsche GT2")
var price : array 1 .. 5 of int := init (80000, 150000, 30000, 35000, 250000)
var money : int
randint (money,80000, 250000)
put money
put "you can get these cars"
for count : 1 .. 5
    if price (count) 