Pages

7:
Blog Tips

data types in c


Data Types in C

Integer types:
Integers are whole numbers with a range of values, range of values are machine dependent. Generally an integer occupies 2 bytes memory space and its value range limited to -32768 to +32767 (that is, -215 to +215-1). A signed integer use one bit for storing sign and rest 15 bits for number.
To control the range of numbers and storage space, C has three classes of integer storage namely short int, int and long int. All three data types have signed and unsigned forms. A short int requires half the amount of storage than normal integer. Unlike signed integer, unsigned integers are always positive and use all the bits for the magnitude of the number. Therefore the range of an unsigned integer will be from 0 to 65535. The long integers are used to declare a longer range of values and it occupies 4 bytes of storage space.

Syntax: int <variable name>; like
int num1;
short int num2;
long int num3;

Example: 5, 6, 100, 2500.

Integer Data Type Memory Allocation


Floating Point Types:
The float data type is used to store fractional numbers (real numbers) with 6 digits of precision. Floating point numbers are denoted by the keyword float. When the accuracy of the floating point number is insufficient, we can use the double to define the number. The double is same as float but with longer precision and takes double space (8 bytes) than float. To extend the precision further we can use long double which occupies 10 bytes of memory space.

Syntax:          float <variable name>; like
float num1;
double num2;
long double num3;

Example:      9.125, 3.1254.
Floating Point Data Type Memory Allocation

Character Type:
Character type variable can hold a single character. As there are singed and unsigned int (either short or long), in the same way there are signed and unsigned chars; both occupy 1 byte each, but having different ranges. Unsigned characters have values between 0 and 255, signed characters have values from –128 to 127.

Syntax: char <variable name>; like
char ch = ‘a’;

Example:      a, b, g, S, j.

Void Type:
The void type has no values therefore we cannot declare it as variable as we did in case of integer and float.

The void data type is usually used with function to specify its type. Like in our first C program we declared “main()” as void type because it does not return any value. The concept of returning values will be discussed in detail in the C function hub.

Secondary Data Types
·         Array in C programming
An array in C language is a collection of similar data-type, means an array can hold value of a particular data type for which it has been declared. Arrays can be created from any of the C data-types int,...
·         Pointer in C programming
·         In this tutorial I am going to discuss what pointer is and how to use them in our C program. Many C programming learner thinks that pointer is one of the difficult topic in C language but its not...
·         Structure in C programming
We used variable in our C program to store value but one variable can store only single piece information (an integer can hold only one integer value) and to store similar type of values we had to declare...
User defined type declaration
C language supports a feature where user can define an identifier that characterizes an existing data type. This user defined data type identifier can later be used to declare variables. In short its purpose is to redefine the name of an existing data type.

Syntax: typedef <type> <identifier>; like
typedef int number;

Now we can use number in lieu of int to declare integer variable. For example: “int x1” or “number x1” both statements declaring an integer variable. We have just changed the default keyword “int” to declare integer variable to “number”.




Data Types in C, Size & Range of Data Types.



CLICK HERE TO READ MORE

purpose of various parts of c progrm

1.Header file section:-Header file is defined at start of program.It is defined at head of program so it is called as header file.the name of header file is followed by "extention.h".The ".h" means header.The header file begins with # (hash or sharp) symbol.
e.g stdio.h is file used for standerd input/output function.Some of functions defined in this file are "scanf(), printf(), fscanf(), fopen(), fclose(), fof()".
e.g conio.h is file used for console input/output functions.Some of the functions defined in this file are "getch(), clerscr()".
e.g stdlib.h is used as standard library function.It contain "malloc(), calloc(), toupper(), tolower() functions"
e.g math.h is a file containing mathematical function.It contain "sqrt(), pow(), floor(), ceil(), sin(), cos()" functions.

2. Name of a program:- It is used to indicate the purpose of program.It indicate what is problem to be solved by program.It is given using comment operator at start of program.It is optional.

3.Main function:- The main function contain keyword main().It is indication to the compiler that program execution will be start from main().So main() is starting point of any program.There is only one main() in a c program.In main() function the logic of program is written.All statements and logic is written between pair of curly brackets{}.

