Dim Arrival_time as integer
Dim Frequent_parking_no as integer
Dim Hours_stay as integer
Dim Price_per_hour as Integer
console.WriteLine("Please input Arrival time in only hours. Eg: if arrival is at 15:45 then input 15")
Arrival_time = console.ReadLine()
If Arrival_time < 8 or Arrival_time > 24 Then
console.WriteLine("This entry is invalid as parking is not available. Please enter a correct value")
Elseif Arrival_time > 15 Then
console.WriteLine("Please input the day of the week as an integer. Eg: 1 = sunday , 2 = monday ,etc.")
Week_day = console.ReadLine()
Elseif Week_day > 1 and Week_day < 7 Then
console.WriteLine("Entry is Invalid. The number must be between 1 and 7")
Loop until Week_day > 0 and Week_day <8
Elseif Arrival_time < 16 Then
console.WriteLine("Please input the day of the week as an integer. Eg: 1 = sunday , 2 = monday ,etc.")
Week_day = console.ReadLine()
If Week_day > 0 and Week_day < 8 Then
Max_stay = Arrival_time - 24
console.WriteLine("Entry is Invalid. The number must be between 1 and 7")
Loop until Week_day > 1 and Week_day < 8
console.WriteLine("Please enter a valid arrival time. Please input Arrival time in only hours. Eg: if arrival is at 15:45 then input 15")
loop until Arrival_time > 7 and Arrival_time < 25