Preview

Computer programming

Powerful Essays
Open Document
Open Document
958 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer programming
Lecture 1
Introduction to Computers and C++ Programming

1








What is Computer?
Computer Organization
Computer Languages
C++
Your First Program in C++
Variables and Operators

Computer Programming
(HKU SPACE HDIT 10/11)

2

Computer Programming
(HKU SPACE HDIT 10/11)

3



Computer

◦ Device capable of performing two major functions
1.
2.

Computations
Making logical decisions



Computer programs



Hardware

◦ Sets of instructions used by computers to process data
◦ Various devices comprising computer

 Keyboard, monitor, mouse, disks, DVD-ROM, processing units, etc. 

Software

◦ Programs that run on computer, i.e., sets of instructions to command computer to perform actions and make decisions ◦ Computer programs are subset of software

Computer Programming
(HKU SPACE HDIT 10/11)

4



Six logical units of computer
1. Input unit

 “Receiving” section
 Obtains information from input devices
 Keyboard, mouse, microphone, scanner, networks, etc.

2. Output unit

 “Shipping” section
 Takes information processed by computer
 Places information on output devices
 Screen, printer, networks, etc.
 Information may be used to control other devices
(becomes input of other devices)

Computer Programming
(HKU SPACE HDIT 10/11)

5

3. Memory unit
 “Warehouse” section
 Rapid access, relatively low capacity
 Retains information from input unit
 Immediately available for processing

 Retains processed information
 Until placed on output devices

 E.g., Random Access Memory (RAM)

4. Arithmetic and logic unit (ALU)
 “Manufacturing” section
 Performs arithmetic calculations and logic decisions

Computer Programming
(HKU SPACE HDIT 10/11)

6

5. Central processing unit (CPU)

 “Administrative” section
 Supervises and coordinates other sections of computer 6. Secondary storage unit

 Long-term, high-capacity “warehouse”

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Coding

    • 335 Words
    • 2 Pages

    of any impingements. The camera was then removed from the subacromial space. The area was then infiltrated with Marcaine. The posterior portal was then closed with absorbable sutures and Steri-Strips, and a Mepore dressing was placed on it. The arm was then placed in a sling; the patient awakened and was placed on her hospital bed and taken to the recovery room in good…

    • 335 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Intro to programming

    • 534 Words
    • 3 Pages

    Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 534 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Programming

    • 3038 Words
    • 13 Pages

    2. Each of the flowchart segments in Figure 3-35 is unstructured. Redraw each flowchart segment so that it does the same thing but is structured.…

    • 3038 Words
    • 13 Pages
    Good Essays
  • Powerful Essays

    computer year 11 summary

    • 6894 Words
    • 29 Pages

    (i) Input - involves accepting data in machine-readable form and sending it to the Central Processing…

    • 6894 Words
    • 29 Pages
    Powerful Essays
  • Satisfactory Essays

    Intro to Computers

    • 340 Words
    • 2 Pages

    Draw a block diagram showing the major components of a computer and their relationships. Briefly describe the function of each component. [RQ, no. 3]…

    • 340 Words
    • 2 Pages
    Satisfactory 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
  • Good Essays

    Programming Languages

    • 527 Words
    • 3 Pages

    1. When working with programming languages, what is meant by “syntax”? Give one or more examples.…

    • 527 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Programming Language

    • 8547 Words
    • 35 Pages

    Madam Amna Naveed Lecturer CIIT Lahore, Lahore Subject: Report on Programming Languages Dear Madam, We are submitting herewith our report entitled “Programming Languages” as a partial fulfillment of the Report Writing Skills course requirement. The main purpose of this report is to promote the knowledge about the different languages used in the industry The report states the brief history of the language and its basic syntax. Some of the distinguishing features which differentiate it from other languages have also been described. Also discussed are the limitations of the language and the amendments made in them over the years. As we have just started programming we did not know much about the languages beforehand. So during the research phase, we learnt a lot new of things about the languages. But we could not find any resource person having knowledge pertaining to the languages we chose. So we had to rely completely on the secondary sources. We hope that this report will merit your approval. Sincerely,…

    • 8547 Words
    • 35 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Programming

    • 586 Words
    • 3 Pages

    La y Soche a t a Ry an A ngkor:just giv e me ur phone number.…

    • 586 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Introdustion to Programing

    • 1986 Words
    • 8 Pages

    As this course is titled “Introduction to programming”, therefore it is most essential and appropriate to understand what programming really means. Let us first see a widely known definition of programming.…

    • 1986 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Programming case

    • 5390 Words
    • 24 Pages

    SUMMARY: The main objective of this paper was to develop a separable linear programming model, considering a…

    • 5390 Words
    • 24 Pages
    Powerful Essays
  • Satisfactory Essays

    Programming

    • 360 Words
    • 2 Pages

    flow charts for csma Computed Personal Data DTR Approve voucher & payroll First copy of Approved voucher approved payroll & payroll Payroll & voucher Personal Data of new Employee & DTR Employee record MPR computed Payroll record Monthly payroll report Payroll file/report Payroll report Prepared voucher…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Java Programming

    • 2257 Words
    • 10 Pages

    Moreover, Swing is the primary Java GUI widget toolkit. It is part of Sun Microsystems' Java Foundation Classes (JFC) — an…

    • 2257 Words
    • 10 Pages
    Good Essays
  • Good Essays

    Programming Language

    • 1249 Words
    • 5 Pages

    As you make your way through the semester, try to keep the following snippet in mind:…

    • 1249 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    COMPUTER PROGRAMMING Programming languages for computers are developed with the primary objective of facilitating a large number of persons to use computers without the need to know in detail the internal structure of a computer. Languages are matched to the type of applications which are to be programmed using the language. The ideal language would be one which expresses precisely the specification of a problem to be solved, and converts it into a series of instructions for a computer. It is not possible to achieve this ideal as a clear specification of a problem is often not available and developing an algorithm from specifications requires subject knowledge and expertise. In actual practice, a detailed algorithm to solve a problem is the starting point and it is expressed as a program in a programming language. A large number of languages, over a thousand, exist each catering to a different class of applications. All modern programming languages (with one exception) are designed to be machine independent. In other words, the structure of the programming language would not depend upon the internal structure of a specified computer; one should be able to execute a program written in the programming language on any computer regardless of who manufactured it or what model it is. Programing Language is a set of instructions (codes) that controls a computer to perform some processing function or combination of functions. For the instructions to be carried out, a computer must execute a program, that is, the computer reads the program, and then follows the steps encoded in the program in a precise order until completion. A program can be executed many different times, with each execution yielding a potentially different result depending upon the options and data that the user gives the computer. It can also be simply defined as the process of specifying objects and the ways in which those objects interact to solve a problem. A computer is not intelligent. It cannot…

    • 2590 Words
    • 11 Pages
    Powerful Essays