Dim Qnumber As Integer = Nothing
Console.WriteLine("What question do you want to go to? (input question number...)")
Qnumber = Console.ReadLine()
Dim w As Decimal = Nothing
Dim l As Decimal = Nothing
Console.WriteLine("Please input the width of your garden (m)")
Console.WriteLine("Please input the length of your garden (m)")
Console.WriteLine("The area of your garden is " & w * l & " meters squared.")
Dim f As Decimal = Nothing
Console.WriteLine("I will convert farenheit to celcius")
Console.WriteLine("Please input a farenheit temperature:")
Console.WriteLine("Your celcuis temperature is " & Math.Round((f - 32) / (9 / 5), 1) & "°C.")
Dim t As Decimal = Nothing
Console.WriteLine("Please input the air temperature in the room:")
Console.WriteLine("The water is in a frozen state.")
Console.WriteLine("The water is not in a frozen state.")
Dim t As Decimal = Nothing
Console.WriteLine("Please input the air temperature in the room (in degrees celcius):")
Console.WriteLine("The water is in a solid state.")
ElseIf t >= 0 And t < 100 Then
Console.WriteLine("The water is in a liquid state.")
Console.WriteLine("The water is in a boiling state")
Dim monthnum As Integer = Nothing
Dim monthname As String = Nothing
Console.WriteLine("Please input a month number")
monthnum = Console.ReadLine()
Console.Write(monthname & " is the month corresponding with the number you entered")
Dim counter As Integer = 0
Dim number As Integer = Nothing
Console.WriteLine("Write a number and I will count up to it from 0")
number = Console.ReadLine()
Do Until counter = number
Console.Write(counter & " ")
Dim number As Integer = Nothing
Console.WriteLine("Write a number and I will count down to 0 from it")
number = Console.ReadLine()
Console.Write(number & " ")
Dim number As Integer = Nothing
Console.WriteLine("Write a number and I will count down to 0 in intervals of 4")
number = Console.ReadLine()
Console.Write(number & " ")
Dim arr(9), Max As Integer
Console.WriteLine("Input ten numbers, and I will output the largest number:")
Console.WriteLine("Number " & x + 1 & ":")
arr(x) = Console.ReadLine()
If arr(x) > Max Then Max = arr(x)
Console.WriteLine(Max & " is the largest")
Dim arr(9), Min As Integer
Console.WriteLine("Input ten numbers, and I will output the smallest number:")
Console.WriteLine("Number " & x & ":")
arr(x) = Console.ReadLine()
If arr(x) < Min Then Min = arr(x)
Console.WriteLine(Min & " is the smallest of your numbers")
Dim number As Integer = Nothing
Dim valid As Boolean = Nothing
Console.WriteLine("Please input a number between 1 And 5")
number = Console.ReadLine()
If number >= 1 And number <= 5 Then
Console.WriteLine("Try again, input a number between 1 And 5")
Console.WriteLine("Your number Is " & number)
Dim n1, n2, x, y As Integer
Console.WriteLine("I will display all numbers between two input numbers")
Console.WriteLine("What Is your first number?")
Console.WriteLine("What Is your second number?")
Dim arr(0 To 9) As Integer
Console.Write(arr(i) & " ")
Console.Write("are the numbers In the array")
Console.Write(arr(i) & " ")
Console.Write("are the numbers In the array")
Dim input As Integer = Nothing
Console.WriteLine("Please enter numbers from 1 To 10, terminate this process by entering 0")
Console.WriteLine("Please enter a number")
input = Console.ReadLine()
If input = 0 Then Exit Do
Console.Write(arr(i) & " ")
Console.Write("are the numbers In the array")
Console.Write(arr(x, y) & " ")
Dim arr(0 To 4, 0 To 4) As Integer
Dim counter As Integer = 0
Console.WriteLine("Enter x And y co-ordinates between 1 And 5 For Me To plot On the grid As '1' ")
Console.WriteLine("x co-ordinate:")
x = Console.ReadLine() - 1
Console.WriteLine("y co-ordinate:")
y = Console.ReadLine() - 1
If arr(x, y) = arr(dx, dy) Then
Console.Write(arr(x, y) & " ")
Console.Write(arr(dx, dy) & " ")
Console.WriteLine("Please input a character, I will show you its ASCII code")
input = Console.ReadLine()
Console.WriteLine(Asc(input) & " is the corresponding value for that character")
Console.WriteLine("Please input an ASCII code, I will show you its character")
input = Console.ReadLine()
Console.WriteLine(Chr(input) & " is the corresponding character for that value")
Console.WriteLine("I will count how many characters your word has")
Console.WriteLine("Please input a word")
word = Console.ReadLine()
Console.WriteLine("Your word contains " & numofchar & " characters.")
Console.WriteLine("Please input a word, I'll give back the first two characters of the word")
word = Console.ReadLine()
Console.WriteLine("'" & Left(word, 2) & "' are the first two characters of the word '" & word & "'.")
Console.WriteLine("Please input a word, I'll give back the last two characters of the word")
word = Console.ReadLine()
Console.WriteLine("'" & Right(word, 2) & "' are the last two characters of the word '" & word & "'.")
Dim input, output As String
Console.WriteLine("Please write a word, I will give you the middle letter")
Console.WriteLine("There will be 2 letters if the word has an even number of letters")
Console.WriteLine("Word:")
input = Console.ReadLine()
If Math.Round(o1, 0) = o1 Then
output = Mid(input, o1, 2)
output = Mid(input, o1 + 0.5, 1)
Console.WriteLine("The middle character(s): " & output)
Dim first, last As String
Console.WriteLine("Input your first and last name, and I'll write them together")
Console.WriteLine("What is your first name?")
first = Console.ReadLine()
Console.WriteLine("What is your last name?")
last = Console.ReadLine()
Console.WriteLine("Your full name is " & first & " " & last & ".")
Dim first, last As String
Console.WriteLine("Input your first and last name, and I'll write your first initial followed by your last name")
Console.WriteLine("What is your first name?")
first = Console.ReadLine()
Console.WriteLine("What is your last name?")
last = Console.ReadLine()
Console.WriteLine("Your full name is " & Left(first, 1) & " " & last)
Console.WriteLine("Input a decimal number, and I will give you the nearest number")
Console.WriteLine("Decimal number")
Console.WriteLine("The rounded number is " & num)
Console.WriteLine("Here are 5 random numbers between 0 and 100:")
Dim value As Integer = Math.Round((100 * Rnd()), 0)
Console.Write(value & " ")
Console.WriteLine("I will read to you the contents of a text document:")
Dim sFolderName As String
sFolderName = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
Dim sFileName As String = "text.txt"
sFileName = (sFolderName & "\" & sFileName)
content = File.ReadAllText(sFileName)
Console.WriteLine(content)
Console.WriteLine("I will read to you the contents of a text document, and then copy it to a new one:")
content = My.Computer.FileSystem.ReadAllText(file:="C:\text.txt")
My.Computer.FileSystem.WriteAllText(file:="C:\textcopy.txt", text:=content, append:=False)
Console.WriteLine(content)
Console.WriteLine("Please write something, I will add it on a new line in the text.txt file:")
content = Console.ReadLine()
My.Computer.FileSystem.WriteAllText("C:\text.txt", Environment.NewLine, True)
My.Computer.FileSystem.WriteAllText("C:\text.txt", text:=content, append:=True)
Console.WriteLine("Finished!")