SlideShare a Scribd company logo
Using Java
MINISTRY OF EDUCATION & HIGHER EDUCATION
COLLEGE OF SCIENCE AND TECHNOLOGY
KHANYOUNIS- PALESTINE
2Presented & Prepared by: Mahmoud R. Alfarra
Home WorkHW 1.1
Be Care
Very Important information
 Programming Life Cycle …
 Algorithms
 Pseudo Code
 Flow Chart
 Practices
 Emank X Mezank
3Presented & Prepared by: Mahmoud R. Alfarra
 Building an application has five sorted stages:
 Thinking
 Planning
 Designing
 Coding
 Testing
4Presented & Prepared by: Mahmoud R. Alfarra
 Thinking Stage is the most important one in
the life cycle of programming because its
result has an occur affect on the following
stages.
 No rules
 No specific language
 Only read, understand, imagine
5Presented & Prepared by: Mahmoud R. Alfarra
 Before writing a program to solve a problem,
it is essential to have a thorough
understanding of the problem and a carefully
planned approach to solving it.
 We have many techniques to represent our
approach before designing and coding
it(Algorithm).
 Pseudo Code
 Flow Chart
6Presented & Prepared by: Mahmoud R. Alfarra
 Designing stage focuses on how the
application will be appeared to users.
7Presented & Prepared by: Mahmoud R. Alfarra
 In this stage, we translate all of the previous
stages to a specific programming language.
8Presented & Prepared by: Mahmoud R. Alfarra
X<=0
yes
F(x)= XF(x)= - X
NO
If (x>=0)
Fx = x;
else
Fx = -x;
 InThis stage, the programmer test his
application by inputting many values and
compare the results with the supposed one.
 If they are not the same … the programmer
must repair his application.
9Presented & Prepared by: Mahmoud R. Alfarra
 Any computing problem can be solved by
executing a series of actions in a specific
order.
 An algorithm is a procedure for solving a
problem in terms of
 The actions to execute and
 The order in which these actions execute.
10Presented & Prepared by: Mahmoud R. Alfarra
In two pages, write what is algorithm, why and how
do they represented ?HW 2.1
 Specifying the order in which statements
(actions) execute in a program is called
program control.
 Program control can be one of three
structures :
 Sequential structure
 Selection structure
 Repetition structure
11Presented & Prepared by: Mahmoud R. Alfarra
 Documented my solution ideas
 Detect the time and space of the solution.
 Help the programmer to determine the
logical errors.
 Comparing between solutions of the same
problem.
12Presented & Prepared by: Mahmoud R. Alfarra
 To represent algorithms we have two ways:
13Presented & Prepared by: Mahmoud R. Alfarra
Algorithms
representation
Pseudo code Flow Chart
 Pseudocode is an informal language that
helps programmers develop algorithms
without having to worry about the strict
details of Programming language syntax.
 Pseudocode is similar to everyday English.
 But it is not an actual computer programming
language.
14Presented & Prepared by: Mahmoud R. Alfarra
 Pseudocode normally describes only statements
representing the actions of the solution.
 Such actions might include input, output or a
calculation.
15Presented & Prepared by: Mahmoud R. Alfarra
If student's grade is greater than or equal to 60
Print "passed"
else
Print "failed"
 Flow Chart is a way to illustrate the step of
solving the problems using shapes.
 Every pseudo code can be represented by
Flow chart.
16Presented & Prepared by: Mahmoud R. Alfarra
In one page, discuss the meaning of Flowchart
and its importance?HW 2.2
17Presented & Prepared by: Mahmoud R. Alfarra
To represent the start and
end of the program
To represent the input and
Output process
To represent the arithmetic
operations
18Presented & Prepared by: Mahmoud R. Alfarra
To represent logical operators
And conditions as (if (x >5))
To represent the flow of
the operations
19Presented & Prepared by: Mahmoud R. Alfarra
Practices
 Write the algorithm to print the average of
the temperaturesT1,T2,T3.
20Presented & Prepared by: Mahmoud R. Alfarra
Practice 1.1
Read theT1,T2,T3
Calculate the sum by: sum =T1,T2,T3
Calculate the average by : average = sum/3
Print average
Be Care: when the question ask about an algorithm, you can
write pseudo code or Flow chart, its yours
21Presented & Prepared by: Mahmoud R. Alfarra
Practice 1.1
Sum = T1+T2+T3
Start
Read
T1, T2, T3
Average = sum/3
Print
Average
End
This control structure is a
Sequential Structure.
That the statements in a
program are executed
one after the other in the
order in which they are
written.
 Write the algorithm to calculate the average
