lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M....
Transcript of lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M....
![Page 1: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/1.jpg)
Programming with Javalecture#1
Second Year
Prepared by: Rasha M. Aleidan
![Page 2: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/2.jpg)
Outline
- Why Programming? - Why Study Programming? - Programming languages.- Our selection .- Why java?- Software.- First Program.- setting path Variable.
![Page 3: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/3.jpg)
Why Programming?
Need to tell computer.. what to do? By which? ==> Program: a set of instructions that directs the computer's behavior.
![Page 4: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/4.jpg)
Why Study Programming?
Years ago it was widely believed that entrance into the computer age would require practically everyone to learn how to program.Career as a computer scientist, ranges from engineering subjects, such as processor design, to mathematical subjects, such as performance analysis.it is a creative and enjoyable problem solving activity.
![Page 5: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/5.jpg)
Programming Languages
1. Machine languages لغة اآللة
understood by its CPU or microprocessorbased on the binary code 0's and 1's.x = a+b = 1101101010011010 Dis.:
boring.a lot of errors.
![Page 6: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/6.jpg)
Programming Languages
2. Assembly languages: لغة التجمیع
x = a+b = add x, a, b
Dis.: Slower.Example: Assembly
![Page 7: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/7.jpg)
Programming Languages
3. High level languages: لغات عالیة المستوى - لغات الجیل الثالث
x = a+b
Dis: Machine dependent .Example: C++, C, VISUAL BASIC,
![Page 8: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/8.jpg)
Which programming language will be used?
http://box424.com/wp-content/uploads/2010/09/Web_Programming_Language.jpg
![Page 9: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/9.jpg)
Our selection
![Page 10: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/10.jpg)
Why Java Language?
Platform independent:
java byte code
Robust: many errors detected before a program is run. Object oriented.
Java Virtual machine
![Page 11: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/11.jpg)
Software1. Java virtual Machine:
Download: http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html
2.GRASPDownload:
http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html
![Page 12: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/12.jpg)
First Program
public class welcome { public static void main (string[] args) { System.out.printIn("welcome to java"); }}
![Page 13: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/13.jpg)
Process Of Java Programming
![Page 14: lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M. Aleidan. Outline - Why Programming? - Why Study Programming? - Programming languages.](https://reader036.fdocuments.in/reader036/viewer/2022081607/5f01c6487e708231d400f8b5/html5/thumbnails/14.jpg)
Process Of Java Programming
1- write or create the code using notepad as an example.