CSC 202 Computer Programming What is Program ? Program is a set of instruction that a machine follows. What is Programming? Programming is to make machine.

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
Advertisements

Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1
IT-101 Section 001 Lecture #13 Introduction to Information Technology.
CS0004: Introduction to Programming Introduction to Programming.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
Software Lesson #1 CS1313 Spring Software Lesson 1 Outline 1.Software Lesson 1 Outline 2.What is Software? A Program? Data? 3.What are Instructions?
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Tecnológico de Monterrey Campus Estado de México Multimedia BS2001 MTI Fernando Carlos Rivero Programming Languages Basics.
Introduction to C. A Brief History Created by Dennis Ritchie at AT&T Labs in 1972 Originally created to design and support the Unix operating system.
‘C’ LANGUAGE PRESENTATION.  C language was introduced by Dennis Ritchie..  It is a programming language, which can make a interaction between user and.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1.
Computer science Languages, etc.. Overview For web-applications (HTML, JS) – Designing languages (HMTL, CSS) – Server Languages (PHP, ASP) – Extensions.
 Define a problem  Prepare sequence of instructions for the computer to execute  Verify that the program works as expected.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Introduction COMP104: Fundamentals and Methodology.
Introduction to C Programming. A Brief History u Created by Dennis Ritchie at AT&T Labs in 1972 u Originally created to design and support the Unix operating.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Introduction Lecture 01.
Introduction to C++ Programming Language
EG280 Computer Science for Engineers Fundamental Concepts Chapter 1.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
CS Computer Science I. BCPL was developed in 1967 as a language for writing operating systems and software compilers In 1970, the creators of the.
Computing Systems & Programming ECE Fundamental Concepts Chapter 1 Engineering Problem Solving.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Agenda Computer Languages How to Write a Simple C Program
Lecture 1: Network Operating Systems (NOS) An Introduction.
Course Instructor: Hira Farman Course : BY:HIRA FARMAN.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
C Programming Lecture 3 : C Introduction 1 Lecture notes : courtesy of Woo Kyun and Chang Byung-Mo.
Development & Distribution of Software. Before we start: short quiz … Can a sound card be a part of operation system? Give reasons.Can a sound card be.
WHAT IS HARDWARE ? Computer hardware is the collection of physical elements that comprise a COMPUTER SYSTEM LIKE A MOUSE, MONITOR, KEYBOARD, SPEAKER MICROPHONE,
The Brenkoweb provides the excellent online programming tutorial for the programmer in various languages like as PHP, SQL, HTML, ASP, Javascript,
CMPT 201 Computer Science II for Engineers
Chapter 5 Operating Systems.
Software Development Environment
Processing with Programs 1
Foundations of Computer Science C & C++ programming lecture 2
Chapter 1 Introduction to Computers, Programs, and C++
Introduction to Computers and C++ Programming
Unit 3: ALGORITHMS AND FLOWCHARTS
Chapter 1 Introduction to Computers, Programs, and C++
LESSON 1 Introduction to Programming Language
C Programming Hardik H. Maheta.
Instructor: Chien-Ho Ko
Microprocessor and Assembly Language
Programming Concepts and Languages
Programming COMP104: Fundamentals and Methodology Introduction.
Assembler, Compiler, Interpreter
Advanced Programming: C# Lecture 01: Introduction
Chapter 6 System and Application Software
Assembler, Compiler, Interpreter
C Programming Language
Chapter 6 System and Application Software
Chapter 6 System and Application Software
Chapter 6 System and Application Software
Course Curriculum – Computer Programming
Presentation transcript:

CSC 202 Computer Programming What is Program ? Program is a set of instruction that a machine follows. What is Programming? Programming is to make machine work. Programming creates instruction set that a machine follows.

Anatomy of a Program Program has typically 3 parts:  Input  Process  Output Example: Summation Program takes two numbers as input and displays their sum. CSC 202 Computer Programming Input: 2, 3 Process: sum= 2+3 Output : Display sum:5

What is Software then???? There is no hard and fast distinction between program and software. Software is often called Program and vice versa When it is said Software, then the program is always complete and ready to be used. Softwares are of two kinds 1. Application Software 2. Operating system CSC 202 Computer Programming

Application softwares MS Word MS Excel Winamp Herosoft Windows Media player Calculator PowerDVD Calculator Operating System(OS) Windows XP Windows 98 Linux Unix Solaris MacOS Windows Vista

Programming Language Programming languages are used to write programs. Some of these languages are quite similar to human language. Pr ograms are of two kinds: Desktop application and Web application. As an example we can say MS Word is desktop application whereas Yahoo mail is a web application. Popular Desktop Programming languages: CC  Java  C++/ Visual C++  C#  Visual Basic Popular Web Programming languages :  HTML  PHP  XML  ASP  ASP.NET CSC 202 Computer Programming

Introduction to C C was invented in 1970 by Dennis Ritchie at Bell Lab. C’s popularity became widespread in 1980s. Father of other modern languages Why do we choose C? C is easier to learn C program runs on almost all the Operating Systems C program takes less time to run. C programmer can easily switch to any language. CSC 202 Computer Programming

Introduction to Turbo C compiler with a sample C program: adder.cpp #include void main(){ int a, b, sum; a=2; b=3; sum=a+b; printf(“Result:\n”); printf(“Sum is %d \n”,sum); getch(); }

Functions As books are kept into different shelves in the library, instructions are also organized into different functions. A function is a block instructions A program contains one or more functions Each program has a function named “main” and a program starts execution from main function. Note: For the time being, all our programs will have only one function that is main. Program Instruction 1 Instruction 2 Instruction 3 Instruction 4 Instruction 5 Instruction 7 Instruction 8 Instruction 6 Function 1 Function 2 CSC 202 Computer Programming