2. Scientific way to solve problems

2. Scientific way to solve problems - A pseudo code...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Scientific way to solve problems
Background image of page 1

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

View Full DocumentRight Arrow Icon
Let you have the problem statement, you must follow these steps Analyze the problem Understanding the problem to identify the problem domain Determine the problem specification Problem input Problem output Formula If the problem complex divide the problem into sub problems, and for each part you must do step (1.a) and (1.b).
Background image of page 2
Design algorithm Main steps Input (read data) Processing (perform the computation) Output (display the result)
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: A pseudo code Algorithm name INPUT/OUTPUT statement Assignment statement Flowchart Testing (using tables) Implementation (coding) Comments //, /* . */ Include <.h> Declaration section Executable statement Input Output Assignment Selection If statement Switch statement Loop For While Do while Array Files Pointers Functions String...
View Full Document

Page1 / 4

2. Scientific way to solve problems - A pseudo code...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online