43
C Programming- Hardware, Software, Algorithm, Flowchart Organized By: Vinay Arora Assistant Professor, CSED Thapar University, Patiala

C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Embed Size (px)

Citation preview

Page 1: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

C Programming- Hardware, Software,

Algorithm, Flowchart

Organized By: Vinay Arora

Assistant Professor, CSED

Thapar University, Patiala

Page 2: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Disclaimer

This is NOT A COPYRIGHT MATERIAL

Content has been taken mainly from the following books & websites:

Computer Graphics C Version By Donald Hearn, M. Pauline BakerSchaum's outline of theory and problems of computer graphics By Zhigang Xiang, Roy A. Plastock

Computer Graphics: Principles and Practice By James D. Foley

http://en.wikipedia.org/wiki/Computer_graphics

http://www.howstuffworks.com/3dgraphics.htm

http://www.graphics.cornell.edu/online/tutorial/

http://www.cgarena.com/

etc…

Page 3: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Display Devices

� A Display Device is an Output device for presentation of Information for Visual reception.

� The Display Systems are often referred to as Video Monitor or Video Display Unit (VDU).

� Display Devices having CRT:-

DVST – Direct View Storage Tube

Random Scan

Raster Scan

Page 4: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Computer Monitor - External View

Page 5: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Brands of CRT

Page 6: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Input Devices

� Keyboard

� Mouse

� Trackball

� Joystick

� Data Glove

� Digitizer

� Image Scanner

� Touch Panel

� Light Pen

� Voice System

Page 7: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Keyboard (Virtual)

Page 8: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Keyboard (Foldable)

Page 9: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Keyboard (Foldable)

Page 10: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Mouse (Ring Optical)

Page 11: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Mouse

Page 12: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Wire Free Keyboard/Mouse

Page 13: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Trackball – In Mouse

Page 14: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Trackball – In Mobiles

Page 15: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Trackball – In Remote Controls

Page 16: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Joystick

Page 17: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Data Glove

Page 18: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Data Glove

Page 19: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Image Scanner/ Scanner

Page 20: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Touch Panel

Page 21: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Touch Panel

Page 22: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Output Devices/Hardcopy Devices

� Dot Matrix Printer

� Laser Printer

� Plotter

Page 23: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Dot Matrix Printer

Page 24: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Laser Printer

Page 25: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Plotter

Page 26: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Algorithm & Flowchart

� A sequence of instructions is called an Algorithm.

� Algorithms are a fundamental part of computing.

� There are two commonly used tools to help to document program logic

(the algorithm).

� These are Flowcharts and Pseudocode.

Page 27: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Program

Page 28: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Algorithm

Page 29: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Algorithm – Example (Largest among 3 no.)

Page 30: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart Symbol

Page 31: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart Symbol (contd.)

Page 32: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart Symbol (contd.)

Page 33: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Advantages

Page 34: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Drawbacks

Page 35: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Sequence Control Structure

Page 36: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart & Pseudocode

Page 37: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Selection Control Structure

Page 38: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Repetition Control Structure

Page 39: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart & Pseudocode

Page 40: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart - example

Page 41: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart - example

Page 42: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Flowchart - example

Page 43: C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart

Vinay Arora

TU, CSED

Thnx…