1 / 37

Introduction to Programming

Introduction to Programming. Lecture No. 1. Program. “A precise sequence of steps to solve a particular problem”. Critical Skills. Analysis Critical Thinking Attention to Detail. Design Recipe. To design a program properly, we must: Analyze a problem statement, typically

Download Presentation

Introduction to Programming

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.

E N D

Presentation Transcript


  1. Introduction to Programming Lecture No. 1

  2. Program “A precise sequence of steps to solve a particular problem”

  3. Critical Skills • Analysis • Critical Thinking • Attention to Detail

  4. Design Recipe To design a program properly, we must: • Analyze a problem statement, typically expressed as a word problem • Express its essence, abstractly and with examples • Formulate statements and comments in a precise language • Evaluate and revise the activities in light of checks and tests

  5. PAY ATTENTION TO DETAIL • These skills are useful for anybody • All assignments in this course should follow the these guidelines

  6. Computers are STUPID

  7. Humans are even more…….

  8. Think Reuse

  9. Area of the Ring Area of Outer Circle = Area of the Ring

  10. Think Reuse • Think User Interface • Comments liberally

  11. Logical Error Lewis Carol: “Through the Looking Glass” “Twas brillig, and the slithy toves Did gyre and gimble in the wabe “

  12. Course Policy Quizzes : 10 % One Hour Tests : 30 % Lab : 5% Assignments : 5% Project : 5 % Final Test : 45%

  13. Books • C++ by Robert Lafore • Deitel & Deitel :– C++ How to Program • Kernighan and Ritchie:- The C Programming Language

  14. Books • Reference Books (very important part) • Learning C by Neill Graham • C++, How to Program by Deitel & Deitel • Thinking in C++ by Bruce Eckel • www.cprogramming.com • www.cplusplus.com • www.howstuffworks.com • www.whatis.com

  15. Course Objectives Objectives of this course are three fold • To appreciate the need for a programming language • To introduce the concept and usability of the structured programming methodology • To develop proficiency in making useful software using the C language

  16. Course Contents To achieve our first two objectives we will be discussing • Basic Programming constructs and building blocks • Structured programming • Structured flowcharts, pseudo-code

  17. Course Contents • History of C Language • Variables and expressions in C • Control structures and functions • Arrays and Pointers • Dynamic memory Allocation

  18. Course Contents • File handling • Structures and Unions • Flavor of Object oriented programming • Sockets

  19. Books • Text Books • C++ by Robert Lafore • How to Program – C by H.M. Dietel / P.J. Deitel • The C Programming Language by Brian W. Kernighan, Dennis M. Ritchie

  20. Policies • Bring your own calculator, pen paper etc.. • You will not be allowed to borrow anything from anyone during any test • Must write your name and reference number (Merit No or Regn No) in a test • No late work will be accepted (unless arrangements have been made in advance) • Ask questions; participate actively in class • You are allowed to talk to instructor only

  21. Policies • You are responsible for what is covered in class – even if you don’t show up • Deficiency in attendance may lead to termination or relegation • You are encouraged to help each other with your homework assignments – but you must turn in your own work • If you are found to be cheating, you will fail at least the assignment / test and perhaps the entire class

  22. Policies • If you have any learning disabilities or special needs, please let me know in advance through email or personal meeting • Check your email regularly for messages • Quizzes are unannounced

  23. Contacts • Office: • Faculty Block (Room # 101) Phone 051- (yet to come) • Office Hours: • Monday 1000 – 1200 hrs • email: • dr.raihan@niit.edu.pk • Exceptional meeting: Give me an email and get time.

  24. Course Web Page • http://www.niit.edu.pk/~dr.raihan • For CR: Please make a Yahoo/msn or Google group! • Collect and send me the email addresses of all students.

  25. A Useful Thought • Human beings are such small creatures, aren’t they? • So don’t be too worried about everything • Treasure every moment, do what you wish to do • Broaden your view, broaden your mind, • Don’t worry too much about things that are bothering you, • Do treasure your life, live safely and peacefully • Always be happy to welcome the coming of the new day,,,, enjoy the sunshine.. • Always look at the brighter side of things…..

  26. Questions ? Thank You The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn. --Unknown

More Related