4.Declaration part:- This part is used to declare variables of different data types.Initialization of variable is also done in this section.By initialization , we assign starting value to variables.

5.Executable part:- This part follows declaration part.In this part set of statements performing various, functions are defined.There can be single statement or  set of statements.Single statement can be written without curly brackets({}).Compound statements are are written using pair of curly brackets({}).

6.User defined function:- The function defined by user is called as user defined functions.These function are generally defined after main() function.There can be any number of user defined functions but there is only one main function.The body of these functions can be defined before main() function also.If body of functions is defined after main then prototype of function is defined above body of main() function.

7.Comments:-The comments are not necessary.But for good documentation these are added.Comment can be inserted anywhere in program.These are given by writing text between \*   and   * \.

Delimiters : Special type of symbols used for special purpose is called as delimiter.
e.g.
colon                   :
semi colon            ;
parenthesis          ( )
hash                     #
comma                 ,
square bracket     []


SAMPLE OF A 'C' PROGRAM :-

#include<stdio.h>
#include<conio.h>
main()
{
          int a,b,c;
           a=5;
           b=6;
           c=a+b;
           printf("The value of c= %d",c);
           getch();
}

OUTPUT :_

c=11
Download area.......
Download TCC

CLICK HERE TO READ MORE

INTRODUCTION OF C LANGUAGE

C Programming Language

Getting Started with C

The C program is a set of functions and the program execution begins by executing the function main. Here you will write the first C program.

C Data Types

C data types are used to store various types of data that is processed by program.

C Variables

A variable is a meaningful name of data storage location in computer memory. When using a variable you refer to memory address of computer.

C Operators

C programming language provides a wide range of operators such as: arithmetic operators, logical operators, bit-wise operators, assignment operators,relational operators...

C Control Flow

In this section, you will deal with common control flow in C programming language such as if, if-else, do-while loop, while loop, for loop and switch.

C Function

C function is a block of source code which does one or some tasks with specified purpose. Here you will learn how to program function, passing arguments to function and recursive function in C.

C Pointer

C Pointer is a memory address of a variable or another pointer. Click here to read and master C Pointer just in few minutes.

C Array

C array by definition is a variable that hold multiple elements which has the same data type.

C Structure

C programming language supports structure which allows you to wrap one or more variables with different data types.

C String

C string is defined as an array of characters or a pointer to characters. Click here to learn how to use C string.

C Dynamic Memory Allocation

C programming language provides you a powerful and flexible way to manage memory allocation at runtime. It is dynamic memory allocation.

CLICK HERE TO READ MORE

About C language

Program written in c are very efficient and fast. This is due to its variety of data types and powerful operators. It is many time faster than BASIC. This helps developers in saving their valuable time.
• C is a powerful and flexible language which helps system developers to deliver various complex tasks with ease. C is used for diverse projects as operating systems, word processors, graphics, spreadsheets, and even compilers for other languages.
• C is popular among professional programmers for programming, as a result, a wide variety of C compilers and helpful accessories are available.
• C is highly portable language. This means that a C program written for one computer system (an IBM PC, for example) can be run on another system (a DEC VAX system, perhaps) with little or no modification. Portability is enhanced by the ANSI standard for C, the set of rules for C compilers.
• C’s another striking feature is its ability to extend itself. A C program is basically a collection of various function supported by C library (also known as header files). We can also add our own functions to the C library. These functions can be reused in other applications or programs by passing pieces of information to the functions, you can create useful, reusable code.
• Writing C program with user-defined functions makes program more simple and easy to understand. Breaking a problem in terms of functions makes program debugging, maintenance and testing easier.
C has good interface with UNIX OPERATING SYSTEM.
C provide facility of dynamic allocation and deallocation of memory very fast.Pointer make memory related operation.
Facility of structure in C language make DBMS applications like:(a) maintenance of student records.
(b) maintenance of bank records.
(c) storing of employees related information.
As these features shows that C is an excellent choice for your first programming language.

CLICK HERE TO READ MORE

history of c language


A Brief History of the C Language


