Preview

Programming with Java-Lecture Notes

Powerful Essays
Open Document
Open Document
5210 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Programming with Java-Lecture Notes
M255 Object Oriented Programming with Java
Week 1
This lecture notes covers unit1. 1. Introduction: M255 module: Object Oriented Programming with Java concerns on teaching the principles of Object Oriented such as objects, classes, inheritance, and polymorphism using Java language. You have two CDs in this module: • Online Application CD which has the StarOffice application, and • M255 CD that has the blueJ, microworld and others. When you install M255 CD be sure that all options are selected, just determine the folders you want to install on and follow instructions during the installation process. 2. Fundamental hardware and software concepts What is a computer? A device that accepts input, processes data, stores data, and produces output. These are the main basic tasks of a computer. Simply, any computer system is composed of computer hardware and software. The hardware components of a computer system are the electronic and mechanical parts. The software components of a computer system are the intangible parts: it is a general term of all the applications, programs, and systems that run on your computer. Software consists of sets of instructions that tell a computer how to perform a particular task. 2.1 Computer Hardware The main hardware devices are classified as: 1. Essential parts of a computer : CPU & main memory 2. Peripheral devices, which is any component of the computer that is not part of essential devices, such as: Input/Output devices, secondary storage (Storage devices). Some peripherals are mounted in the same case as processor such as hard disks, others such as printers are physically outside the computer. An input device gathers and translates input into a form that the computer can process, these are devices such as: keyboard, mouse, scanner, microphone, cardreader, and bar reader.
Prepared by: Dr. Bayan Abu Shawar, AOU-Jordan

1

Processing data is done in a device called central processing unit (CPU). A processor is, (the brain of a

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 5 Essay

    • 437 Words
    • 2 Pages

    CPU – Register, ALU, control unit - The CPU is a type of processor which acts as the brains of a computer and is an important part of any computer.…

    • 437 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Unit 2 Assignment 1

    • 1912 Words
    • 8 Pages

    The processor (CPU) is essentially the brain of a computer system. The role of the CPU is mainly to process everything from basic instructions to complex function. The well known measure of the CPU is clock speed and it is measured in MHz or GHz. The different manufacturers of the CPU are Texas Instruments, Intel Corp, Centaur Technology etc..…

    • 1912 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Powerful Essays

    The processor is the brain of the computer. It handles all instructions in programs loaded into RAM and gets information from the HDD or SSD. It handles data in binary.…

    • 1180 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    Also known as the processor, the CPU is the heart of the computer and has two part:…

    • 1186 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    The Central Processing Unit (CPU) is one of the main parts of the computer, which is used for processing. The Central Processing Unit is known as the processor. The processor is needed to perform the different tasks at once, you need the OS to execute all of these tasks in a systemic way. It basically allows the devices to work concurrently without issues.…

    • 580 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    ET2750

    • 545 Words
    • 2 Pages

    The processor is the central processing unit (CPU) that handles all logical operations and performs all the mathematical computations.…

    • 545 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Deitel, H.M., & Deitel, P.J. (2002). Java: How to program (6th ed.). Upper Saddle River, NJ: Pearson…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.…

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Powerful Essays

    The following information will introduce general knowledge in basic programming concepts. It shall discuss basic types of computer programming languages as-well-as program development. There are three basic types of computer programming languages that will be discussed in a simple and easy to understand manner. We shall also describe the program development cycle and discuss why it is important to use a structured and organized process to create a computer programming language.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Computers are basically all around us now and they have become part of our daily living. Not only can it perform calculations much more quickly than a person can, it can also do many complex tasks simultaneously. Thanks to the computers, they help us make the complicated jobs much easier, help us to do tasks quicker and communicate with friends and family with one click, and play a significant role in the school system as well. The computer has significantly changed our world. Perhaps you already know how to use a computer, but how familiar are you with what’s inside of it? There isn't any single part called the "computer." A computer is a system of many parts working together. The computer is made up of two main parts, hardware and software. Hardware is the physical parts that you can touch and see. Software, on the other hand, refers to the instructions, or programs, that tell the hardware what to do. In the following article, I am going to introduce to you the main parts of a computer. These components include input devices, output devices, a system unit, and storage devices.…

    • 452 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    The Art and Science of Java

    • 3909 Words
    • 16 Pages

    1. Babbage’s Analytical Engine introduced the concept of programming to computing. 2. Augusta Ada Byron is generally recognized as the first programmer. The U.S. Department of Defense named the Ada programming language in her honor. 3. The heart of von Neumann architecture is the stored-programming concept, in which both data and programming instructions are stored in the same memory system. 4. Hardware is tangible and comprises the physical parts of a computer; software is intangible and consists of the programs the computer executes. 5. The abstract concept that forms the core of computer science is problem-solving. 6. For a solution technique to be an algorithm, it must be • Clearly and unambiguously defined • Effective, in the sense that its steps are executable • Finite, in the sense that it terminates after a bounded number of steps 7. Algorithmic design refers to the process of designing a solution strategy to fit a particular problem; coding refers to the generally simpler task of representing that solution strategy in a programming language. 8. A higher-level language is a programming language that is designed to be independent of the particular characteristics that differentiate computers and to work instead with general algorithmic concepts that can be implemented on any computer system. The higher-level language used in this text is called Java. 9. Each type of computer has its own machine language, which is different from that used in other computers. The compiler acts as a translator from the higher-level language into the machine language used for a specific machine. 10. A source file contains the actual text of a program and is designed to be edited by people. An object file is created by the compiler and contains a machine-language representation of the program. Most programmers never work directly with object files. 11. A syntax error is a violation of the grammatical rules of the programming…

    • 3909 Words
    • 16 Pages
    Powerful Essays
  • Satisfactory Essays

    My Wish

    • 332 Words
    • 2 Pages

    * Part of the core team to organize the Technical Fest ‘CYBONIX’ in the year 2010.…

    • 332 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Conventionally, a computer consists of at least one processing element, typically a central processing unit (CPU) and some form of memory. The processing element carries out arithmetic and logic operations, and a sequencing and control unit that can change the order of operations based on stored information. Peripheral devices allow information to be retrieved from an external source, and the result of operations saved and retrieved.…

    • 281 Words
    • 2 Pages
    Satisfactory Essays