Freimann, Guggisberg: A collection of programming exercises
Topic outline
-
Authors: Philipp Gressly Freimann (BBW, Switzerland) | Martin Guggisberg (R.I.P.)
Adaptation: Visvanath Ratnaweera (EduNET.LK)
Assisted by: Sanduni Fernando and Pramod Bandaranayake (students at OUSL)-
About this course, preface, the structure of this course, how to learn and guidelines for teachers
-
Place general questions in this forum. The specific questions and comments related to the exercises belong to their respective pages.
-
-
Expressions are buit from constants and variables combining them through operators. For example x + len("Hello, World!") -2. This is a fundamental building block of all universal computing languages. In this chapter we learn to construct them.
-
A program needs statements to do any task, example print("Hello, World!"). There are different kinds of statements, the most common being the assignment, x = 2000 + j, for example. You can write them just one after the other and the computer will execute them in sequence. In this chapter we look at different types of statements and experience what they do in sequence.
-
In addition to selection, the loop (also called repetition or iteration) is fundamental to the order in which the commands are processed, called the control flow. The common keywords are do, for, while, until.
-
Receive a grade
-
Receive a grade
-
Receive a grade
-
Receive a grade
-
Solution to 4-1 Repeat 10 time Page
-
Receive a grade
-
Receive a grade
-
Solution to 4-2 Hundred square numbers Page
-