SlideShare a Scribd company logo
PROGRAMMING FUNDAMENTALS
BS SE/CS – 1st Semester
Credit Hours : 3-1
1
Department of Computer Science/IT
Sarhad University of Science and Information Technology, Peshawar
CS 116- PROGRAMMING FUNDAMENTALS
WEEK: 01
LECTURE: 01- LAB
LEVEL: BS SE/BS CS- 1ST SEMESTER
2
COURSE INSTRUCTOR: ADAM KHAN (adam.me@suit.edu.pk)
ACCESSED AT : portal.suit.edu.pk
Department of Computer Science/IT
Sarhad University of Science and Information Technology, Peshawar
Text Books:
1. Object-Oriented Programming using C++ by Tasleem Mustafa
2. The C Programming Language, 2nd Edition by Brian W.
Kernighan, Dennis M. Ritchie
Reference Books:
3. C How to Program, 7th Edition by Paul Deitel & Harvey Deitel
4. Problem Solving and Program Design in C++, 7th Edition by
Jeri R. Hanly & Elliot B. Koffman
5. Object-Oriented Programming in C++, 3rd Edition by Robert
Lafore
6. Computer Programming in C/C++ by Muhammad Tariq
Siddiqi, 2006.
7. Let us C++ by Yashavant Kanetkar
Recommended Books
3
Department of Computer Science/IT
Sarhad University of Science and Information Technology, Peshawar
Lecture Outlines
4
• Problem Solving Techniques
• Steps
• Solving Skills
• Problem solving approaches
• Problem solving steps in Programming
• Advantages
• Disadvantages
Department of Computer Science/IT
Sarhad University of Science and Information Technology, Peshawar
Learning Outcomes
5
Students will learn:
• Simple programs / Execution,
• Problems while run the programs, identify the Data, Inputs,
Process, Output.
Department of Computer Science/IT
Sarhad University of Science and Information Technology, Peshawar
PROGRAM TITLE :Write a program To display the name of
ALLAH.
#include<iostream.h>
#include<conio.h>
void main( )
{
cout<< “with the name of ALLAH”<<endl;
getch( );
}
6
Simple Program
Function:
In the above Example.
Only one function main ( ) is used.
With empty parenthesis.
Out Put:
Cout identifies actually an object.
Correspond to standered out put stream.
Stream is an abstraction that refers to a flow of data.
‘<<’ is called the Insertion or put to operator.
Preprocessor Directories:
Tell the compiler to insert another file into source file.
7
Simple Program
• Structure of a C ++ Program:
• Every C ++ program consists of one or more functions.
• Each function consists of a header and a block.
• Header consists of the function name followed by an optional
list of arguments enclosed in parenthesis.
• Header of main function is as follows—void main()
• Declaration part contains declaration of all the variables
• Both statement part and declaration part are enclosed in a
single pair of braces ({ }).
8
Simple Program
Phases of C++ Programs:
1. Edit
2. Preprocess
3. Compile
4. Link
5. Load & Execute
Loader
Primary
Memory
Program is created in
the editor and stored
on disk.
Preprocessor program
processes the code.
Loader puts program
in memory.
CPU takes each
instruction and
executes it, possibly
storing new data
values as the program
executes.
Compiler
Compiler creates
object code and stores
it on disk.
Linker links the object
code with the libraries,
creates a.out and
stores it on disk
Editor
Preprocessor
Linker
CPU
Primary
Memory
.
.
.
.
.
.
.
.
.
.
.
.
Disk
Disk
Disk
Disk
Disk
Phases of C++ Program
Compiler
Getting Started
Getting Started
Getting Started

More Related Content

