Dim cabins() as String = {"Hetty", "Poppy", "Blue Skies", "Bay View", "Happy Days", "Summer Joy", "Walkers' Rest", "Bertie", "Green Forest Lodge", "Coppice Lodge"}
Dim capacities() as Integer = {4, 4, 4, 6, 6, 6, 8, 8, 10, 10}
Dim peakrates() as Decimal = {400.00, 400.00, 500.00, 650.00, 695.00, 800.00, 950.00, 1050.00, 1200.00, 1500.00}
Dim offpeakrates() as Decimal = {250.00, 250.00, 350.00, 500.00, 550.00, 600.00, 750.00, 850.00, 950.00, 1150.00}
Dim bookings(169) as String
Dim cabinnumber as Integer
Dim bookingindex as Integer
input = Console.ReadLine()
Console.Write("Cabin: " & cabins(counter1) & "; Capacity: " & capacities(counter1) & "; Available Weeks: ")
bookingindex = counter1*17 + counter2
If bookings(bookingindex) = ""
Console.Write(counter2 + 23 & ", ")
Console.WriteLine("Please input the log cabin you wish to stay in.")
cabin = Console.ReadLine()
If cabin = cabins(counter)
Console.WriteLine("Please input the number of weeks for the booking.")
weeks = Console.ReadLine()
Console.WriteLine("Please input the starting week.")
week1 = Console.ReadLine()
code = cabinnumber & week1
bookings(week1 - 23 + i + cabinnumber * 17) = code
For counter = 0 to weeks - 1
If week < 27 or week > 35
cost = cost + offpeakrates(cabinnumber)
cost = cost + peakrates(cabinnumber)
Console.WriteLine("The cost is $" & cost & ".")
Console.WriteLine("As you are staying for 3 weeks or more, you have a 10% discount. The original cost was $" & cost & " and the discounted cost is $" & (cost - cost / 10) & ".")