Before we start any complex program in C, we must understand what really C is, how it came into existence and how it differs from other languages of that time. In this tutorial I will try to talk about these issues and then move towards view structure of a typical C program.
C is a programming language which born at “AT & T’s Bell Laboratories” of USA in 1972. It was written by Dennis Ritchie. This language was created for a specific purpose: to design the UNIX operating system (which is used on many computers). From the beginning, C was intended to be useful--to allow busy programmers to get things done.
Because C is such a powerful, dominant and supple language, its use quickly spread beyond Bell Labs. In the late 70’s C began to replace widespread well-known languages of that time like PL/I, ALGOL etc. Programmers everywhere began using it to write all sorts of programs. Soon, however, different organizations began applying their own versions of C with a subtle difference. This posed a serious problem for system developers. To solve this problem, the American National Standards Institute (ANSI) formed a committee in 1983 to establish a standard definition of C. This committee approved a version of C in 1989 which is known as ANSI C. With few exceptions, every modern C compiler has the ability to adhere to this standard. ANSI C was then approved by the International Standards Organization (ISO) in 1990.
Now, what about the name? Why it was named C, why not something else. The C language is so named because its predecessor was called B. The B language was developed by Ken Thompson of Bell Labs.

Why Use C?

In today's world of computer programming, there are many high-level languages to choose from, such as Pascal, BASIC, and Java. But C stands apart from all these languages. This is due to its many desirable qualities. It is a robust language whose rich set of built-in functions and operators can be used to write any complex logic program. The C language compiler combines the capabilities of a low level language with the features of a high level language. Therefore the language is suitable for writing both system software as well as business packages & other software. You will many compilers available in the market written in C.

CLICK HERE TO READ MORE

Computer keyboard shortcut keys for windows....



Basic PC shortcut keys

Shortcut KeysDescription
Alt + FFile menu options in current program.
Alt + EEdit options in current program
F1Universal Help in almost every Windows program.
Ctrl + ASelect all text.
Ctrl + XCut selected item.
Shift + DelCut selected item.
Ctrl + CCopy selected item.
Ctrl + InsCopy selected item
Ctrl + VPaste
Shift + InsPaste
HomeGoes to beginning of current line.
Ctrl + HomeGoes to beginning of document.
EndGoes to end of current line.
Ctrl + EndGoes to end of document.
Shift + HomeHighlights from current position to beginning of line.
Shift + EndHighlights from current position to end of line.
Ctrl + Left arrowMoves one word to the left at a time.
Ctrl + Right arrowMoves one word to the right at a time.

F1 through F12 keys?


F1
  • Almost always used as the help key, almost every program will open the help screen when this key is pressed.
  • Enter CMOS Setup.
  • Windows Key + F1 would open the Microsoft Windows help and support center.
  • Open the Task Pane.
F2
  • In Windows commonly used to rename a highlighted icon or file.
  • Alt + Ctrl + F2 opens a new document in Microsoft Word.
  • Ctrl + F2 displays the print preview window in Microsoft Word.
  • Enter CMOS Setup.
F3
  • Often opens a search feature for many programs including Microsoft Windows.
  • In MS-DOS or Windows command line F3 will repeat the last command.
  • Shift + F3 will change the text in Microsoft Word from upper to lower case or a capital letter at the beginning of every word.
F4
  • Open find window.
  • Repeat the last action performed (Word 2000+)
  • Alt + F4 will close the program currently active in Microsoft Windows.
  • Ctrl + F4 will close the open window within the current active window in Microsoft Windows.
F5
  • In all modern Internet browsers pressing F5 will refresh or reload the page or document window.
  • Open the find, replace, and go to window in Microsoft Word.
  • Starts a slideshow in PowerPoint.
F6
F7
  • Commonly used to spell check and grammar check a document in Microsoft programs such as Microsoft Word, Outlook, etc.
  • Shift + F7 runs a Thesaurus check on the word highlighted.
  • Turns on Caret browsing in Mozilla Firefox.
F8
  • Function key used to enter the Windows startup menu, commonly used to access Windows Safe Mode.
F9
  • Opens the Measurements toolbar in Quark 5.0.
F10
F11
F12
  • Open the Save as window in Microsoft Word.
  • Shift + F12 save the Microsoft Word document.
  • Ctrl + Shift + F12 prints a document in Microsoft Word.
