Dim T_Booked(10) as String
Dim F_Booked(10) as String
Dim H_Booked(10) as String
Dim T_Total as Integer = 0
Dim F_Total as Integer = 0
Dim H_Total as Integer = 0
Dim Error_Msg as String = "Your input is invalid, Please try again."
Dim I_Booked(10) as String
Dim Thirty_TT as String = "Slot 1-8:00, Slot 2-9:00, Slot 3-10:00, Slot 4-11:00, Slot 5-12:00, Slot 6-1:00, Slot 7-2:00, Slot 8-3:00, Slot 9-4:00, and Slot 10-5:00"
Dim Sixty_TT as String = "Slot 1-8:00, Slot 2-9:30, Slot 3-11:00, Slot 4-12:30, Slot 5-2:00, Slot 6-3:30, Slot 7-5:00"
Console.WriteLine("PLEASE ENTER ALL INPUTS IN ALL CAPS WHERE APPLICABLE")
Console.WriteLine("PLEASE ENTER ALL INPUTS IN ARABIC NUMERALS WHERE APPLICABLE")
Console.WriteLine("Please input the Flight Time for the " & I_Type & " Plane in minutes")
I_Length = Console.ReadLine()
Do Until I_Length = 30 or I_Length = 60
Console.WriteLine(Error_Msg)
I_Length = Console.ReadLine()
H_Max = 600 / (H_Length + 30)
T_Max = 600 / (T_Length + 30)
F_Max = 600 / (F_Length + 30)
Console.Writeline("The Details for the Planes are displayed below:")
Console.WriteLine("Two Seater, Flight Time: " & T_Length & ", Max Number of Fights: " & T_Max & ", Max Possible Income: " & T_Earn)
Console.WriteLine("Four Seater, Flight Time: " & F_Length & ", Max Number of Fights: " & F_Max & ", Max Possible Income: " & F_Earn)
Console.WriteLine("Historic, Flight Time: " & H_Length & ", Max Number of Fights: " & H_Max & ", Max Possible Income: " & H_Earn)
Console.WriteLine("Please enter the current Bookings")
Console.WriteLine("Please enter the Bookings for the Two Seater")
Console.WriteLine(Thirty_TT)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
T_Booked(I) = Console.Readline()
Do Until T_Booked(I) = "YES" or T_Booked(I) = "NO"
Console.WriteLine(Error_Msg)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
T_Booked(I) = Console.ReadLine()
Console.WriteLine(Sixty_TT)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
T_Booked(I) = Console.Readline()
Do Until T_Booked(I) = "YES" or T_Booked(I) = "NO"
Console.WriteLine(Error_Msg)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
T_Booked(I) = Console.ReadLine()
Console.WriteLine("Please enter the Bookings for the Four Seater")
Console.WriteLine(Thirty_TT)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
F_Booked(I) = Console.Readline()
Do Until F_Booked(I) = "YES" or F_Booked(I) = "NO"
Console.WriteLine(Error_Msg)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
F_Booked(I) = Console.ReadLine()
Console.WriteLine(Sixty_TT)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
F_Booked(I) = Console.Readline()
Do Until F_Booked(I) = "YES" or F_Booked(I) = "NO"
Console.WriteLine(Error_Msg)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
F_Booked(I) = Console.ReadLine()
Console.WriteLine("Please enter the Bookings for the Historic")
Console.WriteLine(Thirty_TT)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
H_Booked(I) = Console.Readline()
Do Until H_Booked(I) = "YES" or H_Booked(I) = "NO"
Console.WriteLine(Error_Msg)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
H_Booked(I) = Console.ReadLine()
Console.WriteLine(Sixty_TT)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
H_Booked(I) = Console.Readline()
Do Until H_Booked(I) = "YES" or T_Booked(I) = "NO"
Console.WriteLine(Error_Msg)
Console.WriteLine("Is Slot " & I & " booked? Please answer in all caps, either YES or NO")
H_Booked(I) = Console.ReadLine()
Console.WriteLine("Here are the current Bookings, YES means booked, NO means available")
Console.WriteLine("Two Seater")
If T_Booked(I) = "YES" or T_Booked(I) = "NO"
Console.WriteLine("Slot " & I & ", " & T_Booked(I))
Console.WriteLine("Four Seater")
If F_Booked(I) = "YES" or F_Booked(I) = "NO"
Console.WriteLine("Slot " & I & ", " & F_Booked(I))
Console.WriteLine("Historic")
If H_Booked(I) = "YES" or H_Booked(I) = "NO"
Console.WriteLine("Slot " & I & ", " & H_Booked(I))
Console.Writeline("Would you like to place anymore Bookings? Please answer in All Caps, YES or NO")
Book = Console.Readline()
Do Until Book = "YES" or BOOK = "NO"
Console.WriteLine(Error_Msg)
Console.Writeline("Would you like to place anymore Bookings? Please answer in All Caps, YES or NO")
Book = Console.Readline()
Console.WriteLine("Please enter the model of Plane you would like to Book for")
Book_Model = Console.readline()
Do Until Book_Model = "TWO SEATER" or Book_Model = "FOUR SEATER" or Book_Model = "HISTORIC"
Console.WriteLine(Error_Msg)
Console.WriteLine("Please enter the model of Plane you would like to Book for")
Book_Model = Console.readline()
If Book_Model = "TWO SEATER"
If Book_Model = "FOUR SEATER"
If Book_Model = "HISTORIC"
Console.WriteLine("Please enter the Time Slot you would like to Book")
Book_Time = Console.ReadLine()
Do Until Book_(Book_Time) = "YES" or Book_(Book_Time) = "NO"
Console.WriteLine(Error_Msg)
Console.WriteLine("Please enter the Time Slot you would like to Book")
Book_Time = Console.ReadLine()
If Book_(Book_Time) = "YES"
Console.WriteLine("The Chosen Slot for the Selected Plane is unavailable")
If Book_Model = "TWO SEATER"
T_Booked(Book_Time) = "YES"
If Book_Model = "FOUR SEATER"
F_Booked(Book_Time) = "YES"
If Book_Model = "HISTORIC"
H_Booked(Book_Time) = "YES"
Console.Writeline("Booking Confirmed")
T_Income = T_Total * T_Earn
F_Income = F_Total * F_Earn
H_Income = H_Total * H_Earn
Console.WriteLine("The Earnings for the Planes are displayed Below")
Console.WriteLine("Two Seater: " & T_Income)
Console.WriteLine("Four Seater: " & F_Income)
Console.WriteLine("Historic: " & H_Income)
Console.WriteLine("The total Earnings are $" & T_Income + F_Income = H_Income)