Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE Using Java 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 2 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 3 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 4 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. Presented & Prepared by: Mahmoud R. Alfarra 5 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. Presented & Prepared by: Mahmoud R. Alfarra 6 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. Presented & Prepared by: Mahmoud R. Alfarra 7 6. Secondary storage unit. This is the long-term, high-capacity "warehousing" section of the computer. Presented & Prepared by: Mahmoud R. Alfarra 8 Programming languages may be divided into three general types: 1. Machine languages 2. Assembly languages 3. 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 9 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 10 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 11 Programmers began using English-like abbreviations to represent elementary operations. These abbreviations formed the basis of assembly languages. Presented & Prepared by: Mahmoud R. Alfarra 12 Translator programs called assemblers were developed to convert early assemblylanguage programs to machine language at computer speeds. Assembly instructions Assemblers Machine instructions Assemblers Presented & Prepared by: Mahmoud R. Alfarra 13 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 highlevel language programs into machine language. high-level languages Compilers Machine instructions Compilers Presented & Prepared by: Mahmoud R. Alfarra 14 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 15 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 16 Presented & Prepared by: Mahmoud R. Alfarra 17 Presented & Prepared by: Mahmoud R. Alfarra 18 HW3.1 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.16 Presented & Prepared by: Mahmoud R. Alfarra 19 Solve the following practice… HW3.2 Fill in the blanks in each of the following statements: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 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 20 َ َ ُ ع ْنهُ ،ع ْ عىَ ْين ِه َّللهُ َ ي هللا َ ض ر ة م ا م أ ي ب ع َْن أ سنل ِِ ِ ِ َّلله َ َنىِا ِ َنن َر ُ َ َ ِ َ ِ َ سناعَا سىِ َم ،قَنا َِ ِ ( :إ ِن َ َ َّللش ِ ِّن َما ِِ ِشيَ ْرفَن ُُ َّلل ْشََىَن َم ِ َ ِ سن ِ َ َل َ ناِ َ َّلله س ِ يء ،فَ ِإ ْن نَ ِد َم َلَّلل ْ س ِى ِم َّلل ْش ُم ْخ ِط ِئ أ َ ِل َّلل ْش ُم ِ ع َِن َّلل ْشعَ ْب ِد َّلل ْش ُم ْ ست َ ْغفَ َر ِ َ حسنـه األلباني َّللِدَة) ِم ْن َها أ َ ْشََا َهاَ ،ل ِإال ُكتِبَ ْ َل ِ 21 Presented & Prepared by: Mahmoud R. Alfarra Main concepts of Programming Presented & Prepared by: Mahmoud R. Alfarra 22