cse 113 structured programming language l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
CSE-113: Structured Programming Language PowerPoint Presentation
Download Presentation
CSE-113: Structured Programming Language

Loading in 2 Seconds...

play fullscreen
1 / 21

CSE-113: Structured Programming Language - PowerPoint PPT Presentation


  • 378 Views
  • Uploaded on

CSE-113: Structured Programming Language. CSE-114: Structured Programming Language Lab. Lecture 1 Introductory Class. CSE-113. Course Code: CSE-113 Course Title: Structured Programming Language Course Teacher: Md. Samsuzzaman Lecturer ,Dept. of CCE Credit: 3 Lecture: 32. About Class.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'CSE-113: Structured Programming Language' - Anita


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
cse 113 structured programming language

CSE-113: Structured Programming Language

CSE-114: Structured Programming Language Lab

Lecture 1

Introductory Class

Md.Samsuzzaman Lecture-1

cse 113
CSE-113
  • Course Code: CSE-113
  • Course Title: Structured Programming Language
  • Course Teacher: Md. Samsuzzaman

Lecturer ,Dept. of CCE

  • Credit: 3
  • Lecture: 32

Md.Samsuzzaman Lecture-1

about class
About Class
  • Theory Class (CSE -113)
    • Two classes per week:
      • Monday : 9:00 a.m– 10:00 am
      • Tuesday :12.00 pm-1.00 pm
      • Wednesday : 11:00 a.m– 12:00 pm
  • Lab Class: (CSE – 114)
    • Two lab class per week for each student
    • Even Group:
      • Monday: 2:15 pm – 5:00 pm
    • Odd Group:
      • Thursday: 2:15 pm – 5:00 pm

Md.Samsuzzaman Lecture-1

introduce yourself
Introduce Yourself
  • Your name, College name?
  • Why do you study CSE?
  • Why do you know about Computer Science and Engineering?
  • Do you have a computer of your own?
  • Any previous experience on programming?

Md.Samsuzzaman Lecture-1

syllabus
Syllabus
  • Programming concepts; Structured programming language: data types, variables, operators, type of expressions, control structures; Functions and program structures: function basics, parameter passing conventions, scope rules and storage classes, recursion; Header files; Preprocessor; Arrays, String and Pointers; User defined data type: structures, unions, enumeration; Input and output: standard input and output, formatted input and output, file access; Dynamic memory allocation, Variable length argument list; Command line parameters; Error handling; Introduction to Graphics routines.

Md.Samsuzzaman Lecture-1

gist of syllabus 1
Gist of Syllabus (1)
  • Part 1:
    • Introduction of Computer Programming, Programming style, program design.
  • Part 2: Programming Language in C:
    • programming file structure: purpose of .h and .c files,
    • constant, variable and data types,
    • operator and expression, type conversion,
    • decision making, branching and looping,
    • arrays and strings,
    • user defined functions,
    • structures and union, bit field and bit-wise operations,
    • pointer,
    • file management in C,
    • command line arguments,
    • dynamic memory allocation and linked list,
    • preprocessor, low level programming,
    • managing input/output operation.

Md.Samsuzzaman Lecture-1

reference book
Reference Book
  • Text:
    • Programming in ANSI C – Balagurusamy
    • C – How to Program (4th Edition) – Deitel & Deitel
    • C for contest—
  • Other Reference Book:
    • Schaum’s Outlines: Programming with C (2nd Edition) – Byron Gottfried
    • Teach Yourself C (3rd Edition) – Herbert Schildt

Md.Samsuzzaman Lecture-1

course website
Course Website
  • www.cse.pstu.ac.bd/~cse113/
    • Will be updated soon.
    • You will find
      • course lecture
      • Syllabus
      • midterm exam news
      • Results
      • assignments
      • Others…

Md.Samsuzzaman Lecture-1

software required for this course
Software required for this course
  • Windows Environment (any one):
    • Microsoft Visual C++ 6
    • Dev-Cpp
    • Turbo C++ 3 (We should avoid this)

Md.Samsuzzaman Lecture-1

about the course
About the Course

Hardware vs. Software

System Software vs. Application Software

Operating System

What is language? Programming language?

Syntax vs. Semantics?

What should we expect after completion this course?

Md.Samsuzzaman Lecture-1

learning style
Learning Style

This course is practical oriented.

We will give lots of assignments.

(because practice makes a man perfect  )

Memorization will not help you to get a good result.

Copying Code:

Strictly prohibited.

Will be severely punished if you are caught.

Md.Samsuzzaman Lecture-1

description of c
Description of C

12

  • General-purpose language
  • Procedural (= functions + data)
  • Mid-level
  • Relatively small, simple to learn
  • Cross-platform language, single-platform compilers (unlike Java)
  • Char-based

Md.Samsuzzaman Lecture-1

history of c
History Of C
  • Modern language ALGOL 1960s
  • BCPL -1967, System software
  • B -1970, create UNIX OS, Bell Laboratories
  • B and BCPL type less
  • C coming from ALGOL, BCPL and B by Dennis Ritchie
  • Further UNIX was developed by C

Md.Samsuzzaman Lecture-1

why c
Why C?

14

  • Prior to C, two broad types of languages:
    • Applications languages
      • High-level
      • COBOL, etc.
      • Portable but inefficient
    • Systems languages
      • Low-level
      • Assembly
      • Efficient but not portable
  • Goal of C: efficient and portable

Md.Samsuzzaman Lecture-1

why not java c etc
Why not Java, C++, etc.?

15

  • Java is safe and elegant, but slow
  • C++ is unsafe and fast, but highly complex
  • C is unsafe, but succinct and fast
  • C/C++ is still used for:
    • Systems programming
      • Windows, Unix, etc.
    • High-perf back-end servers

Md.Samsuzzaman Lecture-1

a simple c code
A Simple C Code

#include <stdio.h>

int main()

{

printf(“Welcome to CSE113\n”);

return 0;

}

Md.Samsuzzaman Lecture-1

how to run
How to Run

Save a source code with extension “c” or “cpp”. (Ex: first.c)

Compile it and link it

Output: first.exe

Run the program.

Output of the program:

Welcome to CSE102

Md.Samsuzzaman Lecture-1

typing speed not related to this course but important
Typing Speed (Not related to this course but Important)
  • Important for every student in CSE
  • Try to type in grammatical way – Use 10 fingers to type
  • Use software to learn grammatical way of typing
  • Speed:
    • Should be at least 30 WPM (Words per minute)
    • Preferable 35+ WPM.
  • Rewards..
  • Software
    • Ten Thumbs Typing Software
    • Or, any other Typing tutor software

Md.Samsuzzaman Lecture-1

puzzle time

Puzzle Time

Md.Samsuzzaman Lecture-1

puzzle 1 handshake
Puzzle 1: Handshake
  • It is your first day at CSEPSTU. The teacher (SMZ) suggested that it would be a good idea for each student to meet every other student in the class. The teacher said, "When you meet, please shake hands and introduce yourself by name.“
  • If there were 14 student in the class, how many total handshakes were there?
  • Answer: ??

Md.Samsuzzaman Lecture-1

puzzle 3 eggs
Puzzle 3 - Eggs
  • Eight eggs look identical except one is lighter. How can you weigh only 2 times on a balance scale to find out which one is lighter?

Md.Samsuzzaman Lecture-1