Top Banner
Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE
22

Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Dec 25, 2015

Download

Documents

Alberta Eaton
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Using Java

MINISTRY OF EDUCATION & HIGHER EDUCATIONCOLLEGE OF SCIENCE AND TECHNOLOGYKHANYOUNIS- PALESTINE

Page 2: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

What is computer?Computer Organization Programming languages Java Class LibrariesTypical Java development

environment Case Study:Case Study: Unified Modeling

LanguageEmank X Mezank

2Presented & Prepared by: Mahmoud R. Alfarra

Page 3: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

A computer is a device capable of performing computations and making logical decisions at speeds millions (even billions) of times faster than human beings can.

Computers process data under the control of sets of instructions called computer programs.

3Presented & Prepared by: Mahmoud R. Alfarra

Page 4: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

A computer consists of various devices referred to as hardware. e.g.: The keyboard. Screen. Mouse. Disks …

The programs that run on a computer are referred to as software.

4Presented & Prepared by: Mahmoud R. Alfarra

Page 5: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

computer may be envisioned as divided into six logical units :1. Input unit. This is the "receiving"

section of the computer. It obtains information from input devices and places this information at the disposal of the other units so that it can be processed.

5Presented & Prepared by: Mahmoud R. Alfarra

Page 6: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

2. Output unit. This is the "shipping" section of the computer. It takes

information that the computer has processed and places it on various

output devices to make the information available for use outside

the computer. 3. Memory unit. This is the rapid-access,

relatively low-capacity "warehouse" section of the computer.

6Presented & Prepared by: Mahmoud R. Alfarra

Page 7: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

7Presented & Prepared by: Mahmoud R. Alfarra

4. Arithmetic and logic unit (ALU): This is the "manufacturing" section of the

computer. It is responsible for performing • Calculations

• The decision mechanisms

5. Central processing unit (CPU): This is the "administrative" section of the

computer. It coordinates and supervises the operation of the other sections.

Page 8: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

6. Secondary storage unit. This is the long-term, high-capacity "warehousing" section of the computer.

8Presented & Prepared by: Mahmoud R. Alfarra

Page 9: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Programming languages may be divided into three general types:1.Machine languages2.Assembly languages3.High-level languages

9Presented & Prepared by: Mahmoud R. Alfarra

In two pages, write what is algorithm, why and how do they represented ?In two pages, write what is algorithm, why and how do they represented ?HW 2.1

Page 10: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Any computer can directly understand only its own machine language.

It is defined by the computer hardware design.

Machine languages are machine dependent (i.e., a particular machine language can be used on only one type of computer).

10Presented & Prepared by: Mahmoud R. Alfarra

Page 11: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Machine languages generally consist of strings of numbers (0,1).

So, It was simply: Too slow Tedious for most programmers

11Presented & Prepared by: Mahmoud R. Alfarra

Page 12: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Programmers began using English-like abbreviations to represent elementary operations.

These abbreviations formed the basis of assembly languages.

12Presented & Prepared by: Mahmoud R. Alfarra

Page 13: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Translator programs called assemblers were developed to convert early assembly-language programs to machine language at computer speeds.

13Presented & Prepared by: Mahmoud R. Alfarra

Assembly instruction

s

Assemblers

Machine instructio

ns

Assemblers

Page 14: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

To speed the programming process, high-level languages were developed in which single statements could be written to accomplish substantial tasks.

Translator programs called compilers convert high-level language programs into machine language.

14Presented & Prepared by: Mahmoud R. Alfarra

high-level languages

Compilers Machine

instructions

Compilers

Page 15: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Java programs consist of pieces called classes.

Classes include pieces called methods that perform tasks and return information when they complete them.

15Presented & Prepared by: Mahmoud R. Alfarra

Java

Class

methods

Instructions

Page 16: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

16Presented & Prepared by: Mahmoud R. Alfarra

The collections of existing classes in the Java class libraries, are also known as the Java APIs (Application Programming Interfaces).

Page 17: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

17Presented & Prepared by: Mahmoud R. Alfarra

Page 18: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

18Presented & Prepared by: Mahmoud R. Alfarra

Page 19: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

19Presented & Prepared by: Mahmoud R. Alfarra

UML: a graphical language that allows people who design software systems to use an industry standard notation to represent them.

Study the case study from the text book of the course, section 1.16Study the case study from the text book of the course, section 1.16HW3.1

Page 20: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Fill in the blanks in each of the following statements:

1. The logical unit of the computer that receives information from outside the computer for use by the computer is the __________.

2. The process of instructing the computer to solve a problems is called ________.

3. __________ is a type of computer language that uses English-like abbreviations for machine-language instructions.

4. __________ is a logical unit of the computer that sends information which has already been processed by the computer to various devices so that it may be used outside the computer.

5. __________ and __________ are logical units of the computer that retain information.

6. __________ is a logical unit of the computer that performs calculations.

7. __________ is a logical unit of the computer that makes logical decisions.

8. __________ languages are most convenient to the programmer for writing programs quickly and easily.

9. The only language that a computer can directly understand is that computer's __________.

10.__________ is a logical unit of the computer that coordinates the activities of all the other logical units.

20Presented & Prepared by: Mahmoud R. Alfarra

Solve the following practice… Solve the following practice… HW3.2

Page 21: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

ل@ى Bص Dالل@ه Dول Jس Bر MنBع ،JهMنBع الله Bي Dض Bر Bة Bام BمJأ بDي

B أ MنBل@ى ع Bص Dالل@ه Dول Jس Bر MنBع ،JهMنBع الله Bي Dض Bر Bة Bام BمJأ بDي

B أ MنBع : Bال Bق ، Bل@م BسBو DهMيBلBع Jالل@ه : Bال Bق ، Bل@م BسBو DهMيBلBع Jالل@ه( Jع Bف MرBيDل Dال Bم aالش BبDاح Bص إDن@

DوB أ DئDطMخJمMال DمDل MسJمMال DدMبBعMال DنBع nاتBاع Bس ت@ Dس BمBل BقMال

إDال Bو ا، Bاه BقMلB أ ا BهMن Dم Bالل@ه Bر BفMغBت MاسBو BمDدBن MنDإ Bف ،Dيء DسJمMالدBة| DاحBو MتBبDتJاأللباني ( ك حسنـه

21Presented & Prepared by: Mahmoud R. Alfarra

Page 22: Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE.

Main concepts of

Programming22

Presented & Prepared by: Mahmoud R. Alfarra