• Definitions:
1- Problem: any situation needed to be solved or removed
2- Problem statement: a description of the problem to be solved.
3- An algorithm: is merely the sequence of steps taken to solve a problem.
4- Flowchart: is a procedure for solving a problem in terms of the actions to be
executed and the order in which those actions are to be executed.
5- Pseudocode: An English-like nonstandard language that lets you state your
solution with more precision than you can in plain English but with less
precision than is required when using a formal programming language.
6- programming language: is a set of rules that provides a way of instructing
the computer what operations to perform.
7- Compiler: translates your entire program at one time.
8- Interpreter: translates the program instruction step by step.
9- Documentation: is a written detailed description pursue more exciting
computer of the programming cycle and specific facts about the program.
1-Choose the right choice for each:
[Problem solving]
1- The written detailed description of the programming cycle and specific facts about the
program.
o Problem definition
o Testing the program
o Documenting the program
2- ………………………….translates the program instruction step by step.
o Compiler
o Assembler
o Interpreter
3- ……………………….means detecting, locating, and correcting bugs (mistakes), usually by running
the
program.
o Compile
o Translate
o Debug
4- …………………………. translates your entire program at one time
o Compiler
o Assembler
o Translator
2-Complete:
1- …………………………………translates your entire program at one time. The translation involves
your
original program, called a source module
2- ………………………. is a written detailed description of the programming cycle and specific
facts about the program
3- …………………………………………..is a procedure for solving a problem in terms of the actions to be
executed and the order in which those actions are to be executed.
4- An English-like nonstandard language that lets you state your solution with more
precision than you can in plain English but with less precision than is required when
using a formal programming language is ……………………………….
5- The fourth stage of the problem solving stages is…………………………………………….
6- …………………………………………. Is a pictorial representation of a step-by-step solution to a
problem. It consists of arrows representing the direction the program takes and boxes
and other symbols representing actions. It is a map of what your program is going to do
and how it is going to do it.
7- …………………………………… is a set of rules that provides a way of instructing the computer
what operations to perform.
8- FORTRAN, C# are examples of …………………………………
4- The first stage of the problem solving stages is………………………………
10- ………………………………………………….is the last stage of the problem solving stages.
11- ……………………………………………………translates the program instruction step by step
2- Mention the stages required to solve any problem?
………………………………………………………………
………………………………………………………………
………………………………………………………………
………………………………………………………………
………………………………………………………………
3- What is the difference between compiler and interpreter?
………………………………………………………………… ……………………………………………………………
4- What are the functions of the translators?
……………………………………………………………… ………………………………………………………………
Pseudocode & Flowcharts Examples
Find the total of two numbers is as follows. Two numbers X,Y.
Pseudocode Flowchart
Find the area of a triangle is as follows: area = 0.5 × base × height.
Pseudocode Flowchart
Find the area of a circle
(Bears in mind that the rule for finding the area is π r2)
Pseudocode Flowchart
-To find the Area of a rectangular region with given length Area= L × w
Pseudocode Flowchart
-To solve the first-degree equation Y= 3X + 2.
Pseudocode Flowchart
-To find the number of years, bearing in mind that the number of months is
known.
Pseudocode Flowchart
-To determine the number type (Even or Odd)
Pseudocode Flowchart