Small Basic

My codes

If (Clock.Hour < 12) Then

TextWindow.WriteLine("Good Morning World!")

EndIf

TextWindow.WriteLine(" Hello my name is Chatbot")

TextWindow.WriteLine("What is your name?")

name= TextWindow.Read()

TextWindow.WriteLine("That's a nice name " + name )

TextWindow.WriteLine("So how are you feeling this morninng?")

feeling = TextWindow.Read()

TextWindow.WriteLine("Why are you feeling? " + feeling )

feeling = TextWindow.Read()

TextWindow.WriteLine("Ok")

TextWindow.WriteLine("What do you like to do in your spare time?")

hobby = TextWindow.Read()

TextWindow.WriteLine("Do you like Computing Science?")

answer= TextWindow.Read()

TextWindow.WriteLine("Why?")

answer= TextWindow.Read()

TextWindow.WriteLine("Ok")

TextWindow.WriteLine("I hope you have a good day " + name )

If (Clock.Hour < 12) Then

TextWindow.WriteLine("Goodbye World!")

EndIf


I made these codes on Small Basic.

These are for a chat bot which asks questions.