1 / 22

Introduction To Programming Information Technology , 1’ st Semester

MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE. Using Java. Introduction To Programming Information Technology , 1’ st Semester . Lecture 3 : Introduction to computer & Programming. Teacher: Mahmoud Rafeek Alfarra. Outline.

fran
Download Presentation

Introduction To Programming Information Technology , 1’ st Semester

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE Using Java Introduction To ProgrammingInformation Technology , 1’st Semester Lecture 3 : Introduction to computer & Programming Teacher: Mahmoud Rafeek Alfarra

  2. Outline • What is computer? • Computer Organization • Programming languages • Java Class Libraries • Typical Java development environment • Case Study: Unified Modeling Language • Emank X Mezank Presented & Prepared by: Mahmoud R. Alfarra

  3. What is computer? • 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. Presented & Prepared by: Mahmoud R. Alfarra

  4. Computer Consists • 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. Presented & Prepared by: Mahmoud R. Alfarra

  5. Computer Organization • computer may be envisioned as divided into six logical units : • 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. Presented & Prepared by: Mahmoud R. Alfarra

  6. Computer Organization • Output unit. This is the "shipping" section of the computer. It takes information that the computer has processed and places it on various output devicesto make the information available for use outside the computer. • Memory unit. This is the rapid-access, relatively low-capacity "warehouse" section of the computer. Presented & Prepared by: Mahmoud R. Alfarra

  7. Computer Organization • Arithmetic and logic unit (ALU):This is the "manufacturing" section of the computer. It is responsible for performing • Calculations • The decision mechanisms • Central processing unit (CPU):This is the "administrative" section of the computer. It coordinates and supervises the operation of the other sections. Presented & Prepared by: Mahmoud R. Alfarra

  8. Computer Organization • Secondary storage unit. This is the long-term, high-capacity "warehousing" section of the computer. Presented & Prepared by: Mahmoud R. Alfarra

  9. Programming languages • Programming languages may be divided into three general types: • Machine languages • Assembly languages • High-level languages HW 2.1 In two pages, write what is algorithm, why and how do they represented ? Presented & Prepared by: Mahmoud R. Alfarra

  10. Machine language • 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). Presented & Prepared by: Mahmoud R. Alfarra

  11. Machine language • Machine languages generally consist of strings of numbers (0,1). • So, It was simply: • Too slow • Tedious for most programmers Presented & Prepared by: Mahmoud R. Alfarra

  12. Assembly languages • Programmers began using English-like abbreviations to represent elementary operations. • These abbreviations formed the basis of assembly languages. Presented & Prepared by: Mahmoud R. Alfarra

  13. Assembly languages • Translator programscalled assemblers were developed to convert early assembly-language programs to machine language at computer speeds. Assembly instructions Assemblers Machine instructions Assemblers Presented & Prepared by: Mahmoud R. Alfarra

  14. High-level languages • 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. high-level languages Compilers Machine instructions Compilers Presented & Prepared by: Mahmoud R. Alfarra

  15. Java Class Libraries • Java programs consist of pieces called classes. • Classes include pieces called methods that perform tasks and return information when they complete them. Class methods Instructions Java Presented & Prepared by: Mahmoud R. Alfarra

  16. Java Class Libraries • The collections of existing classes in the Java class libraries, are also known as the Java APIs (Application Programming Interfaces). Presented & Prepared by: Mahmoud R. Alfarra

  17. Typical Java development environment Presented & Prepared by: Mahmoud R. Alfarra

  18. Typical Java development environment Presented & Prepared by: Mahmoud R. Alfarra

  19. Case Study: Unified Modeling Language • UML: a graphical language that allows people who design software systems to use an industry standard notation to represent them. HW3.1 Study the case study from the text book of the course, section 1.16 Presented & Prepared by: Mahmoud R. Alfarra

  20. HW3.2 Solve the following practice… Fill in the blanks in each of the following statements: • The logical unit of the computer that receives information from outside the computer for use by the computer is the __________. • The process of instructing the computer to solve a problems is called ________. • __________ is a type of computer language that uses English-like abbreviations for machine-language instructions. • __________ 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. • __________ and __________ are logical units of the computer that retain information. • __________ is a logical unit of the computer that performs calculations. • __________ is a logical unit of the computer that makes logical decisions. • __________ languages are most convenient to the programmer for writing programs quickly and easily. • The only language that a computer can directly understand is that computer's __________. • __________ is a logical unit of the computer that coordinates the activities of all the other logical units. Presented & Prepared by: Mahmoud R. Alfarra

  21. Emank X Mezank عَنْ أَبِي أُمَامَةَ رَضِيَ الله عَنْهُ، عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، قَالَ : (إِنَّ صَاحِبَ الشِّمَالِ لِيَرْفَعُ الْقَلَمَ سِتَّ سَاعَاتٍ عَنِ الْعَبْدِ الْمُسْلِمِ الْمُخْطِئِ أَوِ الْمُسِيءِ، فَإِنْ نَدِمَ وَاسْتَغْفَرَ اللَّهَ مِنْهَا أَلْقَاهَا، وَإِلا كُتِبَتْ وَاحِدَةً) حسنـه الألباني Presented & Prepared by: Mahmoud R. Alfarra

  22. Next… Main concepts of Programming Presented & Prepared by: Mahmoud R. Alfarra

More Related