Please enable JavaScript.
Coggle requires JavaScript to display documents.
Computer Science - Coggle Diagram
Computer Science
Variables
Integer (whole counting numbers) e.g. 1,5,7,99,-2,0
Float (Read decimal number) e.g. 1.1,o.14,-1,34,0.0
String (Multiple Characters, text) e.g. "Hi", "a", "p5"
-
-
-
-
Conditions and Brocking
If(Clock.Hour<18)Then, TextWindow("Good day"), EndIf
=: equal, >: greater than, <: less than,>=: Greater than or equal,<=:less than or equal <>: not equal
If(Clock.Hour>=18)Then, TextWindow.WriteLine("Good evening"), EndIf
Small basic
Programming languages
Java, Javascript, Rasberry pie
Turtle.PenUp(), Turtle.MoveTo(100,100), Turtle.Angle=90, Turtle.PenDown()
Using a for loop
For i = 1 to 4, Turtle.Move 100, Turtle.TurnRight(), EndFor
GraphicsWindow.PenWidth=, GraphicsWindow.Pencolour
The text window
TextWindow.WriteLine("Hello"), TextWindow.WriteLine(""), TextWindow.Write("Hello," + Laura)
TextWindow.WriteLine("What's your name?"), Dhilan=TextWindow.Read()Name