Free Essay

A Computer Program

In:

Submitted By warrior77
Words 983
Pages 4
Shana Koh
John Barron
ENGL106-X-1205A-05

A computer program, also software, or just a program or application is a sequence of instructions written to perform a specified task with a computer. A computer requires programs to function, typically executing the program's instructions in a central processor. The program has an executable form that the computer can use directly to execute the instructions. The same program in its human-readable source code form, from which executable programs are derived (e.g., compiled), enables a programmer to study and develop its algorithms.
Computer source code is often written by computer programmers. Source code is written in a programming language that usually follows one of two main paradigms: imperative or declarative programming. Source code may be converted into an executable file (sometimes called an executable program or a binary) by a compiler and later executed by a central processing unit. Alternatively, computer programs may be executed with the aid of an interpreter, or may be embedded directly into hardware.
Computer programs may be categorized along functional lines: system software and application software. Two or more computer programs may run simultaneously on one computer, a process known as multitasking.
Computer programming is the iterative process of writing or editing source code. Editing source code involves testing, analyzing, and refining, and sometimes coordinating with other programmers on a jointly developed program. A person who practices this skill is referred to as a computer programmer, software developer or coder. The sometimes lengthy process of computer programming is usually referred to as software development. The term software engineering is becoming popular as the process is seen as an engineering discipline.
Computer programs can be categorized by the programming language paradigm used to produce them. Two of the main paradigms are imperative and declarative.
Programs written using an imperative language specify an algorithm using declarations, expressions, and statements. A declaration couples a variable name to a data type. For example: vary x: integer; . An expression yields a value. For example: 2 + 2 yields 4. Finally, a statement might assign an expression to a variable or use the value of a variable to alter the program's control flow. For example: x: = 2 + 2; if x = 4 then do something (); One criticism of imperative languages is the side effect of an assignment statement on a class of variables called non-local variables. Programs written using a declarative language specify the properties that have to be met by the output. They do not specify details expressed in terms of the control flow of the executing machine but of the mathematical relations between the declared objects and their properties. Two broad categories of declarative languages are functional languages and logical languages. The principle behind functional languages (like Haskell) is to not allow side effects, which makes it easier to reason about programs like mathematical functions. The principles behind logical languages (like Prolog) are to define the problem to be solved — the goal — and leave the detailed solution to the Prolog system itself. The goal is defined by providing a list of sub goals. Then each sub goal is defined by further providing a list of its sub goals, etc. If a path of sub goals fails to find a solution, then that sub goal is backtracked and another path is systematically attempted.
The form in which a program is created may be textual or visual. In a visual language program, elements are graphically manipulated rather than textually specified.
A computer program in the form of a human-readable, computer programming language is called source code. Source code may be converted into an executable image by a compiler or executed immediately with the aid of an interpreter.
Either compiled or interpreted programs might be executed in a batch process without human interaction, but interpreted programs allow a user to type commands in an interactive session. In this case the programs are the separate commands, whose execution occurs sequentially, and thus together. When a language is used to give commands to a software application (such as a shell) it is called a scripting language.
Compilers are used to translate source code from a programming language into either object code or machine code. Object code needs further processing to become machine code, and machine code is the central processing unit's native code, ready for execution. Compiled computer programs are commonly referred to as executable, binary images, or simply as binaries — a reference to the binary file format used to store the executable code.
Interpreted computer programs - in a batch or interactive session - are either decoded and then immediately executed or are decoded into some efficient intermediate representation for future execution. BASIC, Perl, and Python are examples of immediately executed computer programs. Alternatively, Java computer programs are compiled ahead of time and stored as a machine independent code called bytecode. Bytecode is then executed on request by an interpreter called a virtual machine.
The main disadvantage of interpreters is that computer programs run slower than when compiled. Interpreting code is slower than running the compiled version because the interpreter must decode each statement each time it is loaded and then perform the desired action. However, software development may be faster using an interpreter because testing is immediate when the compiling step is omitted. Another disadvantage of interpreters is that at least one must be present on the computer during computer program execution. By contrast, compiled computer programs need no compiler present during execution.
No properties of a programming language require it to be exclusively compiled or exclusively interpreted. The categorization usually reflects the most popular method of language execution. For example, BASIC is thought of as an interpreted language and C a compiled language, despite the existence of BASIC compilers and C interpreters. Some systems use just-in-time compilation (JIT) whereby sections of the source are compiled 'on the fly' and stored for subsequent executions.

