Dim username, password, firstname, surname, emailAddress, yearJoined as String
Dim loginAttempts as integer
dim Domain as string = "crossleyheath.org.uk"
console.WriteLine("Enter your username:")
username = console.readline()
Console.WriteLine("Enter your password:")
if username = true and password = true then
Console.WriteLine("Login Successful.")
Console.Writeline("Login Unsuccessful.")
loginAttempts = loginAttempts + 1
if loginAttempts = 3 then
Console.Writeline("You've reached your maximum number of login attempts.")
Loop until username = true and password = true
Console.Writeline("Welcome to the email generator for Crossley Heath.")
Console.Writeline("Enter your first name.")
firstname = Console.readline()
console.writeline("Enter your second name.")
surname = console.readline()
console.writeline("Enter the year you joined Crossley Heath.")
yearJoined = console.readline()
emailAddress = firstname.substring(0, 2) + surname + yearJoined.substring(2, 2) + Domain
console.writeline("Your email address is: " & emailAddress)
Function Login(ByRef user as string, ByRef pass as string)
If user = "test" and pass = "1234" then