1 / 21

CSE-113: Structured Programming Language

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.

Download Presentation

CSE-113: Structured Programming Language

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.


Presentation Transcript

  1. CSE-113: Structured Programming Language CSE-114: Structured Programming Language Lab Lecture 1 Introductory Class Md.Samsuzzaman Lecture-1

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. 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

  16. A Simple C Code #include <stdio.h> int main() { printf(“Welcome to CSE113\n”); return 0; } Md.Samsuzzaman Lecture-1

  17. 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

  18. 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

  19. Puzzle Time Md.Samsuzzaman Lecture-1

  20. 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

  21. 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

More Related