dim ParkingPlace(6) as string
Dim Numberofplace(6) as integer
dim userchoice1 as integer
dim userchoice2 as integer
Parkingplace(1) = "abbey Foregate "
Parkingplace(2) = "Bridge Street "
Parkingplace(3) = "Frankwell "
Parkingplace(4) = "Raven Meadows "
Parkingplace(5) = "St Julian Friars "
Parkingplace(6) = "Wyle Cop "
console.writeline(i & "|" & ParkingPlace(i)& "|" & Numberofplace(i) )
Console.WriteLine("Which Car Park Number Do you want to book?")
userchoice1 = console.readline
loop until userchoice1 < 7 and userchoice1 > -1
loop until Numberofplace(userchoice1) > 0
Console.writeline(" You have booked " & Parkingplace(userchoice1) )
Numberofplace(i) = numberofplace(i) - 1
console.writeline("Here is a new list of parking spaces")
console.writeline(i & "|" & ParkingPlace(i)& "|" & Numberofplace(i) )