Tip Earlier IBM computers also had F13 - F24 on the keyboards. However, because these keyboards are no longer used they are not listed on this page.


Top 10 keyboard shortcuts everyone should know

Ctrl + C or Ctrl + Insert
Copy the highlighted text or selected item.
Ctrl + V or Shift + Insert
Paste the text or object that's in the clipboard.
Ctrl + Z and Ctrl + Y
Undo any change. For example, if you cut text, pressing this will undo it. This can also often be pressed multiple times to undo multiple changes. Pressing Ctrl + Y would redo the undo.
Ctrl + F
Open the Find in any program. This includes your Internet browser to find text on the current page.
Alt + Tab or Alt + Esc
Quickly switch between open programs moving forward.
Bonus Tip Press Ctrl + Tab to switch between tabs in a program.
Bonus Tip Adding the Shift key to Alt + Tab or Ctrl + Tab will move backwards. For example, if you are pressing Alt + Tab and pass the program you want to switch to, press Alt + Shift + Tab to move backwards to that program.
Bonus Tip Windows Vista and 7 users can also press the Windows Key + Tab to switch through open programs in a full screenshot of the Window.
Ctrl + Back space
Pressing Ctrl + Backspace will delete a full word at a time instead of a single character.
Ctrl + Left arrow / Right arrow
Move the cursor one word at a time instead of one character at a time. If you wanted to highlight one word at a time you can hold down Ctrl + Shift and then press the left or right arrow key to move one word at a time in that direction while highlighting each word.
Ctrl + Home / End
Move the cursor to the beginning or end of a document.
Ctrl + P
Print the page being viewed. For example, the document in Microsoft Word or the web page in your Internet browser.
Page Up / Space bar and Page Down
Pressing either the page up or page down key will move that page one page at a time in that direction. When browsing the Internet pressing the space bar will also move the page down one page at a time.
Microsoft Windows shortcut keys
Shortcut Keys3.x9xMENT2KXPVista7Description
Alt + TabXXXXXXXXSwitch between open applications.
Alt + Shift + TabXXXXXXXXSwitch backwards between open applications.
Alt + double-clickXXXXXXXDisplay the properties of the object you double-click on. For example, doing this on a file would display its properties.
Ctrl + TabXXXXXXXXSwitches between program groups or document windows in applications that support this feature.
Ctrl + Shift + TabXXXXXXXXSame as above but backwards.
Alt + Print ScreenXXXXXXXXCreate a screen shot only for the program you are currently in.
Ctrl + Print ScreenXXXXCreates a screen shot of the entire screen
Ctrl + Alt + DelXXXXXXXXReboot the computer and brings up the Windows task manager.
Ctrl + Shift + EscXXXXImmediately bring up the Windows task manager.
Ctrl + EscXXXXXXXXBring up the Windows Start menu. In Windows 3.x this would bring up the Task Manager.
Alt + EscXXXXXXXSwitch Between open applications on taskbar.
F1XXXXXXXXActivates help for current open application.
F2XXXXXXXXRenames selected Icon.
F3XXXXXXXStarts find from desktop.
F4XXXXXXXOpens the drive selection when browsing.
F5XXXXXXXRefresh Contents to where you were on the page.
Ctrl + F5XXRefreshes page to the beginning of the page.
F10XXXXXXXXActivates menu bar.
Shift + F10XXXXXXXSimulates right-click on selected item.
F4XXXXXXXSelect a different location to browse in the Windows Explorertoolbar.
Alt + F4XXXXXXXXCloses Current open program.
Ctrl + F4XXXXXXXXCloses Window in Program.
F6XXXXXXXMove cursor to different Windows Explorer pane.
Alt + Space barXXXXXXXXDrops down the window control menu.
Ctrl + (the '+' key on the keypad)XXXXXXAutomatically adjust the widths of all the columns in Windows explorer
Alt + EnterXXXXXXXOpens properties window of selected icon or program.
Alt + Space barXXXXXXXOpen the control menu for the current window open.
Shift + DelXXXXXXXDelete programs/files without throwing them into the recycle bin.
Holding ShiftXXXXXXXXBoot Safe Mode or by pass system files as the computer is booting.
Holding ShiftXXXXXXXWhen putting in an audio CD, will prevent CD Player from playing.
EnterXXXXXXXXActivates the highlighted program.
Alt + Down arrowXXXXXXXDisplay all available options on drop down menu.
* (on the keypad)XXXXXXXExpands all folders on the currently selected folder or drive in Windows Explorer.
+ (on the keypad)XXXXXXXExpands only the currently selected folder in Windows Explorer.
- (on the keypad)XXXXXXXCollapses the currently selected folder in Windows Explorer.

