PG 2
Abacus uses rows of sliding beads to perform arithmetic operations and has root that data back more than 5,000 years to ancient Babylonia.
A computer is a mechanical or electronic device that can efficiently store, retrieve, and manipulate large amounts of information at high speed and with great accuracy. It can execute task and act without human interaction by carrying out a list of instructions called a program.
Charles Babbage an englishman, designed and partially built a true computer in the mid 1800s called analytical engine could process 40 digit numbers.
PG 3
ENIAC or Electronic Numerical Integrator and Computer build by Presper Eckert and John Mauchly was a huge machine 80 feet long and 8 feet high, Weighed 33 tons and contained over 17K vacuum tubes in its electronic circuits and consumed 175K watts of electricity. It could perform 5K additions per second .
PG 4
PC or personal computer introduced in 1974, thanks to the invention of microchip, a piece of silicon packed with thousands of electronic components and the microprocessor.
PG 7
The internet is a worldwide collection of networks. A network consist of two or more linked computers that are able to share resources and data via cable or phone lines. Internet has roots that data back to a small U.S. Defense Department project in the late 1960s. The worldwide web originated in 1989. Web 2.0 consist of web applications that facilitate information sharing, user centered design and collaboration. Web 2.0 it is not an update or change in technical specifications, but rather change the way people use the web.
PG 8 CPU, Internal memory, mass storage devices are located in the system unit.
Input and output devices are housed in the own enclosures or sometimes called peripherals.
PG 9
CPU or Central processing unit is the brain of the computer. It receives programs instruction, performs the arithmetic and logical operations necessary to execute them and controls the other computer components.
CPU, transistors are plugged in to the main circuit board or motherboard.
ROM Read Only Memory contains unalterable set of instructions used for computer boot up process.
RAM or Random access memory can be read from and written to. The smallest unit of memory is the bit. A bit can only store a zero or a one. A byte consist of 8 bits.
Memory is measured in Kilobytes (KB), Megabytes (MB) or gigabytes (GB)
One KB is 1024 bytes, one MB is 1024 KB. A GB is 1073741824 bytes
128 MB 1024 GBMB 1,024 bytes KB = 134, 217, 728 bytes
PG 14
Applications are programs used to enhance productivity, solve problems, supply information, or provide recreation.
PG 15
System software consists of the programs used by the computer to control and maintain its hardware to communicate with the user. The most important piece of system sofrware is the Operating System (OS). Operating System has two essential functions:
It helps applications communicate with the computer hardware.
Provides an interface between user and the computer.
Programming Language is a set of symbols and the rules governing their use that are used in constructing program. There are three fundamental types of programming languages:
Machine Languages
Assembly Languages
High-level Languages
Machine Language is a sequence of bits. Each combination of bits is an instruction to the computer about something. Machine language is the only language computers can understand. It is difficult for humans to read or write machine language programs. For this reason, programmers normally use either assembly or high-level languages.
Assembly Language symbolic representation of machine language. Each assembly language instruction translates into one machine language instruction. However Assembly language uses recognizable codes, lot easier for people to understand.
PG 16
Assembler translates Assembly language to Machine Language.
High-Level languages usually contain english words and phrases. Their symbols and structure are far removed from those of machine language. Easily to learn and use and the resulting of programs are easier to read and modify. A single instruction in high level language usually translates into many machine instructions.
FORTRAN was the first high-level language developed in mid 1950s, primarily for engineering and scientific applications.
C++ is currently one of the most popular languages. It is used for efficient programming of many different types of applications.
COBOL (COmmon Business Oriented Language)
JAVA very popular language used for web applications.
Visual Basic a new version of BASIC. Runs on graphical user interfaces.
PG 17
To write a program you need a set of programs text editor, debugger helps find error in a program, a compiler or interpreter helps translate program to machine language.
Chapter 1 Introduction to Programming
PG 25 What is programming?
General Problem-Solving strategy:
Understand the problem. Do research and ask question about the problem.
Devise a plan of action. Create a precise list of steps of things to do to resolve the problem.
Carry Out your plan. Execute each step you planned.
Review the results. Once, performed the listed tasks. Check to see that the information is correct. Revise every detail. We say problem-solving is a cyclic process because we often return to the beginning or redo previous work before arriving at a satisfactory solution.
PG 26
Creating Computer Programs:
Program Development Cycle
Analyze the problem. Determine what information you are given. what results you need to get, what information you need to get those results, and in general terms, how to proceed from the known data to the results.
Design a problem to solve the problem. This is the heart of the development process.
Code the program. Write computer code in a computer language that implement step 2.
Test the program. Run the program to see if it solves the problem. PG 27
Basic Programming Concepts
Project to figure out how many songs you can buy for long plane ride to Paris.
Notions of Data
Input
Constants
Variables
Concepts of Processing
Output
Types of Data. the numbers, words, or collection of symbols that is manipulated by a program.
PG 28
Simple Program
Calculator to perform to calculate the cost:
Enter the number of songs to be purchased into the calculator.
Press the multiple (x) key.
Enter 0.99
Press the equals (=) key.
The total cost will appear in the display
PG 29
Computer program statements to calculate the cost
Input the number of songs you wish to download Today: Songs
Compute the cost of the purchase:
Set DollarPrice = 0.99 * Songs
Display the value of the DollarPrice
Set of statements shown above are known as pseudocode.
Computer programs are written in programming languages and follow and exact Syntax. The Syntax of a computer language is its rules of usage.
PG 31
pseudocode uses the word Write “Enter Message”to display messages and other information in the screen. pseudocode uses statement Input to allow the user to enter data.
PG 32
Variable is used to store data. It’s quantity can change value during the execution of program.
Constant a value that cannot be changed during the program execution; When a constant gets a name it is called a Named constant. ex. DollarPrice = 0.99
PG 33
Variable Names rules:
All variable names must be one word.
Underscores are allowed and hypens are usually allowed, but spaces are never allowed.
Variable names can be long; in fact, many languages allow more than 200 characters.
Use uppercase letters to distinguish one word from another.
Most languages allow numbers to be part of variable names, but variable names should never start with a number.
Make sure Variable names are meaningful.
PG 34
Set Statement assigns the value of the expression on the right of the equals sign to the variable or also known as assignment statement.
PG 36
All programming languages use at least four basic arithmetic operators-addition, substraction, multiplication, and division. Some languages contain other arithmetic operators, such as exponentiation (taking a number to a power) and modulus.
The modulus operator may seem odd at first, but as you start to write programs you will see its many uses. The modulus operator is a positive integer that returns the remainder after diving one number by another.
PG37
Hierarchy of Operations the order arithementic operations are performed is as follows:
Perform the operation in parenthese (from the inside out, of there are parenthses within parentheses)
Perform exponentiations
Do multiplications, divisions, and modulus (from left to right if there is more than one)
Do additions and subtractions (from left to right if there is more than one)
Computer will always apply the hierarchy of operations to any mathematical expression in a program.
PG 43
Character string (or string) is a sequence of characters.
Declare Statement. Used to declare a variable.ex.
Declare VariableName As Datatype
PG 44
Peseudocode uses Carather stame for non numeric data. ex.
Declare Response as Character.
Must programming languages include at least one string operator, concatenation, which takes two strings and joins them to produce a string result. For example, if String1= “Part” and String2 = “Time”, then the statement.
PG 46
Integer Data
Most programming languages allow at least two types of numeric data to be used in programs: integers and floating point numbers.
Integer data consist of all the whole numbers, negative, zero and positive.
Floating point number data consist of all number that include a decimal part.
Declaring an Integer statement
Declare number As Integer
Declating an floating point number
Declare Price As Float
You May Also Find These Documents Helpful
-
| Microprocessors are the software components that help to make the personal computer possible. Microprocessors are essentially the brains inside of a pc.…
- 441 Words
- 2 Pages
Satisfactory Essays -
Computer= A device that processes-receives in, thinks about, changes, stores, sends out, displays, and prints data in the form of bits.…
- 465 Words
- 2 Pages
Satisfactory Essays -
Computers have become one of our necessities in our daily life which makes it so hard to imagine a time when they did not really exist. And the birth of first computer occurred in 1950. It was the Electrical Numerical Integrator and Calculator or ENIAC. It was made out of 18,000 vacuum tubes which made it to consume about 180,000 watts of electrical power. However, it was only capable to give function such as multiplying numbers rapidly. Due to rapid growth in population, Census Bureau of United States decided to have a machine to tabulate the data, hence,…
- 755 Words
- 4 Pages
Good Essays -
Computer –Definition: A computer is a machine which stores data that has been put on there; you are the controller of this machine.…
- 1181 Words
- 4 Pages
Satisfactory Essays -
In 1944 the very first electronic- mechanical computer called MARK 1 was created at Harvard. This machine was a massive calculator that was fifty one feet wide and eight feet tall (Chee, 1997). The beginning of the smaller computers that we know today started in 1959 when Honeywell developed the first computers that used transistors. These were followed by IBM who used integrated circuits. The very first personal computers were built in the 1970’s with the computers that are recognizable today starting in 1974 with…
- 748 Words
- 3 Pages
Good Essays -
A computer is an electronic device operating under the controls of instructions stored in its own memory unit that can accept data (input), process data arithmetically and logically produce output for processing and store result for future use.…
- 6894 Words
- 29 Pages
Powerful Essays -
From the introduction of the counting frame, or more popularly known as the abacus1, it was realized that the creation of a tool that is able assist in mathematical calculations will greatly increase productivity and efficiency needs of man2. The use of abaci continued for numerous centuries up to the years when early calculators made use of hole-placements in a dial to signify a count—similar to that of a rotary dial telephone3. As the years progressed people needed more. It was seen that the simple addition, subtraction, and multiplication functions were not enough. The need for memory storage features arose. People at that time perceived the abacus, comptometers, Napier's bones, books of mathematical tables, slide rules, and other manual tool used for computing as tedious and error-prone2. From this need came the development of the early non-electronic computers.…
- 3223 Words
- 13 Pages
Best Essays -
1. The first electronic digital computer (called ENIAC - the Electronic Numerical Integrator and Calculator) was developed in 1946 and contained over 18,000 vacuum tubes.…
- 880 Words
- 4 Pages
Good Essays -
References: Burks, A. W., and A. R. Burks. 1981. The ENIAC: First general-purpose electronic computer. IEEE Annals of the History of Computing 3 (4): 310–399.…
- 1531 Words
- 7 Pages
Powerful Essays -
Many encyclopaedias and other reference works state that the first large-scale automatic digital computer was the Harvard Mark 1, which was developed by Howard H. Aiken (and team) in America between 1939 and 1944. However, in the aftermath of World War II it was discovered that a program controlled computer called the Z3 had been completed in Germany in 1941, which means that the Z3 pre-dated the Harvard Mark I. Prof. Hurst Zuse (http://www.epemag.com/zuse/)…
- 1492 Words
- 6 Pages
Powerful Essays -
A computer is a set of electronic device that can systematically and sequentially follow a set of instructions called a program to perform high-speed arithmetic and logical operations on data.…
- 437 Words
- 2 Pages
Good Essays -
First-generation computers used vacuum tube technology that store data (1946 – 1958). (Troy, 2014) The ENIACE (Electrical Numerical Integrator and Computer) which used vacuum was designed and built 1944 by John…
- 1274 Words
- 6 Pages
Powerful Essays -
If you look at how computers evolved, you will notice that first generation computers made use of vacuum tubes. These computers were expensive and bulky. They used machine language for computing and could solve just one problem at a time. They did not support multitasking. Till the 1950s all computers that were used were vacuum tube based. In the 1960s, transistor based computers replaced vacuum tubes. Transistors made computers smaller and cheaper. They made computers energy-efficient. But transistors led to emission of large amounts of heat from the computer, which could damage them. The use of transistors marked the second generation of computers. Computers of this generation used punched cards for input. They used assembly language. The use of Integrated circuits ushered in the third generation of computers. Their use increased the speed and efficiency of computers. Operating systems were the human interface to computing operations and keyboards and monitors became the input-output devices. COBOL, one of the earliest computer languages, was developed in 1959-60. BASIC came out in 1964. It was designed by John George Kemeny and Thomas Eugene Kurtz. Douglas Engelbart invented the first mouse prototype in 1963. Computers used a video display terminal (VDT) in the early days. The invention of…
- 1522 Words
- 7 Pages
Powerful Essays -
* Zuse- A German engineer invented computer he used telephone relays. Relays- on and off binary system counting 0 to 10 switch in the on position equals one off position equals 10. Binary numbers could be added and subtracted to do computer arithmetic would need 100’s of switches…
- 407 Words
- 2 Pages
Satisfactory Essays -
In the early 1820’s mathematician and scientist Charles Babbage designed a mechanical computer called the Difference Engine. Although it wasn’t completed by Babbage, the Difference Engine was intended to be a machine with a 20-decimal capacity that could solve mathematical problems. He also made plans for another machine called the Analytical Engine. It was designed to perform all arithmetic operations efficiently; however Babbage’s lack of political skills kept him from obtaining the approval and limits to build it.…
- 554 Words
- 3 Pages
Good Essays