Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept.

Slides:



Advertisements
Similar presentations
PROBLEM SOLVING TECHNIQUES
Advertisements

Prof. B. I. Khodanpur HOD – Dept. of CSE R. V. College of Engineering
Flowcharts Amir Haider Lecturer NFC IEFR. Introduction The flowchart is a means of visually presenting the flow of data through an information processing.
This set of slides is provided by the author of the textbook1 Introductory Topics l Computer Programming l Programming Life-Cycle Phases l Creating an.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
PRE-PROGRAMMING PHASE
C programming Language and Data Structure For DIT Students.
Introduction to C language
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
CHAPTER 1 Overview of Programming and Problem Solving.
CSC-115 Introduction to Computer Programming
Language C (1) By Randa. Generalities: Types of programmes: -operating system ”système d’exploitation” like Windows XP, Windows 98, Unix, Linux… -programmes.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
King Saud University College of applied studies and community services CSC 1101 Computer Programming I Lecture 2.
Software Life Cycle What Requirements Gathering, Problem definition
Sharda University P. K. Mishra (Asst.Prof) Department of Computer Science & Technology Subject Name: Programming Using C Sub Code: CSE-106 Programming.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 12/4/1435 h Lecture 2 Programs and Programming Languages.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Structured Programming (4 Credits) HNDIT Week 2 – Learning Outcomes Design an algorithmic solution for simple problem such as computation of a factorial,
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
MAHENDRAN. Session Objectives Session Objectives  Discuss the Origin of C  Features of C  Characteristics of C  Current Uses of C  “C” Programming.
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.
Intro. to Computer Programming Eng. Nehal A. Mohamed Spring Semester-2016.
Lecture 3 Computer Programming -1-. The main steps of program development to solve the problem: 1- problem definition : The problem must be defined into.
Pseudocode (pronounced SOO-doh-kohd)  is a detailed yet readable description of what a computer program or algorithm must do, expressed in a formally-styled.
Integrating Algorithms and Coding into the Mathematics Classroom
Chapter One Problem Solving
Basics of Computer A Computer is Electronic device that can
Programming Languages
Unit 3: ALGORITHMS AND FLOWCHARTS
Chapter One Problem Solving
Computer Programming.
Flowcharting Guidelines
Be A programmer in Steps
System Design.
Intro to Programming Week # 1 Hardware / Software Lecture # 2
C-Character Set Dept. of Computer Applications Prof. Harpreet Kaur
Algorithms An algorithm is a sequence of steps written in the form of English phrases that specific the tasks that are performed while solving the problem.It.
Lecture 2 Introduction to Programming
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Algorithm Algorithm is a step-by-step procedure or formula or set of instruction for solving a problem Its written in English language or natural language.
An Introduction to Visual Basic .NET and Program Design
BASIC PROGRAMMING FOR DATA ANALYSIS
Unit# 9: Computer Program Development
Tejalal Choudhary “Computer Programming” Fundamentals of “C”
VISUAL BASIC – CHAPTER ONE NOTES An Introduction to Visual Basic
(Course Introduction)
Programming Fundamentals (750113) Ch1. Problem Solving
Chapter 2- Visual Basic Schneider
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Problem Solving Skill Area 305.1
POWERPOINT PRESENTATION
Programming Fundamentals (750113) Ch1. Problem Solving
Introduction to Computer Programming
Software Development Process
C programming Language
ICT Gaming Lesson 2.
Programming Fundamentals (750113) Ch1. Problem Solving
Chapter 2: Input, Processing, and Output
C – Programming Language
WJEC GCSE Computer Science
Basic Programming Lab C.
Presentation transcript:

Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept. tejalal.choudhary@sdbct.ac.in

Contents Flow Chart Algorithm History of “C” Programming Language Character set Comments Keywords Compilation and execution

Algorithm An algorithm is a sequence of instructions to solve a particular problem in finite number of steps. In mathematics and computer science, an algorithm is a self-contained step-by-step set of operations to be performed. It is a problem solving technique. Algorithm: Addition of two numbers Step 1 : START Step 2 : DECLARE VARIABLES Step 3 : READ VALUE OF VARIABLES Step 4 : CALCULATE SUM AS SUM = A+B Step 5 : DISPLAY SUM Step 6 : END

Flow Chart It is a diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem. Flowcharts are drawn in the early stages of formulating computer solutions. Flowcharts facilitate communication between programmers and business people. The flowchart is drawn according to defined rules and using standard flowchart symbols prescribed by the American National Standard Institute, Inc.

Flow Chart Symbols

Sample flow chart

Flow chart for sum of 2 numbers

History of C C is a programming language developed at AT & T’s Bell Laboratories of USA in 1972. It was designed and written by Dennis Ritchie. It is a general purpose programming language used in development of system software and application software.

Character Set Any alphabet, digit or special symbol used to represent information Alphabets Digits Symbols

Comments Single line //this is a comment Multi line /* this is a comment */

Keywords Also known as reserved words Meaning is already known to compiler Can not be used as user defined names