of the temperaturesT1,T2,T3 and print
(cold)if it less than 17 and print (hot) if it
greater or equal to 17.
22Presented & Prepared by: Mahmoud R. Alfarra
Practice 1.2
Be Care: When the question ask about a specific
representation way, you MUST solve with this way.
23Presented & Prepared by: Mahmoud R. Alfarra
Practice 1.2
Sum = T1+T2+T3
Start
Read
T1, T2, T3
Avg = sum/3
Print Hot
Avg >= 17
Print Cold
End
YesNo
This control
structure is a
selection structure
That the statements
in a program are
executed one after
the other in the
order in which they
are written.
 Write an algorithm to Print the area of a
circle,( area = π * R2 ).
24Presented & Prepared by: Mahmoud R. Alfarra
Practice 1.3
Read the R
Set π = 3.14
Calculate the area by: area = π * R *R
Print area
Arithmetic equation In algorithms, must be simplified (i.e: X2=
X*X) , (2X = 2*X), (2+3X = 2+ 3*x) etc.
25Presented & Prepared by: Mahmoud R. Alfarra
Practice 1.3
π = 3.14
start
Read R
area = π × R ×R
Print area
End
Rewrite this practice,
to calculate the
around of circle and
Print (Max) if it is
greater than 40 and
print (Min) if it is less
than or equal to 40
HW 2.3
 Write an algorithm to accept an integer from
the user and then print it multiple table from
(1 to 12)…
26Presented & Prepared by: Mahmoud R. Alfarra
Practice 1.4
Read the X
Set counter to 1
While counter less than or equal to 12 Repeat
Print X * counter
Set counter = counter +1
27Presented & Prepared by: Mahmoud R. Alfarra
Counter = 1
Start
Read
X
Print (counter *X)
Counter <=12
End
No
Counter = counter +1
Yes
Practice 1.4
1. Write an algorithm to calculate the value of
the F(x) function.
2. Write an algorithm to accept three integers
from the users and print the maximum one.
3. Write an algorithm to print the average of
population of Gaza.
28Presented & Prepared by: Mahmoud R. Alfarra
0
0
x x
F(x)
x x

 
 
4. Write an algorithm to calculate how many
IT student success in the Programming 1
course.
29Presented & Prepared by: Mahmoud R. Alfarra
Consider all of the previous practices as home
workHW 2.4
َ‫ر‬ ْ‫َنن‬‫ع‬ ،ُ‫ه‬ْ‫ن‬َ‫ع‬ ‫هللا‬ َ‫ي‬ ِ‫ض‬َ‫ر‬ َ‫ة‬َ‫م‬‫ا‬َ‫م‬ُ‫أ‬ ‫ي‬ِ‫ب‬َ‫أ‬ ْ‫َن‬‫ع‬ُ ِ‫َّلله‬ ‫ا‬ِ‫ى‬‫ن‬ََ ِ ِ‫َّلله‬ ِِ‫نل‬ُ‫س‬ِ‫ه‬‫ن‬ْ‫ي‬َ‫ى‬َ‫ع‬
َِ‫نا‬َ‫ق‬ ،َ‫م‬ِ‫ى‬َ‫س‬َ‫ل‬:(ِِ‫ا‬َ‫م‬‫ن‬ِِّ ‫َّللش‬ ََ ِِ‫نا‬ََ ِ‫ن‬ِ‫إ‬ِ ‫ن‬ِ‫س‬ َ‫م‬‫ن‬َ‫ى‬ََْ‫ش‬‫َّلل‬ ُُ‫ن‬َ‫ف‬ْ‫ر‬َ‫ي‬ِ‫ش‬‫َا‬‫ع‬‫نا‬َ‫س‬
‫َّلل‬ ِ‫ل‬َ‫أ‬ ِ‫ئ‬ِ‫ط‬ْ‫خ‬ُ‫م‬ْ‫ش‬‫َّلل‬ ِ‫م‬ِ‫ى‬ْ‫س‬ُ‫م‬ْ‫ش‬‫َّلل‬ ِ‫د‬ْ‫ب‬َ‫ع‬ْ‫ش‬‫َّلل‬ ِ‫َن‬‫ع‬ْ‫س‬‫َّلل‬َ‫ل‬ َ‫م‬ِ‫د‬َ‫ن‬ ْ‫ن‬ِ‫إ‬َ‫ف‬ ،ِ‫يء‬ِ‫س‬ُ‫م‬ْ‫ش‬َ ِ‫َّلله‬ َ‫ر‬َ‫ف‬ْ‫غ‬َ‫ت‬
‫َة‬‫د‬ ِِ‫َّلل‬َ‫ل‬ ْ َ‫ب‬ِ‫ت‬ُ‫ك‬ ‫ال‬ِ‫إ‬َ‫ل‬ ،‫ا‬َ‫ه‬‫ا‬ََْ‫ش‬َ‫أ‬ ‫ا‬َ‫ه‬ْ‫ن‬ِ‫م‬)‫األلباني‬ ‫حسنـه‬
30Presented & Prepared by: Mahmoud R. Alfarra
Main concepts of
Programming
31Presented & Prepared by: Mahmoud R. Alfarra

