SlideShare a Scribd company logo
1 of 31
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

What's hot

Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codeshermiraguilar
 
Algorithms notes 2 tutorials duniya
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniyaTutorialsDuniya.com
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithemehsanullah786
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartRabin BK
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++Seble Nigussie
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithmsStudent
 
Computer programming chapter ( 4 )
Computer programming chapter ( 4 ) Computer programming chapter ( 4 )
Computer programming chapter ( 4 ) Ibrahim Elewah
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
 
2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problemFrankie Jones
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowchartsSamuel Igbanogu
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Raja Hamid
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01Drjilesh
 

What's hot (20)

Algorithm and pseudo codes
Algorithm and pseudo codesAlgorithm and pseudo codes
Algorithm and pseudo codes
 
Algorithms notes 2 tutorials duniya
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniya
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
 
Problem solving and design
Problem solving and designProblem solving and design
Problem solving and design
 
Toy Interpreter
Toy InterpreterToy Interpreter
Toy Interpreter
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
 
Computer programming chapter ( 4 )
Computer programming chapter ( 4 ) Computer programming chapter ( 4 )
Computer programming chapter ( 4 )
 
Graphical programming
Graphical programmingGraphical programming
Graphical programming
 
Flowcharts and algorithms
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithms
 
2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem2.3 Apply the different types of algorithm to solve problem
2.3 Apply the different types of algorithm to solve problem
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
Introduction to computer_lec_04
Introduction to computer_lec_04Introduction to computer_lec_04
Introduction to computer_lec_04
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2Programming fundamentals lecture 1&2
Programming fundamentals lecture 1&2
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 

Similar to 2 programming-using-java how to built application

ALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfmeychu1
 
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptcosc242101003
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsOMWOMA JACKSON
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptReshuReshma8
 
TOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfTOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfEjazAlam23
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfMMRF2
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowchartsmoazwinner
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxAbdelrahmanRagab36
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechzShahbaz Ahmad
 

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

ALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdfALGORITHM PPT GUIDE.pdf
ALGORITHM PPT GUIDE.pdf
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.pptLecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
Lecture_01-Problem_Solving[1]||ProgrammingFundamental.ppt
 
Flowcharting and Algorithm
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
 
lecture 5
 lecture 5 lecture 5
lecture 5
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
structured programming Introduction to c fundamentals
structured programming Introduction to c fundamentalsstructured programming Introduction to c fundamentals
structured programming Introduction to c fundamentals
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
ICP - Lecture 6
ICP - Lecture 6ICP - Lecture 6
ICP - Lecture 6
 
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.pptLecture1-Algorithms-and-Flowcharts-ppt.ppt
Lecture1-Algorithms-and-Flowcharts-ppt.ppt
 
TOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdfTOPIC-1-Introduction and Preliminaries.pdf
TOPIC-1-Introduction and Preliminaries.pdf
 
L1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdfL1. Basic Programming Concepts.pdf
L1. Basic Programming Concepts.pdf
 
C++ ppt
C++ pptC++ ppt
C++ ppt
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
 
6272 cnote
6272 cnote6272 cnote
6272 cnote
 
C progrmming
C progrmmingC progrmming
C progrmming
 
01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx01 Programming Fundamentals.pptx
01 Programming Fundamentals.pptx
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptxLec 2 -algorithms-flowchart-and-pseudocode1.pptx
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
 

More from Mahmoud Alfarra

Chapter 10: hashing data structure
Chapter 10:  hashing data structureChapter 10:  hashing data structure
Chapter 10: hashing data structureMahmoud Alfarra
 
Chapter9 graph data structure
Chapter9  graph data structureChapter9  graph data structure
Chapter9 graph data structureMahmoud Alfarra
 
Chapter 8: tree data structure
Chapter 8:  tree data structureChapter 8:  tree data structure
Chapter 8: tree data structureMahmoud Alfarra
 
Chapter 7: Queue data structure
Chapter 7:  Queue data structureChapter 7:  Queue data structure
Chapter 7: Queue data structureMahmoud Alfarra
 
Chapter 6: stack data structure
Chapter 6:  stack data structureChapter 6:  stack data structure
Chapter 6: stack data structureMahmoud Alfarra
 
Chapter 5: linked list data structure
Chapter 5: linked list data structureChapter 5: linked list data structure
Chapter 5: linked list data structureMahmoud Alfarra
 
Chapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structureChapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structureMahmoud Alfarra
 
Chapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structureChapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structureMahmoud Alfarra
 
Chapter 2: array and array list data structure
Chapter 2: array and array list  data structureChapter 2: array and array list  data structure
Chapter 2: array and array list data structureMahmoud Alfarra
 
Chapter1 intro toprincipleofc#_datastructure_b_cs
Chapter1  intro toprincipleofc#_datastructure_b_csChapter1  intro toprincipleofc#_datastructure_b_cs
Chapter1 intro toprincipleofc#_datastructure_b_csMahmoud Alfarra
 
Chapter 0: introduction to data structure
Chapter 0: introduction to data structureChapter 0: introduction to data structure
Chapter 0: introduction to data structureMahmoud Alfarra
 
6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-Mahmoud Alfarra
 
5 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop201020115 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop20102011Mahmoud Alfarra
 
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava201020114 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011Mahmoud Alfarra
 
3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computer3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computerMahmoud Alfarra
 
1 programming-using-java -introduction
1 programming-using-java -introduction1 programming-using-java -introduction
1 programming-using-java -introductionMahmoud Alfarra
 
تلخيص النصوص تلقائيا
تلخيص النصوص تلقائياتلخيص النصوص تلقائيا
تلخيص النصوص تلقائياMahmoud Alfarra
 
4×4×4 لتحصيل التميز
4×4×4 لتحصيل التميز4×4×4 لتحصيل التميز
4×4×4 لتحصيل التميزMahmoud Alfarra
 
Data preparation and processing chapter 2
Data preparation and processing chapter  2Data preparation and processing chapter  2
Data preparation and processing chapter 2Mahmoud Alfarra
 

More from Mahmoud Alfarra (20)

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

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

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