SlideShare a Scribd company logo
1 of 12
ENG. AHMED EL-
ENG. AHMED ELBADAWY - FALL 2016
2
 WHAT IS PROGRAMMING ?
 LEARNING PROGRAMMING IS A CHALLENGE
 COMPUTER PROGRAM STRUCTURE
 JAVA PROGRAM LIFE CYCLE
 FIRST JAVA PROGRAM (HELLO JAVA)
ENG. AHMED ELBADAWY - FALL 2016
3
 It’s a set of instructions that were written by a
programmer that tells a computer what to do.
 Computer programs come in all shapes and sizes, from
the very simplest ones we’ll look at below (the “Hello,
World!” program is the most well-known) to extremely
large, integrated systems with multiple functionality
controlling factories, big business accounts, banks,
world markets, scientific research, etc. etc.
ENG. AHMED ELBADAWY - FALL 2016
4
 Why is this? Because you basically have to learn
everything at once.
 You can’t write a program that does anything without
knowing something at least about a lot of things, any
more than you should drive a car without knowing about
the accelerator, brake, clutch, gears, road rules,
indicators. . .You can find a nice place to practice driving
where you have to worry about as few of these things as
possible, but you can’t get going without sitting in the
driver’s seat and trying it—so let’s get started!
ENG. AHMED ELBADAWY - FALL 2016http://www.shutterstock.com/pic-65752078/stock-photo--d-
rendering-work-flows-concept-input-process-output-isolated-on-white-
background.html?src=LfatOa6qMllGAEym0FJ7FA-1-36
5
 Simply computer programs consists of:
ENG. AHMED ELBADAWY - FALL 2016
6
 There are 4 main processes in the java program life
cycle
WRITE
CODE
SAVE
CODE
COMPILE
CODE
RUN OR
EXECUTE
ENG. AHMED ELBADAWY - FALL 2016 http://searchsoftwarequality.techtarget.com/definition/integrated-
development-environment
7
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
THERE ARE TWO WAYS
TO WRITE A JAVA
PROGRAM:
1- TEXT EDITOR
(NOTEPAD).
2- JAVA IDE
(JCRAETOR).An integrated development
environment (IDE) is a programming
environment that has been packaged as
an application program, typically
consisting of a code editor, a compiler, a
debugger, and a graphical user
interface (GUI) builder. The IDE may
be a standalone application or may be
included as part of one or more existing
and compatible applications.
ENG. AHMED ELBADAWY - FALL 2016
8
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
Saving java code has
two very important
rules:
1- you have to save the
file with the same class
(java program) name or
identifier.
2- the file extension must
be file name.java
ENG. AHMED ELBADAWY - FALL 2016
9
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
A compiler is a special
program that processes
statements written in a
particular programming
language and turns them into
machine language or "code"
that a computer's
processor uses
(http://whatis.techtarget.com/d
efinition/compiler)
So generally, compiling
code means translating the
code instruction to the
language that the computer
can understand
(will discuss later in lecture 3)
ENG. AHMED ELBADAWY - FALL 2016
10
WRITE
CODE
SAVE
CODE
COMPIL
E CODE
RUN OR
EXECUT
E
The computer processor
executes the program
instructions then the user gets
the output
ENG. AHMED ELBADAWY - FALL 2016
11
public class firstlab
{
public static void main (String [] args)
{
System.out.print("HELLO JAVA");
}
}
References
ENG. AHMED ELBADAWY - FALL 2016
12
 Introduction to Programming, Michael
Charleston, sydney.edu.au

More Related Content

Similar to Programming I lecture 1

Android reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skypeAndroid reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skypeMário Almeida
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingPVS-Studio
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
USES of java.pptx
USES of java.pptxUSES of java.pptx
USES of java.pptxXanGwaps
 
Review Paper on Online Java Compiler
Review Paper on Online Java CompilerReview Paper on Online Java Compiler
Review Paper on Online Java CompilerIRJET Journal
 
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...marjoramg
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDEpawannile
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDEpawannile1
 
Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Mohamed Essam
 
Journey to the center of the software industry world
Journey to the center of the software industry worldJourney to the center of the software industry world
Journey to the center of the software industry worldAmr Salah
 
Integrate Shindig with Joomla
Integrate Shindig with JoomlaIntegrate Shindig with Joomla
Integrate Shindig with JoomlaAnand Sharma
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)mafffffe19
 
Functional Requirements Of System Requirements
Functional Requirements Of System RequirementsFunctional Requirements Of System Requirements
Functional Requirements Of System RequirementsLaura Arrigo
 
Software Development Standard Operating Procedure
Software Development Standard Operating Procedure Software Development Standard Operating Procedure
Software Development Standard Operating Procedure rupeshchanchal
 
Unit 1 vb study_materials
Unit 1 vb study_materialsUnit 1 vb study_materials
Unit 1 vb study_materialsgayaramesh
 

Similar to Programming I lecture 1 (20)

Android reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skypeAndroid reverse engineering - Analyzing skype
Android reverse engineering - Analyzing skype
 