More Related Content

PPT
Computer Programming, Loops using Java - part 2
PPT
Computer Programming, Loops using Java
PPT
7 programming-using-java decision-making220102011
PPT
8 programming-using-java decision-making practices 20102011
PDF
4 coding from algorithms
PPT
Programing Fundamental
PDF
Algorithm and c language
DOCX
programming concept
Computer Programming, Loops using Java - part 2
Computer Programming, Loops using Java
7 programming-using-java decision-making220102011
8 programming-using-java decision-making practices 20102011
4 coding from algorithms
Programing Fundamental
Algorithm and c language
programming concept

What's hot (20)

PPTX
Algorithm and pseudo codes
PDF
Algorithms notes 2 tutorials duniya
PDF
POLITEKNIK MALAYSIA
PDF
POLITEKNIK MALAYSIA
PPSX
Algorithm and flowchart
PPTX
Flowchart and algorithem
PPSX
Problem solving and design
PPTX
Toy Interpreter
PPTX
Algorithm and flowchart
PDF
Fundamentals of programming with C++
PPTX
flowchart & algorithms
PDF
Computer programming chapter ( 4 )
PDF
Graphical programming
PPTX
Flowcharts and algorithms
PPT
2.3 Apply the different types of algorithm to solve problem
PPTX
Algorithms and flowcharts
PDF
Introduction to computer_lec_04
PPTX
Algorithm
PPT
Programming fundamentals lecture 1&2
DOCX
Oop lab assignment 01
Algorithm and pseudo codes
Algorithms notes 2 tutorials duniya
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Algorithm and flowchart
Flowchart and algorithem
Problem solving and design
Toy Interpreter
Algorithm and flowchart
Fundamentals of programming with C++
flowchart & algorithms
Computer programming chapter ( 4 )
Graphical programming
Flowcharts and algorithms
2.3 Apply the different types of algorithm to solve problem
Algorithms and flowcharts
Introduction to computer_lec_04
Algorithm
Programming fundamentals lecture 1&2
Oop lab assignment 01
Ad

Similar to 2 programming-using-java how to built application (20)

PPTX
Data Structures_Introduction to algorithms.pptx
PPT
3 algorithm-and-flowchart
PPTX
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
PPTX
programming part 1 introduction to python.pptx
PDF
Introduction to programming : flowchart, algorithm
PDF
2021 CSE031.Lecture 6.Flow_Charts_Pseudocode.pptx.pdf
PPTX
Csci101 lect00 introduction
PPTX
Unit-1_PPS_H6nS4p8J1iooinoinoinoink.pptx
PDF
Intro to Algorithms - Time and Space Complexity
PDF
Algorithm
PPT
Comp102 lec 1
PPT
Data Structures- Part1 overview and review
PPTX
ANALYSIS AND DESIGN OF ALGORITHMS -M1-PPT
PPTX
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
PPTX
UNIT-1.pptx python for engineering first year students
PPT
Intro to DSAA.ppt
PDF
Introduction to algorithms
PPSX
DISE - Programming Concepts
PDF
Logic Development and Algorithm.
PPTX
Algorithm,Pseudocode,Flowchart.pptx
Data Structures_Introduction to algorithms.pptx
3 algorithm-and-flowchart
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
programming part 1 introduction to python.pptx
Introduction to programming : flowchart, algorithm
2021 CSE031.Lecture 6.Flow_Charts_Pseudocode.pptx.pdf
Csci101 lect00 introduction
Unit-1_PPS_H6nS4p8J1iooinoinoinoink.pptx
Intro to Algorithms - Time and Space Complexity
Algorithm
Comp102 lec 1
Data Structures- Part1 overview and review
ANALYSIS AND DESIGN OF ALGORITHMS -M1-PPT
MODULE1-INTRODUCTION.pptx-COMPUTER PROGRAMING
UNIT-1.pptx python for engineering first year students
Intro to DSAA.ppt
Introduction to algorithms
DISE - Programming Concepts
Logic Development and Algorithm.
Algorithm,Pseudocode,Flowchart.pptx
Ad

