Dim username, answer, difficulty as string
Dim loginCheck as boolean
Console.WriteLine("Please enter your username: ")
username = console.readline()
If username = "Thomas" or username = "Partington" then
Console.Writeline("Invalid login. Please try again.")
Loop Until loginCheck = True
Console.Writeline("Welcome to the quiz " & username)
Console.WriteLine("Would you like to play the easy quiz or the harder quiz?")
Console.WriteLine("Type 'easy' or 'hard'")
difficulty = console.readline()
If difficulty = "easy" or difficulty = "Easy" then
Console.WriteLine("Ok! Here are the easy questions.")
Console.WriteLine("Question 1 - Hacking is always criminal offence. True or false?")
answer = console.readline()
If answer = "True" or answer = "true" then
Console.WriteLine("Incorrect. White hat hacking is ethical and can help an individual or company identify weaknesses in their network.")
ElseIf answer = "False" or answer = "false" then
Console.WriteLine("Correct. There are two types of hacking - white hat and black hat. Black hat hackers tend to be cyber criminals.")
Console.WriteLine("Invalid option.")
Loop Until answer = "True" or answer = "true" or answer = "False" or answer = "false"
console.writeline("easy")
ElseIf difficulty = "hard" or difficulty = "Hard" then
Console.WriteLine("Ok! Here are the hard questions.")
Console.WriteLine("Question 1 - There are two types of hacking. Both of them are criminal offences. True or false?")
answer = console.readline()
If answer = "True" or answer = "true" then
Console.WriteLine("Incorrect. White hat hacking is ethical and can help an individual or company identify weaknesses in their network.")
ElseIf answer = "False" or answer = "false" then
Console.WriteLine("Correct. There are two types of hacking - white hat and black hat. Black hat hackers tend to be cyber criminals.")
Console.WriteLine("Invalid option.")
Loop Until answer = "True" or answer = "true" or answer = "False" or answer = "false"
Loop Until difficulty = "easy" or difficulty = "Easy" or difficulty = "hard" or difficulty = "Hard"