Introduction |
None |
General concepts |
Overview of course resources, complete
survey, install IDE |
HelloWorld |
Introduction |
First Program |
- compilation, execution - basic C#
syntax - Write , WriteLine |
FirstProgram |
Introduction |
First Program |
- Write , WriteLine - escape sequences |
Variables |
FirstProgram |
DataTypes and
Variables |
- datatypes (string ,int ,float ,double ,decimal ) -
string interpolation- variable declaration, assignment -
operators: + - * / % -
compound assignment: += -= *= /= %= -
“read-only” example with explicit cast |
Casting |
Variables |
Operators |
- operators: + - * / % -
string interpolation - implicit and explicit cast |
UserInput |
Variables |
Reading and
Displaying |
Reading input from user - Parse method - ReadLine() |
Rectangle |
Variables |
Introduction to
Objects |
Implementing a class with attributes and
methods - getters, setters - implementing other methods |
PreciseRectangle |
Rectangle |
Introduction to
Objects |
Extending a class, writing a class from
scratch - attributes, methods - constants |
ClassDiagram |
Rectangle |
Introduction to
Objects |
Practice reading and creating a UML class
diagrams |
ConstructorToString |
PreciseRectangle |
Advanced Objects |
Writing a class with custom constructors
and ToString() |
Static |
Rectangle |
Static |
static classes, static class members |
ChemicalElements |
Rectangle |
Static |
static methods and method calls in
non-static class |
Booleans |
FirstProgram |
Decisions and
Decision Structures |
Evaluating Boolean expressions - truth
tables - operators: == ,!= ,< ,> ,<= ,>= ,&& ,\|\| ,! - evaluation
of expressions - precedence |
If |
Booleans |
if, if-else and
Nested if Statements |
Reading and writing if statements -
if , if-else ,
if-else-if -
using %
operator to determine parity |
IfAndSwitch |
If |
Switch
Statements |
Using switch, choosing between if and
switch - switch syntax -
convert: if ⬄
switch -
ternary conditional operator (optional) |
IncrementDecrement |
If |
Loops |
- operators: ++ , -- - simple
while
loop |
While |
IncrementDecrement |
Loops |
- operators: ++ , -- - Boolean
expressions - string interpolation - implementing while loops -
infinite loops - user I/O, Parse |
DoWhile |
While |
Loops |
- do while
loops - while loops -
TryParse , user I/O |
ValidatingInput |
While |
Loops |
using TryParse and validating user
input - while loop and
TryParse - if , switch - ToUpper() ,
ToLower() -
char
type - Console.ReadKey() :
assumed unknown, introduced in the lab |
For |
ValidatingInput |
For
Loops |
while loops ⬄ for loops; using for loops
(incl. validation); for with continue, break |
ArrayBasics |
Variables |
Arrays |
- declaring and initializing arrays -
get and set array values - array Length property - (optional) loop over
an array |
Foreach |
ArrayBasics |
Foreach |
Using foreach loop |
GradeCalculator |
- |
- |
Looping and collecting data from
user. |
ArrayOperations |
ArrayBasics, For |
Arrays |
Displaying, counting, and finding values;
nested loops and arrays |
AdvancedArrays |
ArrayBasics, Static, Foreach |
Arrays |
(long!) Implementing array methods to find
first/last index, min/max, etc. |
Char |
Variables,
If |
? |
char ⬄ int; comparing characters, string
comparison |
Random |
ArrayBasics, While |
Random |
Working with Random class |