Welcome to CSE1002.

Slides:



Advertisements
Similar presentations
C language was developed in early 1970s by Dennis Ritchie at Bell Laboratories to implement the UNIX operating system on the PDP-11 manufactured by DEC.
Advertisements

CSE 105 Structured Programming Language (C)
Three types of computer languages
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Team Badass.  Dennis M. Ritchie  1967 He became an employee at Bell Labs  Mid 1960s BCPL was developed by Martin Richards for the Multics Project 
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
Introduction CSE 1310 – Introduction to Computers and Programming
CS 355 – Programming Languages
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
CSC-115 Introduction to Computer Programming
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
King Saud University College of applied studies and community services CSC 1101 Computer Programming I Lecture 2.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Agenda Computer Languages How to Write a Simple C Program
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Course Instructor: Hira Farman Course : BY:HIRA FARMAN.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Introduction to C Programming Language. History of C  C was evolved by Dennis Ritchie at AT&T Bell Laboratories in early of 1970s  Successor of: ALGOL.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Evolution of C and C++ n C was developed by Dennis Ritchie at Bell Labs (early 1970s) as a systems programming language n C later evolved into a general-purpose.
Introduction to computer programming
Introduction CMSC 202 Fall Instructors Mr. Ryan Bergeron – Lecture Section 01 Tues/Thu 1:00 – 2:15 am, Sondheim 111 – Lecture Section 04 Tues/Thu.
The language focusses on ease of use
Lecture 1b- Introduction
Component 1.6.
UMBC CMSC 104 – Section 01, Fall 2016
Prof: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2017
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
NOCTI Study Guide #2.
PROGRAMMING LANGUAGES
CSCI-235 Micro-Computer Applications
Key Ideas from day 1 slides
Lecture 1: Introduction to JAVA
C Programming Hardik H. Maheta.
C Language VIVA Questions with Answers
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Intro to Programming Week # 1 Hardware / Software Lecture # 2
Getting Started with C.
Prof: Dr. Shu-Ching Chen TA: Samira Pouyanfar Hector Cen Fall 2017
Introduction to C Programming Language
' C ' PROGRAMMING SRM-MCA.
Introduction CSE 1310 – Introduction to Computers and Programming
Choice of Programming Language
CSCI/CMPE 3334 Systems Programming
INTRODUCTION c is a general purpose language which is very closely associated with UNIX for which it was developed in Bell Laboratories. Most of the programs.
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANSI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Computer science By/ Midhat Mohiey. Introduction to Programming using C ++ 2.
TRANSLATORS AND IDEs Key Revision Points.
Learning to Program in Python
(Course Introduction)
Topics Introduction Hardware and Software How Computers Store Data
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
Programming.
Introduction to Computer Programming
Introduction to Computer Programming
Tonga Institute of Higher Education IT 141: Information Systems
C Programming Language
Tonga Institute of Higher Education IT 141: Information Systems
Chapter 1 Introduction to Programming
Presentation transcript:

Welcome to CSE1002

About the Course A lab only course for problem solving and coding skill development What is Skill? How does it differ from knowledge and information? Painting, carpentry, welding, singing, dancing, swimming etc are skills How to gain it? Can be obtained only through continuous practice

Evaluation Continuous Solving problems in class – 10% Home works – 30% Assessments (Five) – 40% Challenging task (One or Two) – 20%

Rubrics for Evaluation Understanding/ Defining the Problem Developing a logic to Solve the Problem Developing an appropriate pseudocode/ flowchart Usage of Coding Styles Choosing appropriate constructs/ data structure/ proper modularization of code Execution of code

About the Teacher

Problem Solving Steps – A Recap

Why did We Learn Python? Easy to learn Language with simple rules Good for beginners Code is readable Less development time No memory management Great support for building web apps Dynamic language and no type checking

Limitations of Python Python is not a good choice for: Memory intensive and computation intensive tasks Embedded Systems where processor has limited capacity For graphic intensive 3D game that takes up a lot of CPU Applications that demand concurrency and parallelism Developing mobile apps Design restrictions Interpreted language and is slow compared to C/C++ or Java

Why to learn more languages? Similar to why a carpenter has more than just a hammer in his/her toolbox Every programming language has its positive and negative points One language cannot do everything That is why there are many languages; some are fantastic for some things Eg: C/C++ is typically the benchmark for speed and memory usage, and some languages provide strengths elsewhere (Eg: Python is very easy to pick up)

Transiting from Python to C/C++ Will not be so hard There are quite a few syntax differences between the two languages Only way to learn a new programming language is by writing programs in it Dennis Ritchie

History of C Born at AT & T Bell Laboratory of USA in 1972 Many of C’s principles and ideas were derived from the earlier language B Ken Thompson was the developer of B Language C was written by Dennis Ritchie http://www.nytimes.com/2011/10/14/technology/dennis-ritchie-programming-trailblazer-dies-at-70.html?_r=0 C language was created for a specific purpose i.e designing the UNIX operating system (which is currently base of many UNIX based OS) Quickly spread beyond Bell Labs in the late 70’s because of its strong features

About Dennis Ritchie Born September 9, 1941 Known for ALTRAN, B, BCPL, C, Multics, Unix Won Turing Award in 1983 Developed C language which is widely used developing, operating systems, compiler, and embedded system development, Assemblers, Text editors, Print Spoolers, Network drivers databases etc and its influence is seen in most modern programming languages Died on October 12, 2011

 Features of C language Portability - C Programs can run on any compiler with little or no modification Low level features: C provides low level features and is closely related to lower level assembly Languages Modular programming - software design technique that increases the extent to which software is composed of separate parts, called modules Has many successor languages which are designed to look like C, e.g., C++, C#, Objective-C, Java, JavaScript, PHP and Perl.

C is a structured programming language Divides the large problem in to smaller modules called functions or procedures Each function or module handles the particular task and the collection of all the functions is called a program, which solves the large problem Easier to modify and debug

Modularity in Technology and Management  Product systems are deemed “modular” They can be decomposed into a number of components that may be mixed and matched in a variety of configurations Components are able to connect, interact, or exchange resources Plugs and plug points are independent, may be manufactured even by different companies

Difference between Python and C C programs – Compiled Python programs – Interpretered Compiler Interpreter Takes entire program as input and generate a output file with object code Takes instruction by instruction as input and gives an output. But does not generate a file Errors are displayed after entire program is checked Errors are displayed for every instruction interpreted (if any)

Variable Declaration in C In C, it is mandatory to do variable declaration We say variable's type, whether it is an integer (int), floating-point number (float), character (char) etc Syntax is type of variable, white space, name of variable semicolon Eg: int number;

White spaces and Intendation No problem of difference between white space and tab in C (Happy!) Block of code in C need not be intended as in Python In C, Curly braces are used for giving a block of code Eg: Block of code in ‘C’ { ----- }