More from Mahmoud Alfarra (20)

PPT
Chapter 10: hashing data structure
PPT
Chapter9 graph data structure
PPT
Chapter 8: tree data structure
PPT
Chapter 7: Queue data structure
PPT
Chapter 6: stack data structure
PPT
Chapter 5: linked list data structure
PPT
Chapter 4: basic search algorithms data structure
PPT
Chapter 3: basic sorting algorithms data structure
PPT
Chapter 2: array and array list data structure
PPT
Chapter1 intro toprincipleofc#_datastructure_b_cs
PPT
Chapter 0: introduction to data structure
PPTX
3 classification
PPT
6 programming-using-java decision-making20102011-
PPT
5 programming-using-java intro-tooop20102011
PPT
4 programming-using-java intro-tojava20102011
PPT
3 programming-using-java introduction-to computer
PPT
1 programming-using-java -introduction
PPTX
تلخيص النصوص تلقائيا
PDF
4×4×4 لتحصيل التميز
PPTX
Data preparation and processing chapter 2
Chapter 10: hashing data structure
Chapter9 graph data structure
Chapter 8: tree data structure
Chapter 7: Queue data structure
Chapter 6: stack data structure
Chapter 5: linked list data structure
Chapter 4: basic search algorithms data structure
Chapter 3: basic sorting algorithms data structure
Chapter 2: array and array list data structure
Chapter1 intro toprincipleofc#_datastructure_b_cs
Chapter 0: introduction to data structure
3 classification
6 programming-using-java decision-making20102011-
5 programming-using-java intro-tooop20102011
4 programming-using-java intro-tojava20102011
3 programming-using-java introduction-to computer
1 programming-using-java -introduction
تلخيص النصوص تلقائيا
4×4×4 لتحصيل التميز
Data preparation and processing chapter 2

Recently uploaded (20)

PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Business Ethics Teaching Materials for college
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Open folder Downloads.pdf yes yes ges yes
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Microbial disease of the cardiovascular and lymphatic systems
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
The Final Stretch: How to Release a Game and Not Die in the Process.
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Business Ethics Teaching Materials for college
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Insiders guide to clinical Medicine.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Open folder Downloads.pdf yes yes ges yes
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Microbial diseases, their pathogenesis and prophylaxis
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pre independence Education in Inndia.pdf
NOI Hackathon - Summer Edition - GreenThumber.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Microbial disease of the cardiovascular and lymphatic systems

