SlideServe
Menu
Préférences
© SlideServe · v2026

CSC 202 Computer Programming

chinue avatar
8 diapositives · 735 Views · Oct 20, 2014

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. Program has typically 3 parts: Input Process Output

CSC 202					 Computer Programming - slide 1
01 / 8CSC 202 Computer Programming
1 / 17

Télécharger la présentation

CSC 202 Computer Programming
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. 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.

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

  3. CSC 202 Computer Programming 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

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

  5. Popular Desktop Programming languages: C Java C++/ Visual C++ C# Visual Basic Popular Web Programming languages: HTML PHP XML ASP ASP.NET CSC 202 Computer Programming Programming LanguageProgramming languages are used to write programs.Some of these languages are quite similar to human language.Programs 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.

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

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

  8. 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. CSC 202 Computer Programming Functions Program Function 1 Instruction 1 Instruction 2 Instruction 3 Instruction 4 Instruction 5 Instruction 6 Function 2 Instruction 7 Instruction 8