Professional Documents
Culture Documents
Fundamentals of Programming Lab 2: Dr. Syed Saif Ur Rahman
Fundamentals of Programming Lab 2: Dr. Syed Saif Ur Rahman
Lab 2
Dr. Syed Saif ur Rahman
F
u
n
d
a
m
e
n
t
a
l
s
o
f
P
r
o
g
r
a
m
m
i
n
g
Lab 2 Task 1
Starting C Development Using Eclipse
http://comprograddicts.blogspot.com/2014/08/starti
ng-c-development-using-eclipse.html
2
F
u
n
d
a
m
e
n
t
a
l
s
o
f
P
r
o
g
r
a
m
m
i
n
g
Lab 2 Task 2
Write a program that prints the size of the
following datatype variables
char
int
float
long
double
Hint: sizeof() function takes variable name as
input and returns its size
3
F
u
n
d
a
m
e
n
t
a
l
s
o
f
P
r
o
g
r
a
m
m
i
n
g
Lab 2 Task 3
Write a program that ask user to input marks for
following courses:
Introduction to Computing
Fundamentals of Programming
Composition and Comprehension
Islamiat and Pakistan Studies
Calculas and Analytical Geometry
Program should output following:
Total marks
Average
4
Home Assignment Lab 2
5
F
u
n
d
a
m
e
n
t
a
l
s
o
f
P
r
o
g
r
a
m
m
i
n
g
Using Notepad++ for C programming
Write following codes yourself from text book
Fig 2.5 Page 28
Fig 2.13 Page 39
6