Windows key keyboard shortcuts
Below is a listing of Windows keys that can be used on computers running a Microsoft Windows operating system and using a keyboard with a Windows key. In the below list of shortcuts, the Windows key is represented by "WINKEY".
Shortcut KeysDescription
WINKEYPressing the Windows key alone will open Start.
WINKEY + F1Opens the Microsoft Windows help and support center.
WINKEY + F3Opens the Advanced find window in Microsoft Outlook.
WINKEY + DBrings the desktop to the top of all other windows.
WINKEY + MMinimizes all windows.
WINKEY + SHIFT + MUndo the minimize done by WINKEY + M and WINKEY + D.
WINKEY + EOpen Microsoft Explorer.
WINKEY + TabCycle through open programs through the taskbar.
WINKEY + FDisplay the Windows Search / Find feature.
WINKEY + CTRL + FDisplay the search for computers window.
WINKEY + ROpen the run window.
WINKEY + Pause / Break keyOpen the system properties window.
WINKEY + UOpen Utility Manager.
WINKEY + LLock the computer and switch users if needed (Windows XP and above only).
WINKEY + PQuickly change between monitor display types. (Windows 7 only)
WINKEY + LEFT ARROWShrinks the window to 1/2 screen on the left side for side by side viewing. (Windows 7 only)
WINKEY + RIGHT ARROWShrinks the window to 1/2 screen on the right side for side by side viewing. (Windows 7 only)
WINKEY + UP ARROWWhen in the side by side viewing mode, this shortcut takes the screen back to full size. (Windows 7 only)
WINKEY + DOWN ARROWMinimizes the screen.  Also, when in the side by side viewing mode, this shortcut takes the screen back to a minimized size. (Windows 7 only)


CLICK HERE TO READ MORE

History of information technology


A History of Information Technology and Systems

  • Four basic periods
    Characterized by a principal technology used to solve the input, processing, output and communication problems of the time:
    1. Premechanical,
    2. Mechanical,
    3. Electromechanical, and
    4. Electronic

A. The Premechanical Age: 3000 B.C. - 1450 A.D.

  1. Writing and Alphabets--communication.
    1. First humans communicated only through speaking and picture drawings.
    2. 3000 B.C., the Sumerians in Mesopotamia (what is today southern Iraq) devised cuniform
    3. Around 2000 B.C., Phoenicians created symbols
    4. The Greeks later adopted the Phoenician alphabet and added vowels; the Romans gave the letters Latin names to create the alphabet we use today.
  2. Paper and Pens--input technologies.
    1. Sumerians' input technology was a stylus that could scratch marks in wet clay.
    2. About 2600 B.C., the Egyptians write on the papyrus plant
    3. around 100 A.D., the Chinese made paper from rags, on which modern-day papermaking is based.
  3. Books and Libraries: Permanent Storage Devices.
    1. Religious leaders in Mesopotamia kept the earliest "books"
    2. The Egyptians kept scrolls
    3. Around 600 B.C., the Greeks began to fold sheets of papyrus vertically into leaves and bind them together.
  4. The First Numbering Systems.
    1. Egyptian system:
      • The numbers 1-9 as vertical lines, the number 10 as a U or circle, the number 100 as a coiled rope, and the number 1,000 as a lotus blossom.
    2. The first numbering systems similar to those in use today were invented between 100 and 200 A.D. by Hindus in India who created a nine-digit numbering system.
    3. Around 875 A.D., the concept of zero was developed.
  5. The First Calculators: The Abacus.
    Abacus
    One of the very first information processors.

