CS 110 Fundamentals of Computer Programming
CS 110 Fundamentals of Computer Programming
1 / 42
Administrative
Office
Room 205-A Faculty Block
Class meets.
Tuesdays, Thursdays, Fridays
Labs
Wednesdays
Communication
lms.nust.edu.pk
Email:
[email protected]
Office hours:
Tuesday 12:00pm or by appointment
Assignments
Sorry! No Exceptions
Quiz
Announced
Unannounced
No best-of quizzes
All quizzes are counted towards the final result
Lab Work
Involves implementation of topics covered in class
Group of 3 to 4 students
General information
Assessment.
1 Theory (75%).
3-4 Assignments (10%).
5-6 Quizzes (15%).
2 OHTs (30%).
ESE (45%).
2 Practical (25%).
12-13 Lab assignments (70%).
Semester project (30%).
9 / 42
Honor Code
11 / 42
Introduction
Source Material
12 /
Introduction
13 /
Introduction
Some examples.
Graphics
Computer Vision
Artificial Intelligence
Robotics
Machine Learning
Data Mining
Data Analytics
Natural Language Processing
User Interfaces
...
14 / 42
Introduction
think "computers and robots are going to take over the world. I
want to befriend them so that my life will be spared."
15 / 42
Introduction
Come to lecture!
Visit course website on LMS.
Utilize the resources we provide you.
Come visit me in Office Hours!
Remember: assignments must be your own work!
Keep up with the assignments
16 / 42
Introduction
Socrastic thinking!
20 / 42
Introduction
Source Material
18 /
Introduction
Why C?
19 / 42
What is programming?
Some definitions.
Why C?
C is designed,
to be compiled using a relatively straightforward compiler,
to provide low-level access to memory,
to encourage cross-platformprogramming
relatively simple
facilitates structured programming
platform independent (Linux, Mac, Windows. . . )
widely used
21 / 42
Introduction
Running a program
Steps.
1 Write it.
code or source code. The set of instructions in a program.
2 Compile it.
compile. Translate a program from one lan gu age to another.
3 Run (execute) it.
output. The messages printed to the user by a program.
22 / 42
Introduction
1 #include <stdio.h>
2
3 i n t main()
4 {
5 p r int f(" H ello world ! \n" ) ;
6 return 0;
7 }
8
Q. What does this code output (print to the user) when you run
(execute) it?
23 / 42