Building of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code loggingBuilding of systems of automatic C/C++ code logging
Building of systems of automatic C/C++ code logging
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Codename one
Codename oneCodename one
Codename one
 
USES of java.pptx
USES of java.pptxUSES of java.pptx
USES of java.pptx
 
Java script hello world
Java script hello worldJava script hello world
Java script hello world
 
Review Paper on Online Java Compiler
Review Paper on Online Java CompilerReview Paper on Online Java Compiler
Review Paper on Online Java Compiler
 
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
Connect 2014 AD209 - Making Your Development Team More Productive With IBM Do...
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDE
 
Working with Java development IDE
Working with Java development IDEWorking with Java development IDE
Working with Java development IDE
 
Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Intro to programing with java-lecture 1
Intro to programing with java-lecture 1
 
Journey to the center of the software industry world
Journey to the center of the software industry worldJourney to the center of the software industry world
Journey to the center of the software industry world
 
Integrate Shindig with Joomla
Integrate Shindig with JoomlaIntegrate Shindig with Joomla
Integrate Shindig with Joomla
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)
 
Functional Requirements Of System Requirements
Functional Requirements Of System RequirementsFunctional Requirements Of System Requirements
Functional Requirements Of System Requirements
 
Software Development Standard Operating Procedure
Software Development Standard Operating Procedure Software Development Standard Operating Procedure
Software Development Standard Operating Procedure
 
Teamwork Presentation
Teamwork PresentationTeamwork Presentation
Teamwork Presentation
 
Spring Framework Rohit
Spring Framework RohitSpring Framework Rohit
Spring Framework Rohit
 
Unit 1 vb study_materials
Unit 1 vb study_materialsUnit 1 vb study_materials
Unit 1 vb study_materials
 

Recently uploaded

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
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
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
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
 
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
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Programming I lecture 1

  • 2. ENG. AHMED ELBADAWY - FALL 2016 2  WHAT IS PROGRAMMING ?  LEARNING PROGRAMMING IS A CHALLENGE  COMPUTER PROGRAM STRUCTURE  JAVA PROGRAM LIFE CYCLE  FIRST JAVA PROGRAM (HELLO JAVA)
  • 3. ENG. AHMED ELBADAWY - FALL 2016 3  It’s a set of instructions that were written by a programmer that tells a computer what to do.  Computer programs come in all shapes and sizes, from the very simplest ones we’ll look at below (the “Hello, World!” program is the most well-known) to extremely large, integrated systems with multiple functionality controlling factories, big business accounts, banks, world markets, scientific research, etc. etc.
  • 4. ENG. AHMED ELBADAWY - FALL 2016 4  Why is this? Because you basically have to learn everything at once.  You can’t write a program that does anything without knowing something at least about a lot of things, any more than you should drive a car without knowing about the accelerator, brake, clutch, gears, road rules, indicators. . .You can find a nice place to practice driving where you have to worry about as few of these things as possible, but you can’t get going without sitting in the driver’s seat and trying it—so let’s get started!
  • 5. ENG. AHMED ELBADAWY - FALL 2016http://www.shutterstock.com/pic-65752078/stock-photo--d- rendering-work-flows-concept-input-process-output-isolated-on-white- background.html?src=LfatOa6qMllGAEym0FJ7FA-1-36 5  Simply computer programs consists of:
  • 6. ENG. AHMED ELBADAWY - FALL 2016 6  There are 4 main processes in the java program life cycle WRITE CODE SAVE CODE COMPILE CODE RUN OR EXECUTE
  • 7. ENG. AHMED ELBADAWY - FALL 2016 http://searchsoftwarequality.techtarget.com/definition/integrated- development-environment 7 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E THERE ARE TWO WAYS TO WRITE A JAVA PROGRAM: 1- TEXT EDITOR (NOTEPAD). 2- JAVA IDE (JCRAETOR).An integrated development environment (IDE) is a programming environment that has been packaged as an application program, typically consisting of a code editor, a compiler, a debugger, and a graphical user interface (GUI) builder. The IDE may be a standalone application or may be included as part of one or more existing and compatible applications.
  • 8. ENG. AHMED ELBADAWY - FALL 2016 8 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E Saving java code has two very important rules: 1- you have to save the file with the same class (java program) name or identifier. 2- the file extension must be file name.java
  • 9. ENG. AHMED ELBADAWY - FALL 2016 9 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses (http://whatis.techtarget.com/d efinition/compiler) So generally, compiling code means translating the code instruction to the language that the computer can understand (will discuss later in lecture 3)
  • 10. ENG. AHMED ELBADAWY - FALL 2016 10 WRITE CODE SAVE CODE COMPIL E CODE RUN OR EXECUT E The computer processor executes the program instructions then the user gets the output
  • 11. ENG. AHMED ELBADAWY - FALL 2016 11 public class firstlab { public static void main (String [] args) { System.out.print("HELLO JAVA"); } }
  • 12. References ENG. AHMED ELBADAWY - FALL 2016 12  Introduction to Programming, Michael Charleston, sydney.edu.au