+ All Categories
Home > Documents > lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M....

lecture#1 - progrmmingwithjava.files.wordpress.com · lecture#1 Second Year Prepared by: Rasha M....

Date post: 04-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
14
Programming with Java lecture#1 Second Year Prepared by: Rasha M. Aleidan
Transcript
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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Process Of Java Programming

1- write or create the code using notepad as an example.


Recommended