B. The Mechanical Age: 1450 - 1840

  1. The First Information Explosion.
    1. Johann Gutenberg (Mainz, Germany)
      • Invented the movable metal-type printing process in 1450.
    2. The development of book indexes and the widespread use of page numbers.
  2. The first general purpose "computers"
    • Actually people who held the job title "computer: one who works with numbers."
  3. Slide Rules, the Pascaline and Leibniz's Machine.
    • Slide Rule.
      Slide rule
      Early 1600s, William Oughtred, an English clergyman, invented the slide rule
      • Early example of an analog computer.
    • The Pascaline. Invented by Blaise Pascal (1623-62).
      Blaise Pascal
      The Pascaline (front)
      Pascaline (front view)
      (rear view)
      Pascaline (rear view)
      Diagram of interior
      Pascaline
      • One of the first mechanical computing machines, around 1642.
    • Leibniz's Machine.Gottfried Wilhelm von Leibniz (1646-1716), German mathematician and philosopher.
      Gottfried Wilhelm von Leibniz
      The Reckoner (reconstruction)
      The Reckoner (reconstruction)
  4. Babbage's Engines
    Charles Babbage (1792-1871), eccentric English mathematician
    Charles Babbage
    • The Difference Engine.
      Difference Engine
      • Working model created in 1822.
      • The "method of differences".
    • The Analytical Engine.
      Analytical Engine
      Joseph Marie Jacquard's loom.
      Jacquard's punched card loom
      • Designed during the 1830s
      • Parts remarkably similar to modern-day computers.
        • The "store"
        • The "mill"
        • Punch cards.
      • Punch card idea picked up by Babbage from Joseph Marie Jacquard's (1752-1834) loom.
        • Introduced in 1801.
        • Binary logic
        • Fixed program that would operate in real time.
    • Augusta Ada Byron (1815-52).
      Agusta Ada Byron
    • The first programmer

C. The Electromechanical Age: 1840 - 1940.

The discovery of ways to harness electricity was the key advance made during this period. Knowledge and information could now be converted into electrical impulses.

  1. The Beginnings of Telecommunication.
    1. Voltaic Battery.
      • Late 18th century.
    2. Telegraph.
      • Early 1800s.
    3. Morse Code.
      • Developed in1835 by Samuel Morse
      • Dots and dashes.
    4. Telephone and Radio.
      • History of the telephone
        Alexander Graham Bell.
      • 1876
    5. Followed by the discovery that electrical waves travel through space and can produce an effect far from the point at which they originated.
    6. These two events led to the invention of the radio
      • Guglielmo Marconi
      • 1894
  2. Electromechanical Computing
    1. Herman Hollerith and IBM.
      Herman Hollerith (1860-1929) in 1880.
      Herman Hollerith
      Census Machine.
      Holleritch's machine
      Early punch cards.
      Hollerith's machine, detail.Punch card diagram
      Punch card workers.
      Punch card workers.
      • By 1890
      • The International Business Machines Corporation (IBM).
        • Its first logo
          IBM logo
    2. Mark 1.
      Mark 1
      Paper tape stored data and program instructions.
      Mark 1 paper tape (detail)Mark 1 paper tape contraption
      • Howard Aiken, a Ph.D. student at Harvard University
      • Built the Mark I
        • Completed January 1942
        • 8 feet tall, 51 feet long, 2 feet thick, weighed 5 tons, used about 750,000 parts

