Problem Solving Through ‘C’
Learning ‘C’ Programming
- Syntax
- Semantics
- Solving
Block Diagram of Computer
Characteristics
- It works on stored program concept
- For problem solving computer is used
- Automation
- Handle
large volume of data
- Speed
- Accuracy
Types of Real World Problems
In real world applications we come across day to day problems
- Going to market for shop
- Solving quadratic equations
- Matrix Operation: Add, Multiply…
- ATM
- Grade calculation
- Railway/Flight Reservation
- Library Automation
- Many More.....
Approach to Problem Solving
- Define and Identify the Problem
- Analyze the Problem
- Identifying Possible Solutions
- Selecting the Best Solutions
- Specifications
- Algorithm
- Coding
- Testing
- Maintenance
Algorithm/Flowchart:
- An algorithm is a sequence of instructions often used for solving problem
- A flowchart is a schematic representation of an algorithm
Coding:
- Set of instructions for solving a problem
Testing:
- Finding the errors in the code for possible values
- Like taking a=0 gives unambiguous results
Maintenance:
- Modification due to requirements change
- Scalability
Introduction to Algorithms
- Step by step method to solve a problem
- Must include ALL required information
Flowcharts
More About High Level Languages
- The languages are designed keeping in mind features of portability
-
- The languages are machine independent
-
- Easy to write and understand
-
- The programmer pays whole attention logic of the program
Translators
For translating high level and low level language to machine language
- Assembler: Assembly Level --> Machine Level
- Interpreter
- High Level --> Machine Level
- Interpreter searches the error statement by statement
- Compiler
- High Level --> Machine Level
- Compiler searches all errors in the code and lists them
No comments:
Post a Comment