Engee documentation

Basics of Programming in Engee

Description

The course Basics of Programming in Engee is designed to learn the basics of programming in Julia – the main language of Engee. The course introduces students to the following sections: variables and data types, expressions, reading and writing data, arrays, characters and strings, functions, conditional operators, loops, packages.

Each section contains a theoretical part, practical examples and self-study tasks.

Knowledge requirements: completion of the course Welcome to Engee.

Total course time: ~6 hours.

Course program

Variables and data types

Variables, allowed variable names, basic data types are studied: integer, logical, real, complex, character, string, vectors, matrices, as well as data type conversion.

Expressions

The assignment operator, arithmetic operators, logical operators, vector operators with a dot and comparison operators are studied.

Reading and writing data

Functions for displaying data on the screen, formatted output, keyboard input, functions for working with files (opening, reading, writing, closing and deleting files), working with numeric files are studied.

Arrays

One-dimensional and two-dimensional arrays, ranges, operations with arrays, indexing of array elements, functions for working with arrays, binary masks are studied.

Characters and strings

Character and string data types, string operations are studied.

Functions

The creation of functions, the keyword return, usage of tuples in functions, named arguments, standard mathematical functions, scope of variables are studied.

Conditional operators

The if, else and elseif operators, practical examples of usage of conditional operators are studied.

Loops

The for and while loops, the break and continue keywords are studied.

Packages

Installation, connection and loading of packages are studied, an overview of some commonly used Julia packages is given, the Plots.jl, LinearAlgebra.jl packages as well as creating your own packages are studied.