Tutorial 0 (Programmers count from 0)
- Content: Basics of C
- Time: Before the first tutorial of your session
- Venue: Virtual
- Classworks: None (However, try the self-tests out)
- Homeworks: 3 Programming Assignments
- Homework Deadline: 27 Sep 2024 (Fri) 18:00
But we highly recommend you to finish the homework before your Tutorial 1
- Understand basic C syntax and do simple control flows
- Knows how to run your C program
- Introduce you to programming concepts if you are not familiar yet
Not too Important:
Your first C program
Basic Concepts of Programming
Concepts that are less important but are still worth a quick read before moving on to the next part are marked with
*
We will actually rediscuss these in your first tutorial, but please learn about them early, especially if this is the first time for you to write program.
-
- Arithmetic Operators
- Compound Assignment Operators
- Relational Operators
- Logical Operators
- Self-Tests (Intentionally before Increments and Decrements)
- Increments and Decrements*
-
- Rules on variable naming, booleans, standard integers, casting, and
const
keyword
- Rules on variable naming, booleans, standard integers, casting, and
-
if - else if - else
switch
while
do while
for
break
andcontinue
- Self Test (Intentionally before Scope)
- Scope*
To further support your self-learning process, we provided some self-tests at the end of each materials to check your understanding.
Note: To paste inputs/commands into the terminal, you can type Ctrl + V
Note: If you copy an input into a terminal, Programiz may sometimes re-output your input, this is normal.
Note: If your code runs indefinitely and does not stop, you can stop it by typing Ctrl + C
Please submit these homeworks before 27 Sep 2024 (Fri) 18:00
Submission Method: Github Classroom
Please first accept the assignment on Github Classroom: https://classroom.github.com/a/KiL_n4Dy and the click the link to your working repository. Details of the submission will later be given there (note that the picture below is just for your reference, it is not your workspace link and the due date is wrong).
You can see the submission guidelines on the README shown below the file list.