Translate

Monday, 23 October 2017

pseudo code


Pseudo  code: An  informal highlevel  description  of  the operating  principle  of  a  computer  program.  It  uses  the structural  conventions  of  a  programming  language,  but  is intended  for  human  reading  rather  than  machine  reading.

Rules for Pseudocode
  • Write  only  one statement  per  line
  • Capitalize  initial  keyword
  • Indent  to  show  hierarchy
  • End  multiline  structures
  • Keep statements language  independent

flowchart


Algorithm

* Algorithm  is  a detailed  step by step  solution  to  a problem. Characteristics
  • must  be  precise  (exact)
  • must  be  effective  (successful)
  • must  have  a finite  number  of  instructions
  • execution  must  always 

Programming Tools

Tools  used  to  convert  algorithms  into  computer  programs: Pseudo  code: An  informal highlevel  description  of  the operating  principle  of  a  computer  program.  It  uses  the structural  conventions  of  a  programming  language,  but  is intended  for  human  reading  rather  than  machine  reading. Flowcharts:  Graphically  depict  the  logical  steps  to  carry out a task  and  show  how  the  steps  relate  to  each  other.

Flowcharting

  • A flowchart is  a  pictorial  representation  of  an algorithm  or  logical  steps.
  • Each  step is  represented  by  a  symbol  and the  arrows indicate  the  flow and order  of  the  steps.
  • The  shape of  the  symbol indicates  the  type  of operation that  is  to  occur.
Flow  Control  Structures
Flow control  is  the order in  which  statements are executed. There are three  control structures. 

• sequence  Control Selection  :  Control Flow  Control  Structures. FLOW control  is  the order in  which  statements are executed. There are three  control structures.
    Sequence  Control
  1. Selection  Control * Also  referred  to as  b ranching  (if  and  if-else)
  2. Repetition  Control (loops)
  3. what is computer


    What is a  Computer?
    * A  computer  is  an electronic  device  that manipulates information,  or  data. It  has the ability to  store,  retrieve, and  process  data.

    People  use  computers  to make  their  work/  jobs easier.
    1. Communication
    2. Education
    3. Business  purposes
    4. Entertainment
    5. Travel

    Advantages
    ---------------------
    Easy
    Reliable
    Effective  
    Accurate
    Time  saving
    Money  saving
    Connectivity
    More??

    Evolution  of the Computer

    1st  Generation
    * Around1940-1956
    *Relied on  Vacuum Tubes

    2nd  Generation
    *Around1956-1963
    *Used  Transistors

    3rd  Generation
    *Around1964-1971
    *Used  Integrated Circuits  

    4th  Generation
    * 1971-present
    *Uses  Microprocessors

    5th  Generation
    Artificial intelligent

    Classification  of Computers

    Computers  can be classified according to  
    Size
    Technology
    Speed
    Capacity,  etc.

    Classification  According  to  Size
    1. Personal/  Micro Computers Desktop  Computers Workstations
    Notebooks  and  Handheld  Computers
    Smart  Phones
    2. Mini Computers
    3. Mainframe  Computers
    4. Super  Computers

    Classification  According  to  Technology
    1. Analog  Computers
    2. Digital Computers
    3. Hybrid Computers

    Computer  Brands
    acer
    hp
    dell
    Lenovo
    dosiba
    ibm



    Featured post

    check box

    <!DOCTYPE html> <html> <head>   <title>Check Box</title> </head> <body>   <input ty...