2 programming-using-java how to built application

  • 1. Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE
  • 2. 2Presented & Prepared by: Mahmoud R. Alfarra Home WorkHW 1.1 Be Care Very Important information
  • 3.  Programming Life Cycle …  Algorithms  Pseudo Code  Flow Chart  Practices  Emank X Mezank 3Presented & Prepared by: Mahmoud R. Alfarra
  • 4.  Building an application has five sorted stages:  Thinking  Planning  Designing  Coding  Testing 4Presented & Prepared by: Mahmoud R. Alfarra
  • 5.  Thinking Stage is the most important one in the life cycle of programming because its result has an occur affect on the following stages.  No rules  No specific language  Only read, understand, imagine 5Presented & Prepared by: Mahmoud R. Alfarra
  • 6.  Before writing a program to solve a problem, it is essential to have a thorough understanding of the problem and a carefully planned approach to solving it.  We have many techniques to represent our approach before designing and coding it(Algorithm).  Pseudo Code  Flow Chart 6Presented & Prepared by: Mahmoud R. Alfarra
  • 7.  Designing stage focuses on how the application will be appeared to users. 7Presented & Prepared by: Mahmoud R. Alfarra
  • 8.  In this stage, we translate all of the previous stages to a specific programming language. 8Presented & Prepared by: Mahmoud R. Alfarra X<=0 yes F(x)= XF(x)= - X NO If (x>=0) Fx = x; else Fx = -x;
  • 9.  InThis stage, the programmer test his application by inputting many values and compare the results with the supposed one.  If they are not the same … the programmer must repair his application. 9Presented & Prepared by: Mahmoud R. Alfarra
  • 10.  Any computing problem can be solved by executing a series of actions in a specific order.  An algorithm is a procedure for solving a problem in terms of  The actions to execute and  The order in which these actions execute. 10Presented & Prepared by: Mahmoud R. Alfarra In two pages, write what is algorithm, why and how do they represented ?HW 2.1
  • 11.  Specifying the order in which statements (actions) execute in a program is called program control.  Program control can be one of three structures :  Sequential structure  Selection structure  Repetition structure 11Presented & Prepared by: Mahmoud R. Alfarra
  • 12.  Documented my solution ideas  Detect the time and space of the solution.  Help the programmer to determine the logical errors.  Comparing between solutions of the same problem. 12Presented & Prepared by: Mahmoud R. Alfarra
  • 13.  To represent algorithms we have two ways: 13Presented & Prepared by: Mahmoud R. Alfarra Algorithms representation Pseudo code Flow Chart
  • 14.  Pseudocode is an informal language that helps programmers develop algorithms without having to worry about the strict details of Programming language syntax.  Pseudocode is similar to everyday English.  But it is not an actual computer programming language. 14Presented & Prepared by: Mahmoud R. Alfarra
  • 15.  Pseudocode normally describes only statements representing the actions of the solution.  Such actions might include input, output or a calculation. 15Presented & Prepared by: Mahmoud R. Alfarra If student's grade is greater than or equal to 60 Print "passed" else Print "failed"
  • 16.  Flow Chart is a way to illustrate the step of solving the problems using shapes.  Every pseudo code can be represented by Flow chart. 16Presented & Prepared by: Mahmoud R. Alfarra In one page, discuss the meaning of Flowchart and its importance?HW 2.2
  • 17. 17Presented & Prepared by: Mahmoud R. Alfarra To represent the start and end of the program To represent the input and Output process To represent the arithmetic operations
  • 18. 18Presented & Prepared by: Mahmoud R. Alfarra To represent logical operators And conditions as (if (x >5)) To represent the flow of the operations
  • 19. 19Presented & Prepared by: Mahmoud R. Alfarra Practices
  • 20.  Write the algorithm to print the average of the temperaturesT1,T2,T3. 20Presented & Prepared by: Mahmoud R. Alfarra Practice 1.1 Read theT1,T2,T3 Calculate the sum by: sum =T1,T2,T3 Calculate the average by : average = sum/3 Print average Be Care: when the question ask about an algorithm, you can write pseudo code or Flow chart, its yours
  • 21. 21Presented & Prepared by: Mahmoud R. Alfarra Practice 1.1 Sum = T1+T2+T3 Start Read T1, T2, T3 Average = sum/3 Print Average End This control structure is a Sequential Structure. That the statements in a program are executed one after the other in the order in which they are written.
  • 22.  Write the algorithm to calculate the average of the temperaturesT1,T2,T3 and print (cold)if it less than 17 and print (hot) if it greater or equal to 17. 22Presented & Prepared by: Mahmoud R. Alfarra Practice 1.2 Be Care: When the question ask about a specific representation way, you MUST solve with this way.
  • 23. 23Presented & Prepared by: Mahmoud R. Alfarra Practice 1.2 Sum = T1+T2+T3 Start Read T1, T2, T3 Avg = sum/3 Print Hot Avg >= 17 Print Cold End YesNo This control structure is a selection structure That the statements in a program are executed one after the other in the order in which they are written.
  • 24.  Write an algorithm to Print the area of a circle,( area = π * R2 ). 24Presented & Prepared by: Mahmoud R. Alfarra Practice 1.3 Read the R Set π = 3.14 Calculate the area by: area = π * R *R Print area Arithmetic equation In algorithms, must be simplified (i.e: X2= X*X) , (2X = 2*X), (2+3X = 2+ 3*x) etc.
  • 25. 25Presented & Prepared by: Mahmoud R. Alfarra Practice 1.3 π = 3.14 start Read R area = π × R ×R Print area End Rewrite this practice, to calculate the around of circle and Print (Max) if it is greater than 40 and print (Min) if it is less than or equal to 40 HW 2.3
  • 26.  Write an algorithm to accept an integer from the user and then print it multiple table from (1 to 12)… 26Presented & Prepared by: Mahmoud R. Alfarra Practice 1.4 Read the X Set counter to 1 While counter less than or equal to 12 Repeat Print X * counter Set counter = counter +1
  • 27. 27Presented & Prepared by: Mahmoud R. Alfarra Counter = 1 Start Read X Print (counter *X) Counter <=12 End No Counter = counter +1 Yes Practice 1.4
  • 28. 1. Write an algorithm to calculate the value of the F(x) function. 2. Write an algorithm to accept three integers from the users and print the maximum one. 3. Write an algorithm to print the average of population of Gaza. 28Presented & Prepared by: Mahmoud R. Alfarra 0 0 x x F(x) x x     
  • 29. 4. Write an algorithm to calculate how many IT student success in the Programming 1 course. 29Presented & Prepared by: Mahmoud R. Alfarra Consider all of the previous practices as home workHW 2.4
  • 30. َ‫ر‬ ْ‫َنن‬‫ع‬ ،ُ‫ه‬ْ‫ن‬َ‫ع‬ ‫هللا‬ َ‫ي‬ ِ‫ض‬َ‫ر‬ َ‫ة‬َ‫م‬‫ا‬َ‫م‬ُ‫أ‬ ‫ي‬ِ‫ب‬َ‫أ‬ ْ‫َن‬‫ع‬ُ ِ‫َّلله‬ ‫ا‬ِ‫ى‬‫ن‬ََ ِ ِ‫َّلله‬ ِِ‫نل‬ُ‫س‬ِ‫ه‬‫ن‬ْ‫ي‬َ‫ى‬َ‫ع‬ َِ‫نا‬َ‫ق‬ ،َ‫م‬ِ‫ى‬َ‫س‬َ‫ل‬:(ِِ‫ا‬َ‫م‬‫ن‬ِِّ ‫َّللش‬ ََ ِِ‫نا‬ََ ِ‫ن‬ِ‫إ‬ِ ‫ن‬ِ‫س‬ َ‫م‬‫ن‬َ‫ى‬ََْ‫ش‬‫َّلل‬ ُُ‫ن‬َ‫ف‬ْ‫ر‬َ‫ي‬ِ‫ش‬‫َا‬‫ع‬‫نا‬َ‫س‬ ‫َّلل‬ ِ‫ل‬َ‫أ‬ ِ‫ئ‬ِ‫ط‬ْ‫خ‬ُ‫م‬ْ‫ش‬‫َّلل‬ ِ‫م‬ِ‫ى‬ْ‫س‬ُ‫م‬ْ‫ش‬‫َّلل‬ ِ‫د‬ْ‫ب‬َ‫ع‬ْ‫ش‬‫َّلل‬ ِ‫َن‬‫ع‬ْ‫س‬‫َّلل‬َ‫ل‬ َ‫م‬ِ‫د‬َ‫ن‬ ْ‫ن‬ِ‫إ‬َ‫ف‬ ،ِ‫يء‬ِ‫س‬ُ‫م‬ْ‫ش‬َ ِ‫َّلله‬ َ‫ر‬َ‫ف‬ْ‫غ‬َ‫ت‬ ‫َة‬‫د‬ ِِ‫َّلل‬َ‫ل‬ ْ َ‫ب‬ِ‫ت‬ُ‫ك‬ ‫ال‬ِ‫إ‬َ‫ل‬ ،‫ا‬َ‫ه‬‫ا‬ََْ‫ش‬َ‫أ‬ ‫ا‬َ‫ه‬ْ‫ن‬ِ‫م‬)‫األلباني‬ ‫حسنـه‬ 30Presented & Prepared by: Mahmoud R. Alfarra
  • 31. Main concepts of Programming 31Presented & Prepared by: Mahmoud R. Alfarra