Similar Documents

Premium Essay

Computer Program

...COMPUTER PROGRAM/CODE Oxford Dictionary: A series of coded software instructions to control the operation of a computer or other machine. Webster’s Dictionary: A sequence of instructions that a computer can interpret and execute; "the program required several hundred lines of code". A program is an intermediate language that helps the user and the machine communicate. The user gives instructions to the machine through the program and the machine sends its output back to the user the same way. A computer program or code, more specifically, is a set of instructions in an intermediate language between the user and a computer. The computer only understands a language called the binary language which is too complex for every user to learn. Hence, we have programming languages, which are basically languages, which convert our instructions in English to instructions in the binary language for the computer to understand and interpret. Computer programmers are those who learn these languages and can create lines of instructions for the computer. These lines put together form a code or program. All the websites, applications, games, security systems, operating systems and possibly everything we use on a computer have a code to them. Whenever we input something from the keyboard or mouse, it is sent to the code of the application and then interpreted by the code. The interpreted message is then processed by the code and a resulting action is output by the code to the...

Words: 349 - Pages: 2

Free Essay

How to Write a Computer Program

...How to Write a Computer Program Everyone at one point in their life has had to solve a problem. In school we are taught problem solving techniques such as: identify the problem, analyze the problem, identify possible solutions, analyze and compare possible solutions, implement solutions and review the results. Writing a computer program is essentially solving a problem, so it follows similar steps. The steps in writing a computer program are: analyze the problem, design the program, code the program and test the program. As there is a vast amount of computer languages that programs can be written in, these steps are not language specific and more are a form of programming prewriting. In analyzing the problem you first need to answer a few questions. The most important of these is what result do you want? The result will be the output of the program. Next, you need to determine what information needs to be inputted into your program to receive the desired output. Lastly, you need to determine how you are going to take your input information and turn it into your output information. An example problem is that you want to determine the price of items before and after tax. Your inputs would be: the price of the item, expressed as ItemPrice; the amount of tax, expressed as TaxRate; and the amount of that item, expressed as ItemQuantity. The output would then be the amount of the item before and after tax has been included, expressed as OriginalPrice and TaxPrice respectively...

Words: 1031 - Pages: 5

Free Essay

State-of-Art Computer Program

...State-Of-Art Student Name: Indi Class/Section: CMIS Professor Name: Assignment due date: Problem Statement Calculate the total price to purchase all the components required to build a "State-of-the-Art" Gaming computer with option choices limited to three different components. Once the consumer adds up components to the Cart it will create shipping and state taxes (where to ship or billing address) before the final price. Options available for newegg.com Computer Hardware CPU (CPU1/CPU2/CPU3) Intel Core i5-3570K Ivy Bridge 3.4GHz - CPU1 - $224.99 Intel Core i7-4770 Haswell 3.4GHz - CPU2 - $309.99 Intel Core i7-3770K Ivy Bridge 3.5GHz - CPU3 - $329.99 CASE (CS1/CS2/CS3) Corsair Graphite Series 230T - CS1 - $79.99 Case Rosewill THOR V2 Gaming ATX - CS2 - $129.99 CM Storm Trooper - Gaming Full Tower Computer - CS3 - $149.99 PSU (PSU1/PSU2/PSU3) Corsair Graphite Series 230T - PSU1 - $59.99 Cooler Master Elite 430 - PSU2 - $49.99 Rosewill Blackhawk Gaming - PSU3 - $89.99 Motherboard (MB1/MB2/MB3) Asus Maximus vi Hero LGA 1150 Intel - MB1 - $199.79 ASRock Fatal1ty B85 Killer LGA 1150 Intel - MB2 - $104.99 Gigabyte GA-X79-UP4 LGA 2011 Intel X79 - MB3 - $242.99 HDD (HDD1/HDD2/HDD3) Seagate Hybrid Drive ST1000DX001 1TB MLC/8GB 64MB Cache SATA 6.0Gb/s NCQ 3.5" Desktop SSHD Seagate Hybrid Drive ST1000DX001 1TB - HDD1 - $96.99 Seagate Hybrid Drive ST2000DX001 2TB - HDD2 - $129.99 WD Black Series WD3003FZEX 3TB - HDD3 - $194.99 RAM (RAM1/RAM2/RAM3) ...

Words: 1111 - Pages: 5

Premium Essay

Algebra II: Science, Mathematics, Computer Science Program

