- Количество слайдов: 19
introduction to computer programming itc-314 lecture 01
course grading Total Marks: 100 (Theory) 60 Marks = Final paper 20 Marks = Midterm Tests 10 Marks = Assignments 05 Marks = Presentations 05 Marks = Class Performance Practical: Total Marks: 100 Ø 80 Marks: Final Practical Ø 10 Marks: Lab Tasks Ø 10 Marks: Lab Performance
overview: The term” Computer Programming” refers to create a set of instructions that enable computer to do something. Computer Programming is very important course in the field of Information Technology as the topics covered in it will be encountered by you again and again in the future courses. The study of computer science teaches us how to use computers, how to organize the data and also how to create programs that can be used by computer to solve problems.
goals The aim of this course is to understand what is computer programming, why we learn programming, what are the programming languages, what are categories and generations of languages, what steps are needed to create a programs by using different computer languages etc. In this course we will also discuss about various programming languages that can be used to create programs. In this course we will mainly emphasize on C programming language.
introduction to computers Computer A computer is an electronic device which converts raw data by processing into meaningful information. The word “computer” comes from the word “Compute” which means to calculate. Hence, a computer is normally considered to be a calculating device, which that perform arithmetic operation and logical operations at enormous speed.
data Data are simply values or set of values. The English word Data is a plural of word Datum, which means fact. Therefore, we can say that Data means facts. Data is a group of characters (digits, alphabets, or other characters) which represents a specified value or condition. or Data consists of raw facts, which the computer can manipulate and process into information that is useful to people. Some examples of data items: 3, 5, 99, 50 A 1, F 16, AB-10, Islamabad, Karachi, Asad
information The organization of data in a meaningful form is called Information. or Meaningful or processed data is called Information. Example: 2 + Data= 5 3 Information
basic components of computer A computer system can perform variety of tasks according to specific instructions. These tasks are perform by computer by using its components. A digital computer system is totally based on its components that are attached or installed in it. There are two main components of a computer system. 1) Hardware 2) Software
Hardware The physical components of computer system is called Hardware is also known as Tangible part of the computer. or A computer’s hardware consists of electronic devices. The parts you can see and touch. The term ‘device’ refers to any piece of hardware used by computer, such as keyboard, monitor, modem etc. i. iii. iv. A computer’s hardware devices are categorized as follows: CPU or Processor Secondary Storage or Backing Storage Input Devices Output Devices
cpu or processor The Processor is also called CPU stands for Central Processing Unit. CPU is also called brain or heart of computer. It manages all the devices and performs the actual processing of data, means all processing, manipulating, mathematical, logical operations and temporary storage are done by CPU. It has the following three parts: ◦ Arithmetic Logic Unit (ALU) ◦ Control Unit (CU) ◦ Memory Unit ALU: ALU performs all the arithmetic and logic operations. CU: Control Unit is responsible for coordinating all the operations of the entire computer system. It also arranges to get programs instructions from memory, interprets them and has the desired action performed.
memory Memory is a storage area where all the programs and required data are stored. Two Types. ◦ Main Memory / Primary Memory ◦ Secondary Memory / Backing Storage
secondary memory used to hold programs and data for long term use. Examples of secondary memory are cd-rom, floppy disks, USB flash drives etc. considered as non-volatile storage. comparison between main memory and secondary memory
i/o devices: The Input / output devices are necessary for human beings to interacts with computers. input devices: The input devices are used to feed data and programs into computer. Input devices accept data and instructions from the user or from another computer system. Data and instructions must enter the computer system before any computation can be performed on the data. This task is performed by the input unit. The following functions are performed by an input unit. i. It accepts data from outside world through an input device. ii. Convert these data into computer usable form. iii. Supplies the converted data to computer for processing. Some examples of input devices are Keyboard, Mouse, Trackball, Light Pen, voice synthesizer etc.
i/o devices cont…. i. iii. output devices: Output devices return processed data back to the user or to another computer system. The job of an output unit is just reverse of an input unit. Following functions are performed by an output unit. It accepts the result produced by computer (CPU). It converts these coded result to human acceptable(readable) form. It supplies the converted results to the user through an output device. Some examples of output devices are Monitor and Printer.
Hardware components alu input output cu memory
software Software (also called programs) consists of organized set of instructions for controlling the computer. Software is also called intangible part of a computer. or Software is a set of electronic instructions that tells the computer how to do certain tasks. A set of instructions is often called a program. The two most common types of programs or software system software and application software.
system software System software consists of programs that controls the overall operations of system. System software used to help the computer to perform specific functions System software needed to keep all the hardware and software systems running together smoothly. One major type of system software is the operating system (OS). The OS tells the computer how to interact with the user and its own devices. Examples: Operating Systems like Linux, Windows, Unix, Solaris, Mac. OS.
application software Software that are create to perform a specific function is called Application software. Application Software used by people to get their work done. Application software tells the computer how to accomplish tasks the user requires, such as creating a document or editing a graphic image. Some important kinds of application software are: Word Processor, Game programs, Spreadsheets programs, Database programs etc.
basic operations of computer: All computer systems perform the following five basic operations, for converting raw data into the information, which are: inputting: The process of entering data and instructions into the computer system. storing: Saving data and instructions to make them readily available for initial or additional processing as when required. processing: Performing arithmetic operations or logical operations on data to convert them into a useful information. outputting: The process of producing useful information or result for the user, such as visual display or printed report. controlling: Directing the manner and sequence in which all the above operations are performed.