PPTX
Csc240 -lecture_3
PDF
An introduction to programming
PPT
Overview of c++
PPT
Basic structure of C++ program
PPT
01 introduction to cpp
PPT
Lecture01
PDF
C Programming From Problem Analysis To Program Design 6th Edition D S Malik
PPTX
Introduction to C Language (By: Shujaat Abbas)
Csc240 -lecture_3
An introduction to programming
Overview of c++
Basic structure of C++ program
01 introduction to cpp
Lecture01
C Programming From Problem Analysis To Program Design 6th Edition D S Malik
Introduction to C Language (By: Shujaat Abbas)

Similar to Week 1 Lecture 1 LAB Weka lecture for machine learning (20)

DOCX
Comso c++
PPTX
Begin with c++ Fekra Course #1
PPTX
Whole c++ lectures ITM1 Th
PDF
C++ Programming From Problem Analysis to Program Design 8th Edition Malik Sol...
PDF
C++ Programming From Problem Analysis to Program Design 8th Edition Malik Sol...
PPT
2621008 - C++ 1
PDF
Computer Programming With C Kunal Pimparkhede
PDF
Object Oriented Programming With C Sharma A K
PPTX
Introduction to Programming
PDF
C Programming Program Design Including Data Structures 5th Edition D. S. Malik
PPT
C PLUS PLUS FOR BS ELECTRICAL 2ND SEMSTERLecture01.ppt
PDF
Prog1-L1.pdf
PPTX
Object oriented programming 11 preprocessor directives and program structure
PPTX
l1-introduction_to_computers_and_c_programming.pptx
PDF
C Programming Program design including data structures 5ed. Edition Malik D.S.
PPTX
Lec01-02 (Topic 1 C++ Fundamentals).pptx
PDF
C Programming Program Design Including Data Structures 5th Edition D. S. Malik
PDF
C Programming Program design including data structures 5ed. Edition Malik D.S.
PDF
Chapter 1 - Basic concepts of programming.pdf
PDF
Solutions manual for c++ programming from problem analysis to program design ...
Comso c++
Begin with c++ Fekra Course #1
Whole c++ lectures ITM1 Th
C++ Programming From Problem Analysis to Program Design 8th Edition Malik Sol...
C++ Programming From Problem Analysis to Program Design 8th Edition Malik Sol...
2621008 - C++ 1
Computer Programming With C Kunal Pimparkhede
Object Oriented Programming With C Sharma A K
Introduction to Programming
C Programming Program Design Including Data Structures 5th Edition D. S. Malik
C PLUS PLUS FOR BS ELECTRICAL 2ND SEMSTERLecture01.ppt
Prog1-L1.pdf
Object oriented programming 11 preprocessor directives and program structure
l1-introduction_to_computers_and_c_programming.pptx
C Programming Program design including data structures 5ed. Edition Malik D.S.
Lec01-02 (Topic 1 C++ Fundamentals).pptx
C Programming Program Design Including Data Structures 5th Edition D. S. Malik
C Programming Program design including data structures 5ed. Edition Malik D.S.
Chapter 1 - Basic concepts of programming.pdf
Solutions manual for c++ programming from problem analysis to program design ...
Ad

More from JavedKhan524377 (8)

PPTX
Deep learning intro and examples and types
PPTX
Linear Search for design and analysis of algorithm
PPTX
Greedy algorithm for design and analysis
PPTX
Binary Search Tree for design and analysis
PDF
Software Engineering Book for beginnerss
PPTX
Software tetsing paper related to industry
PPTX
lecture_for programming and computing basics
PPT
chapter_3_8 of software requirements engineering
Deep learning intro and examples and types
Linear Search for design and analysis of algorithm
Greedy algorithm for design and analysis
Binary Search Tree for design and analysis
Software Engineering Book for beginnerss
Software tetsing paper related to industry
lecture_for programming and computing basics
chapter_3_8 of software requirements engineering
Ad

Recently uploaded (20)

PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Sports Quiz easy sports quiz sports quiz
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Insiders guide to clinical Medicine.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life
O7-L3 Supply Chain Operations - ICLT Program
Cell Structure & Organelles in detailed.
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
GDM (1) (1).pptx small presentation for students
Sports Quiz easy sports quiz sports quiz
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Computing-Curriculum for Schools in Ghana
Insiders guide to clinical Medicine.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
VCE English Exam - Section C Student Revision Booklet
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
01-Introduction-to-Information-Management.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
TR - Agricultural Crops Production NC III.pdf
Final Presentation General Medicine 03-08-2024.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Renaissance Architecture: A Journey from Faith to Humanism

Week 1 Lecture 1 LAB Weka lecture for machine learning

  • 1. PROGRAMMING FUNDAMENTALS BS SE/CS – 1st Semester Credit Hours : 3-1 1 Department of Computer Science/IT Sarhad University of Science and Information Technology, Peshawar
  • 2. CS 116- PROGRAMMING FUNDAMENTALS WEEK: 01 LECTURE: 01- LAB LEVEL: BS SE/BS CS- 1ST SEMESTER 2 COURSE INSTRUCTOR: ADAM KHAN (adam.me@suit.edu.pk) ACCESSED AT : portal.suit.edu.pk Department of Computer Science/IT Sarhad University of Science and Information Technology, Peshawar
  • 3. Text Books: 1. Object-Oriented Programming using C++ by Tasleem Mustafa 2. The C Programming Language, 2nd Edition by Brian W. Kernighan, Dennis M. Ritchie Reference Books: 3. C How to Program, 7th Edition by Paul Deitel & Harvey Deitel 4. Problem Solving and Program Design in C++, 7th Edition by Jeri R. Hanly & Elliot B. Koffman 5. Object-Oriented Programming in C++, 3rd Edition by Robert Lafore 6. Computer Programming in C/C++ by Muhammad Tariq Siddiqi, 2006. 7. Let us C++ by Yashavant Kanetkar Recommended Books 3 Department of Computer Science/IT Sarhad University of Science and Information Technology, Peshawar
  • 4. Lecture Outlines 4 • Problem Solving Techniques • Steps • Solving Skills • Problem solving approaches • Problem solving steps in Programming • Advantages • Disadvantages Department of Computer Science/IT Sarhad University of Science and Information Technology, Peshawar
  • 5. Learning Outcomes 5 Students will learn: • Simple programs / Execution, • Problems while run the programs, identify the Data, Inputs, Process, Output. Department of Computer Science/IT Sarhad University of Science and Information Technology, Peshawar
  • 6. PROGRAM TITLE :Write a program To display the name of ALLAH. #include<iostream.h> #include<conio.h> void main( ) { cout<< “with the name of ALLAH”<<endl; getch( ); } 6 Simple Program
  • 7. Function: In the above Example. Only one function main ( ) is used. With empty parenthesis. Out Put: Cout identifies actually an object. Correspond to standered out put stream. Stream is an abstraction that refers to a flow of data. ‘<<’ is called the Insertion or put to operator. Preprocessor Directories: Tell the compiler to insert another file into source file. 7 Simple Program
  • 8. • Structure of a C ++ Program: • Every C ++ program consists of one or more functions. • Each function consists of a header and a block. • Header consists of the function name followed by an optional list of arguments enclosed in parenthesis. • Header of main function is as follows—void main() • Declaration part contains declaration of all the variables • Both statement part and declaration part are enclosed in a single pair of braces ({ }). 8 Simple Program
  • 9. Phases of C++ Programs: 1. Edit 2. Preprocess 3. Compile 4. Link 5. Load & Execute Loader Primary Memory Program is created in the editor and stored on disk. Preprocessor program processes the code. Loader puts program in memory. CPU takes each instruction and executes it, possibly storing new data values as the program executes. Compiler Compiler creates object code and stores it on disk. Linker links the object code with the libraries, creates a.out and stores it on disk Editor Preprocessor Linker CPU Primary Memory . . . . . . . . . . . . Disk Disk Disk Disk Disk Phases of C++ Program

Editor's Notes