...Algebra II is my favorite class related to the focus of the Science, Mathematics, Computer Science program. I learn many things that may help me in real-life situations and help me understand how computers work. One of the most interesting things I learned about was Linear Programming because we solved real-life problems using it. One problem was about a company selling two types of trail mix. Each type of trail mix used the same two ingredients, but different quantities. There were constraints on the ingredients. We learned to write equations for the constraints, graph them, and find a feasible region. We wrote the profit equation and tested the points of intersection from the feasible region to find which combination had the greatest profit. Matrices were also interesting to me. I found them fascinating because they help me understand how computer programs do complex functions. We learned about row reduction, determinants, and inverses. Study, work, and interaction are very important in math class....

Words: 667 - Pages: 3

Premium Essay

Computer Program

...Professor Almarooq February 14, 2015 The firewall I would choose for this company would be the NIST 800-10-divides into three basic types to firewall they are using (www.searchingnetworks.com). These are going to be most modern firewalls to have all abilities with one or more that is going to be use in the matter. This firewalls has all to the transmission control when it able to examine the matter which is been use at that present time (www.searchingnetworks.com). It will have all communication which these are composed on four layers, so it will work together with the hose when it’s been use (www.searchnetworks.com). It will have better communication between the computers that are been use at the present time in the matter. Also it will do better for business in the long run for the company. The focus would be on TCP/IP communication that has all four layers between hosts of making things better for the company (www.searchnetworks.com). If Cisco uses this check point in technology it would make a difference in the world. Also in this process it will have the network from its travels when it comes to high layer to the lowest layers to get the correct information in the matter (www.secureworks.com). It’s getting all the right opportunity for the business when it comes to that matter. With that process the lowest layer could have accumulated data of physical network when it’s use in the matter (www.secureworks...

Words: 768 - Pages: 4

Free Essay

Computer Programs

...Министерство образования и науки Российской Федерации Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования «Камчатский государственный университет имени Витуса Беринга» 2012-2013 учебный год Кафедра европейских языков Курсовая работа По дисциплине «Теория и методика обучения английскому языку» Использование компьютерных программ при изучении лексики на младшем этапе | Выполнила: студентка факультета иностранных языков, 4 курса, группы АН-092 Ююкина Алена Игоревна | | Научный руководитель:кандидат педагогических наук, доцент кафедры европейских языков Сутормина Елена Вячеславовна | Петропавловск-Камчатский 2013 СОДЕРЖАНИЕ Введение…………………………………………………………………………..3 Глава 1. Роль и место использования компьютерных программ при изучении лексики на младшем этапе……………………………………………5 1.1 Компьютерное обучение как педагогическая технология и ее историческое развитие……………………………………………………………5 1.2 Теоретические основы компьютерного обучения…………………………10 1.3 Преимущества использования компьютерных программ при изучении лексики английского языка на младшем этапе………………………………...12 1.4 Роль компьютерных программ в процессе обучения иностранному Языку……………………………………………………………………………..15 Глава 2. Технология работы с компьютерными программами в процессе обучения иностранному языку на младшем этапе…………………………….19 2.1 Технология работы с компьютерной...

Words: 6888 - Pages: 28

Premium Essay

Troubleshooting

...TROUBLESHOOTING Common Windows errors and how to fix them I have problems in Windows after installing new software Issue I have problems in Windows after installing new software. Cause After installing any utility, driver, or other software program you can encounter an almost endless list of issues that can be caused by any of the below reasons. 1. Confliction with other software installed on the computer. 2. Issue with program. 3. Improper installation or problems with installation. Solution Reinstall or uninstall the program If you're encountering problems with your computer or other programs after installing new software on your computer, uninstall the program and see if the issues persist. • Uninstalling Windows software. After the program has been uninstalled try installing the program again. • How to install a software program. Note: If after installing a program you're unable to boot into Windows, try booting into Safe Mode. Check for software program updates or new versions If you continue to experience issues verify that the program, game, or utility you're installing doesn't have any updates by visiting the developer of the program website. If you're installing a software program or drivers for a hardware device such as a printer. Get the latest software and drivers from the manufacturer instead of using the included software. A listing of links to drivers can be found on our drivers page. How do I fix illegal operations...

Words: 2688 - Pages: 11

Premium Essay

Quality Control

...LEARNING OBJECTIVES | Review Checkpoints | Exercises, Problems and Simulations | 1. List and describe the general and application controls in a computerized information system. | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 | 52, 53, 54, 55, 57, 58, 59, 60, 61, 62, 66 | 2. Explain the difference between auditing around the computer and auditing through the computer. | 14, 15, 16 | 51, 65 | 3. List several techniques auditors can use to perform tests of controls in a computerized information system. | 17, 18, 19, 20, 21 | 64 | 4. Describe the characteristics and control issues associated with end-user and other computing environments. | 22, 23, 24, 25 | 63 | 5. Define and describe computer fraud and the controls that an entity can use to prevent it. | 26, 27, 28, 29, 30 | 56 | SOLUTIONS FOR REVIEW CHECKPOINTS H.1 Given its extensive use, auditors must consider clients’ computerized information systems technology. All auditors should have sufficient familiarity with computers, computerized information systems, and computer controls to be able to complete the audit of simple systems and to work with information system auditors. More importantly, auditors must assess the control risk (and the risk of material misstatement) regardless of the technology used for preparing the financial statements. In a computerized processing environment, auditors must study and test information...

Words: 10310 - Pages: 42

Free Essay

Sdfsagfdsgsaddfs

...TO MAKE PROVISIONS SECURING COMPUTER MATERIAL AGAINST UNAUTHORISED ACCESS OR MODIFICATION AND FOR CONNECTED PURPOSES Enacted by the Parliament of the Bahamas PART I PRELIMINARY Short title and commencement. 1. Act, 2003. (1) (2) This Act may be cited as the Computer Misuse This Act shall come into operation on such day as the Minister may, by notice published in the Gazette, appoint. Interpretation. 2. (1) In this Act "computer" means an electronic, magnetic, optical, electrochemical, or other data processing device, or a group of such interconnected or related devices, performing logical, arithmetic, or storage functions, and includes any data storage facility or communications facility directly related to or operating in conjunction with such device or group of such interconnected or related devices, but does not include (a) (b) an automated typewriter or typesetter; a portable hand held calculator; 2 (c) a similar device which is nonprogrammable or which does not contain any data storage facility; or (d) such other device as the Minister may, by notice published in the Gazette, prescribe; “computer output” or “output” means a statement or representation (whether in written, printed, pictorial, graphical or other form) purporting to be a statement or representation of fact (a) (b) produced by a computer; or accurately translated from a statement or representation so produced; "computer service" includes computer time, data processing and the...

Words: 4152 - Pages: 17

Free Essay

Kong

...August 1997 Contents 1 The Computer 1.1 Central Processing Unit . . . . . . . . . . . . . . . . . . . 1.2 Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.2.1 Main memory . . . . . . . . . . . . . . . . . . . . . 1.2.2 External Memory . . . . . . . . . . . . . . . . . . . 1.3 Input/Output Devices . . . . . . . . . . . . . . . . . . . . 1.4 The system bus . . . . . . . . . . . . . . . . . . . . . . . . 1.5 More about memory and information representation . . . 1.5.1 Representation of information in external memory 1.6 The execution cycle . . . . . . . . . . . . . . . . . . . . . 1.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.8 Multiple Choice Questions . . . . . . . . . . . . . . . . . . 1.9 Review Questions . . . . . . . . . . . . . . . . . . . . . . . 2 Programming Languages 2.1 Assembly Language . . . 2.2 High level Languages . . . 2.3 Summary . . . . . . . . . 2.4 Multiple Choice Questions 11 13 13 14 14 15 16 16 17 17 18 19 19 20 21 22 23 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Operating Systems 25 3.1 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.2 Multiple Choice Questions . . . . . . . . . . . . . . . . . . . . 27 4 Preparing a Computer Program 29 4.1 Summary . . . . . ....

Words: 10667 - Pages: 43

Premium Essay

Business Information Technology

...importance of computer literacy Identify the various types of software Define the term computer and identify its components Describe the categories of computers Explain why a computer is a powerful tool Introduction to Computers Determine how the elements of an information system interact Recognize the purpose of a network Discuss the uses of the Internet and the World Wide Web Identify the various types of computer users Discuss computer applications in society Recognize the difference between installing and running a program 1 2 A World of Computers What Is a Computer? What is computer literacy? How is a computer defined? Electronic device operating under the control of instructions stored in its own memory Knowledge and understanding of computers and their uses The computer Computers are everywhere first, Accepts data such as raw facts, figures, and symbol then, Processes data into information (Data that is organized, meaningful, and useful ) finally, Produces and stores results 3 4 The Components of a Computer What is the information processing cycle? What is an _____ device? input Hardware used to enter data and instructions Input Process Output Storage Communication 5 6 1 The Components of a Computer The Components of a Computer What is an ______ device? output What is the system unit? Hardware that conveys information to a user Box-like case containing electronic components used to process data 7 The Components of a Computer What is the...

Words: 1308 - Pages: 6

Premium Essay

Computer Career

...The career that I’m going into is computer science. It all started when I was 14 years old, I won an Jack Lease’s award that inspired my interested me in computers because I got an IBM desk top and an scholarships that’s why I love working with computers. Computer science is a growing career field with good pay and fun, but you need to go to college, now about programs, hardware and have plenty of time to put into computers. Computer science is a growing career field because every day there is some new programs, computer, cell phone, and tablets being made. Expiable “The Holy Grail of computer vision is to tell a story using an image or video, and have the computer understand on some level what it is seeing," that was one of mania reasons way computer science is a large going career field to get into. Also ever day the people of the world are looking for some sort of programs computers to make it easier to manage their everyday life. So in short with the pay (“Starting salary: $59,800 Mid-career salary: $102,000”) I will make and full that I’ll have at building or programming computers in my career in computer science is well worth my time to do. The education that I need for computer science is a bachelor degree. Which I’ll be taking up class that I feel fit for my career that I’m going into like programming class computer hardware classes and understanding computer consents. If I do have more time to use I’ll like to take up a couple over classes too...

Words: 410 - Pages: 2

Premium Essay

Nt1330 Unit 7-1 Case Study

...Scenario 7-1: Automating Computer Maintenance and Program Launching Maria is a busy freelance writer who uses her computer many hours a day to research and write articles for several national magazines and newspapers. Her computer, which runs Windows 7 Professional, must be running at peak performance with little downtime. Maria has little time to devote to computer maintenance tasks. She also uses Internet Explorer 9 and Microsoft Word 2010 every day and would like them to start automatically when Windows starts. Maria asks you for advice how to maintain her computer with relatively little effort, and how to configure her computer to start programs automatically. What do you tell her? Tell Maria to ensure that Disk Defragmenter is scheduled to run at least once...

Words: 738 - Pages: 3

Premium Essay

Transforming Data Into Information

...the input, processing and output of data. Also additional information will be covered about, the various computer components, the definition of data and information, the application program along with the operating system, higher language, machine code, and lastly graphical versus mathematical or statistical output. Input, processing, and output are the basic beginnings of turning data into information. When creating any program for any type of information, the first step is to input the data we have received and needed for the program. The data could be for any type of situation, such as how many customers have purchased a certain product or have they been satisfied with the product. This type of information is received due to the customer feedback data. Once this data is input into program writing software, it then must be processed into computer language to give you the information you require. The input and processing portion is very important in the program writing evolution, as it is where the bulk of your work will be completed. Once the data has been processed, you will receive the output information. This is where your information will come from. The computer’s inner components will allow one to complete tasks of running programs. The CPU, or Central Processing Unit, is essentially the brain of the computer. The CPU processes data in the software programs and executes it for the user. The...

Words: 997 - Pages: 4

Premium Essay

Study Pn Evolution of Computer Software

...STUDY ON EVOLUTION OF COMPUTERS STUDY ON EVOLUTION OF SOFTWARE Introduction Computer software, or just software, is any set of machine-readable instructions that directs a computer's processor to perform specific operations. The term is used to contrast with computer hardware; the physical objects carry out the instructions. Hardware and software require each other and neither has any value without the other. The first theory about software was proposed by Alan Turing in his 1935 essay Computable numbers with an application to the Entscheidungsproblem (decision problem). Colloquially, the term is often used to mean application software. In computer science and software engineering, software is all information processed by computer system, programs and data. The academic fields studying software are computer science and software engineering. The types of software include web pages developed in languages and frameworks like PHP, Perl, JSP or ASP.NET and desktop applications like OpenOffice.org, Microsoft Word developed in languages like C, C++, Objective-C, Java, C#, or Smalltalk. Application software usually runs on underlying software operating systems such as Linux or Microsoft Windows. Software (or firmware) is also used in video games and for the configurable parts of the logic systems of automobiles, televisions, and other consumer electronics. Software evolution is the term used in software engineering (specifically software...

Words: 1086 - Pages: 5