lec17 - Lecture Sessions 1 2 DigitalElectronics 3...

This preview shows pages 1–6. Sign up to view the full content.

1 Computer Programming I TA C162 . 17/02/07 Lecture Sessions 1.Representation of Numbers 2.Digital Electronics 3.Computer Programming Low Level Programming –LC3 Simulator   1.Problem solving Strategies Flow Charting and Algorithm design issues Translation of Algorithm into High level program 1.High Level Programming Introduction to C Programming

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 Computer Programming I TA C162 . 17/02/07 Today’s Agenda Solving Problem Using Computer Systematic Decomposition  Three Basic Constructs Sequential Conditional Iterative Example Counting Character Occurrences
3 Computer Programming I TA C162 . 17/02/07 Solving Problems using a Computer Methodologies for creating computer programs that perform a  desired function. Problem Solving How do we figure out what to tell the computer to do? Convert problem statement into algorithm, using  stepwise refinement . Convert algorithm into LC-3 machine instructions.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
4 Computer Programming I TA C162 . 17/02/07 Stepwise Refinement Also known as  systematic decomposition . Start with problem statement:   “We wish to count the number of occurrences of a  character in a file.  The character in question is to be input from the  keyboard, the result is to be displayed on the monitor.” Decompose  task into a few simpler  subtasks . Decompose each subtask into  smaller subtasks , and these  into  even smaller subtasks , etc. ... until you get to the machine instruction level or it can be done  in a single statement in higher-level languages.
5 Computer Programming I TA C162 . 17/02/07

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/14/2010 for the course CS SS ZG653 taught by Professor Shanta during the Spring '09 term at Birla Institute of Technology & Science.

Page1 / 19

lec17 - Lecture Sessions 1 2 DigitalElectronics 3...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online