0% found this document useful (0 votes)
60 views

Programming Fundamentals: Lecture No. 1

This document provides information about a professor's background and qualifications. It includes details about the professor's PhD from University Technology Malaysia, with a thesis titled "Self Adaptive Resource Aware Routing Protocol in Delay Tolerant Network". It also lists the professor's 25 publications, including 11 impact factor publications and 12 indexed journal publications. Further down, it outlines the professor's post-doctorate work and experience teaching computer science courses and working in software development roles.

Uploaded by

Aleeza Anjum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Programming Fundamentals: Lecture No. 1

This document provides information about a professor's background and qualifications. It includes details about the professor's PhD from University Technology Malaysia, with a thesis titled "Self Adaptive Resource Aware Routing Protocol in Delay Tolerant Network". It also lists the professor's 25 publications, including 11 impact factor publications and 12 indexed journal publications. Further down, it outlines the professor's post-doctorate work and experience teaching computer science courses and working in software development roles.

Uploaded by

Aleeza Anjum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 36

Programming Fundamentals

Lecture No. 1
Short Profile
• Ph.D (Computer Networks):
University Technology Malaysia.
• Thesis Title:
Self Adaptive Resource Aware Routing Protocol in Delay
Tolerant Network
• Number of Publications (25)

2
PhD Thesis
SELF ADAPTIVE RESOURCE AWARE
ROUTING PROTOCOLS FOR DELAY TOLEARNT NETWORK
Publications
Publication (Impact
11
Factor)
Publication (Indexed
12
Journals)
Publication (Conference) 02
Post-Doctorate
CONTEXT CENTRIC RESOURCE
AWARE ROUTING PROTOCOLS FOR DELAY TOLERANT NETWORKS

 Writing / Delivering Research Talks

 Taught Computer Science Courses

 Writing Proposals for Funding


Work Experience
• Tampoi Enterprise Sdn.Bhd.johor Bahru, Malaysia (Jan 2015 – April
2015)
Develop and maintain and give trainings for ongoing
modules based on user requirements.

• Digital Growth Snd.Bhd Malaysia (2010 –2011)


SCJP 6.0 Java Certification Course for university
graduates.

• National Institute of Electronics Islamabad (2006-2010)


Training Manager and Software Developer In Advanced Databases
Computer ?
Program
• A precise sequence of steps to solve a
particular problem

• Steps of add two numbers.

• Steps to get BS.


Computer Program ?
Computer Program
• Sequenced/Collection of instructions given to
computer to solve a particular problem.

• Program to automate electric appliances

• Program for pay slips.

• Program to automate employees data.


Language ?
Types of Languages ?

• Traditional Languages
• Computer Languages
Traditional Languages ?
• English
• Pashto
• Urdu
• Punjabi
Computer Language ?
Types of Computer Language
• Low Level Language
• High Level Language

Low Level Language


• Directly map the instructions
into processor understandable
format.
• Numerical Codes.
• Need to memorize.
Types of Low level Language
• Machine Language
• Assembly Language
Machine Language
• Numerical Codes.
• Need to memorize.
• Add two numbers need to
memorize:
• Machine code for add operator and binary numbers.
Assembly Language
• Assembly language is a more human
readable view of machine language.
• One to One relationship.
• Assembler. 
High Level Language
• Human readable.
• C++, Java, Visual Basic, PHP etc.
• Compiler
High Level Vs Assembly Vs Machine
Language
Layered representation
Achievement
We have understood concept of
computer programming languages
What is C ?

• C is a programming language developed at AT


& T’s Bell Laboratories of USA in 1972.
• Dennis Ritchie.
• Begin to replace languages such as FORTRAN
or PL/I, or the newer ones like Pascal and APL
Why learn C ?

• JAVA, C#, Visual languages use concept of


classes, objects, inheritance, polymorphism,
templates, exception handling, references,
etc. do deal with apart from knowing the
actual language elements.
• C is base to learn advanced level languages.
• Windows, UNIX, Linux is still written in C.
• Device drivers written is C.
• Appliances are getting smarter.
• Due to speed.
Character set
Keywords
Writing first program: Hello World

• #include <stdio.h>
• int main()
• {
• Printf(“Hello World”);
• Return 0;
• }
Data and Data Types
1. Int 2
2. Short 2
3. Long 4
4. Float 4
5. Double 8
6. Char 1
Constants variable and
keywords
• Constant
• Variables
• Keywords
What is Constant ?
• A value that cannot be changed during the
execution of a program is called as constant.
• How to declare constant in C program ?
• data type, const name_of_constant
• const data type name_of_constant
• Int const GRAVITY = 6.67
• Const int PI = 3.14
• Use UPPER CASE to name constants
Sample Program to demonstrate
Constant
• #include<stdio.h>
• #include<conio.h>
• Int main()
• {
– int const PI = 3.14;
– const int GRAVITY= 9.7;
• }
Placeholders
• Output place holder
• Input place holder

• Type of values that will be displayed or used to


receive input.
• Common placeholders are:
– Data type..............Placeholder
int.......................... %d
char....................... %c
double................... %lf
float....................... %f
string.................... %s
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
const float pi= 3.14;
float const gravity=9.7;
int int_value = 10;
char ch = 'a';

printf("The value of PI is %lf \n",pi);


printf("The integer value is %d \n",int_value);
printf("The chracter value is %c \n",ch);

getche();
return 0;

}
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
const float pi= 3.14;
float const gravity=9.7;
int int_value = 10;
char ch = 'a';
printf("Enter value of int value");
scanf("%d",&int_value);

printf("The integer value is %d \n",int_value);

getche();
return 0;
}
Placeholder: address variable
#include<stdio.h>
#include<conio.h>
int main()
{clrscr();
const float pi= 3.14;
float const gravity=9.7;
int a, b, c;
a=b=c=1;

printf("\n");
printf("%x",&b);
printf("\n");
printf("%x",&c);
getche();
return 0; }
Achievement
We have understood Placeholders, constants,
keywords and character set
Variables
• A value that can be changed during the
execution of a program is called as constant.

• Declare
– data_type name_variable;
– Int a;
– Int a, b, c;
– Int a, b, c;
END

You might also like