This is a list of all of the articles relating to the concept of numbers.
To introduce brackets and the evaluation order in Go.
To introduce programming in Go and carry out simple mathematics using a program written in Go
The objective is to reinforce the class knowledge of numbers and simple sums in Go and to reinforce the skills needed to create and run a Go program.
The pupils are introduced to brackets and shown how to use them to group terms. The pupils are also introduced to the idea of operator precedence.
Creating this program will require the class to use the text editor (either Atom or LiteIDE) to create and save the source code file and the terminal/command line to run their program.
The objective is to get the class to write a Go program to solve simple
mathematical problems. The program will only use addition (typed
-), multiplication (typed
* not ×) and division (typed
\ or ÷).
Creating this program will require the class to use the text editor (either
Atom or LiteIDE) to create and save the source code file and the
terminal/command line to run their program.
Each subsequent lesson will require the class to use both the text editor and the terminal.
You saw in the last lesson how to do simple sums using Go. Now we want to show you that sums in Go follow the same mathematical rules that you already understand.
Maths is a universal language, even for computers.
Lastly we are going to show you the pattern you need to print a sum and its answer to the screen.
Computers are used to process data. All data is made up of numbers. Yes, really! Everything is just a bunch of numbers to a computer. These are the only things they understand.
We are going to explain how numbers are used in Go programs. Then we are going to show you how to do type sums in Go.