D. The Electronic Age: 1940 - Present.

  1. First Tries.
    • Early 1940s
    • Electronic vacuum tubes.
  2. Eckert and Mauchly.
    1. The First High-Speed, General-Purpose Computer Using Vacuum Tubes:
      Electronic Numerical Integrator and Computer (ENIAC)

      The ENIAC team (Feb 14, 1946). Left to right: J. Presper Eckert, Jr.; John Grist Brainerd; Sam Feltman; Herman H. Goldstine; John W. Mauchly; Harold Pender; Major General G. L. Barnes; Colonel Paul N. Gillon.
      ENIAC team
      ENIAC - Electronic Numerical Integrator and Computer
      Rear view (note vacuum tubes).
      ENIAC (rear view)
      • Electronic Numerical Integrator and Computer (ENIAC)
        • 1946.
        • Used vacuum tubes (not mechanical devices) to do its calculations.
          • Hence, first electronic computer.
        • Developers John Mauchly, a physicist, and J. Prosper Eckert, an electrical engineer
          • The Moore School of Electrical Engineering at the University of Pennsylvania
        • Funded by the U.S. Army.
        • But it could not store its programs (its set of instructions)
    2. The First Stored-Program Computer(s)
      EDVAC
      The Manchester University Mark I (prototype).
      Manchester University Mark I
      • Early 1940s, Mauchly and Eckert began to design the EDVAC - the Electronic Discreet Variable Computer.
      • John von Neumann's influential report in June 1945:
        • "The Report on the EDVAC"
      • British scientists used this report and outpaced the Americans.
        • Max Newman headed up the effort at Manchester University
          • Where the Manchester Mark I went into operation in June 1948--becoming the first stored-program computer.
        • Maurice Wilkes, a British scientist at Cambridge University, completed the EDSAC (Electronic Delay Storage Automatic Calculator) in 1949--two years before EDVAC was finished.
          • Thus, EDSAC became the first stored-program computer in general use (i.e., not a prototype).
    3. The First General-Purpose Computer for Commercial Use: Universal Automatic Computer (UNIVAC).
      UNIVAC
      UNIVAC publicity photo.
      UNIVAC publicity shot
      • Late 1940s, Eckert and Mauchly began the development of a computer called UNIVAC (Universal Automatic Computer)
        • Remington Rand.
        • First UNIVAC delivered to Census Bureau in 1951.
      • But, a machine called LEO (Lyons Electronic Office) went into action a few months before UNIVAC and became the world's first commercial computer.
  3. The Four Generations of Digital Computing.
    1. The First Generation (1951-1958).Vacuum tubes
      1. Vacuum tubes as their main logic elements.
      2. Punch cards to input and externally store data.
      3. Rotating magnetic drums for internal storage of data and programs
        • Programs written in
          • Machine language
          • Assembly language
            • Requires a compiler.
    2. The Second Generation (1959-1963).Transistors
      1. Vacuum tubes replaced by transistors as main logic element.
        • AT&T's Bell Laboratories, in the 1940s
        • Crystalline mineral materials called semiconductors could be used in the design of a device called a transistor
      2. Magnetic tape and disks began to replace punched cards as external storage devices.
      3. Magnetic cores (very small donut-shaped magnets that could be polarized in one of two directions to represent data) strung on wire within the computer became the primary internal storage technology.
        • High-level programming languages
          • E.g., FORTRAN and COBOL
    3. The Third Generation (1964-1979).
      Computer chipChip, one 1/100 of inch
      Typical mainframe computer set-up circa 1967
      1. Individual transistors were replaced by integrated circuits.
      2. Magnetic tape and disks completely replace punch cards as external storage devices.
      3. Magnetic core internal memories began to give way to a new form, metal oxide semiconductor (MOS) memory, which, like integrated circuits, used silicon-backed chips.
        • Operating systems
        • Advanced programming languages like BASIC developed.
          • Which is where Bill Gates and Microsoft got their start in 1975.
    4. The Fourth Generation (1979- Present).
      1. Large-scale and very large-scale integrated circuits (LSIs and VLSICs)
      2. Microprocessors that contained memory, logic, and control circuits (an entire CPU = Central Processing Unit) on a single chip.
        • Which allowed for home-use personal computers or PCs, like the Apple (II and Mac) and IBM PC.
          • Apple II released to public in 1977, by Stephen Wozniak and Steven Jobs.
            • Initially sold for $1,195 (without a monitor); had 16k RAM.
          • First Apple Mac released in 1984.
          • IBM PC introduced in 1981.
            • Debuts with MS-DOS (Microsoft Disk Operating System)
        • Fourth generation language software products
          • E.g., Visicalc, Lotus 1-2-3, dBase, Microsoft Word, and many others.
          • Graphical User Interfaces (GUI) for PCs arrive in early 1980s
            • MS Windows 1985
              MS Windows debuts in 1983, but is quite a clunker.
              • Windows wouldn't take off until version 3 was released in 1990...

CLICK HERE TO READ MORE