Download
Introduction to Computers, C++ and OOP Presentation Transcript:1.Object Oriented Programming (OOP) BTE-FA10
2.Introduction
3.TEXT Book Java How to Program ( Dietel & Dietel )Reference BookWeb Sites & Material: Prepare from Anywhere...!
4. Marks Distribution 1st Sessional Marks ? 10 2nd Sessional Marks ? 15 Quizzes ? 10 Projects ? 15 Final Exam ? 50
5.Introduction to Computers, C++ and OOP
6.1 .1 Introduction1.2 What Is a Computer?1.3 Computer Organization1.4 Early Operating Systems1.5 Personal, Distributed and Client/Server Computing1.6 The Internet and the World Wide Web1.7 Machine Languages, Assembly Languages and High-Level Languages1.8 History of C and C++1.9 Object Oriented Programming with C++
7.IntroductionIn early 1980s, C++ developed by Bjarne Stroustrup C is a structured language while C++ is Object orientedObject Oriented Programming (OOP) technique enable programmer to write quality code
8.What Is a Computer?ComputerPerforms computations and makes logical decisionsMillions or billions of times faster than human beingsComputer programsSets of instructions for which computer processes dataHardwarePhysical devices of computer systemSoftwarePrograms that run on computers
9.Computer Organization Six logical units of computer systemInput unitMouse, keyboardOutput unitPrinter, monitor, audio speakersMemory unitRetains input and processed informationArithmetic and logic unit (ALU)Performs calculationsCentral processing unit (CPU)Supervises operation of other devicesSecondary storage unitHard drives, floppy drives
10.Early Operating SystemsBatch processingOne job (task) at a timeOperating systemsDeveloped to make computers more convenient to useMade transitions between jobs easierMore throughputMultiprogramming“Simultaneous” jobsTimesharing operating systems
11.Personal, Distributed and Client/Server ComputingPersonal computingComputers for personal useDistributed computingNetworked computersComputing performed among several computersClient/server computingServers offer common store of programs and dataClients access programs and data from server
12.The Internet and the World Wide WebInternetDeveloped more than four decades ago with DOD fundingOriginally for connecting few main computer systemsNow accessible by over a billion computersWorld Wide Web (WWW)Allows for locating/viewing multimedia-based documents
13.Machine Languages, Assembly Languages and High-Level LanguagesMachine language“Natural language” of computer componentMachine dependentAssembly languageEnglish-like abbreviations represent computer operationsTranslator programs (assemblers) convert to machine languageHigh-level languageAllows for writing more “English-like” instructionsContains commonly used mathematical operationsCompiler converts to machine languageInterpreterExecute high-level language programs without compilation
14.History of C and C++C++ evolved from C, which evolved from BCPL and BCDeveloped at Bell LabsPopularized as the language of the UNIX operating systemC++ Deveoped by Bjarne StroustrupProvides object-oriented programming capabilitiesHybrid languageObjectsReusable software components that model real-world itemsAttributes and behaviors
15.Object Oriented Programming Classes Data Members Member Functions Member Access specifiers Objects
Source: Power Point Presentations
Download
Introduction to Microprocessor and Computer Presentation Transcript: 1.Introduction to Microprocessor and Computer
2.Mechanical ComputingThe abacus circa 500 B.C. – the first calculatorBlaise Pascal – the first modern mechanical adderCharles Babbage – the first true computer50,000 machine partsHerman Hollerith – the punched card system and founder of IBM
3.Early electronic computersKonrad Zuse – Z3 (relay logic at 5.33 Hz)Alan Turing – ColossusFixed program computerUniversity of Pennsylvania – ENIACCould be reprogrammed by rewiring the circuit and could several man hours17,000 vacuum tubes, 500 miles of wires100K operations per second
4.Early milestones1948 – the transistor at Bell Labs1958 – the integrated circuit1961 – RTL digital logic (resistor-to-Transistor Logic)1971 – the microprocessor (4004)
5.Early programmingCountess of Lovelace (1823) wrote programs for the Analytical EngineMachine Language then Assembly LanguageGrace Hopper (1957) develops FLOW-MATICFORTRAN by IBM, ALGOL, and RPGCOBOL –first wide spread languageBASIC and PASCAL as teaching languages
6.Modern programmingVisual BASIC (most common business)Visual C/C++ (most common technical)JAVA (most common web)ADA (used by DoDPASCAL -control programsC# (gaining on web)
7.Early Microprocessors4004 the first microprocessor (4-bit) 16K RAM50 KIPS4040 improved speedTMS-100 8008 (8-bit)Fairchild, MOS tech., Motorola, National semiconductor, Rockwell, Zilog8080 (8-bit) 64K RAM, 2Mhz clock8086 (16-bit) 1M RAM, 5MHz clock80286 (16-bit) 16M RAM, 16MHz clock
8.32-bit Microprocessors80386, 4G RAM, 33 MHz clock80486, 4G RAM, 66 MHz clockPentium, 4G RAM, 66 MHz clockPentium Pro, 64G RAM, 133 MHz clockPentium II, 64G RAM, 233 MHz clockPentium III, 64G RAM, 500 MHz clockPentium 4, 64G RAM, 1.5 GHz clock
9.The P nomenclatureP1 – 8086/8088 class P2 – 80286 class P3 – 80386 class P4 – 80486 class P5 – Pentium classP6 – Pentium Pro/Pentium II, Pentium III, and Pentium 4 class
10.Cache MemoryA temporary high speed memory that buffers the slower DRAM from the higher speed microprocessor.Usages in bursts of 4 memory-sized chunks of data (today 4, 64-bit numbers)Level 1 (small cache for local high-speed storage)Level 2 (larger cache for local high-speed storage.Level 3 (large cache on Pentium 4 chip)
11.High End ComputersProcessor: Intel Pentium 4Frequency: 3.2GHzPower consumption: 103 W max.*Process: 90nm
12.Lower Scale of ComputersProcessor can consume no more than 250-300mW
13.Speed of EvolutionProcessor2X in speed every 1.5 years; 100X performance in last decadeMemoryDRAM capacity: 2X / 2 years; 64X size in last decadeCost per bit: improves about 25% per yearDiskcapacity: > 2X in size every 1.0 yearsCost per bit: improves about 100% per year250X size in last decade
14.Memory Organization Memory is organized in byte-sized (wide) chunks of dataMemory is numbered in bytesMemory is number in hexadecimal addresses or locationsModern memory is 64-bits wide containing 8 bytes per memory physical location.Modern DRAM is SLOW! (40 ns per a random access)Buffering and double clock edge transfers can speed memory access times to about 25 MHz
15.Microprocessor Internals
Source: Power Point Presentations
Presentation On Classification of Computer Download
Classification of Computer Presentation Transcript:1.Classification of Computer
2.The digital computers that are available nowadays vary in their sizes and types. The computers are broadly classified into four categories (Figure 1) based on their size and type-(1) Microcomputers (2) Minicomputers (3) Mainframe computers, and (4) Supercomputer.
3.Classification of computers based on size and type
4.Microcomputers Microcomputers are small, low-cost and single-user digital computer. They consist of CPU, input unit, output unit, storage unit and the software. Although microcomputers are stand-alone machinesThey can be connected together to create a network of computers that can serve more than one user. IBM PC based on Pentium microprocessor and Apple Macintosh are some examples of microcomputers. Microcomputers include desktop computers,
5.Notebook computers or laptop, tablet computer, handheld computer, smart phones and netbook
6.Microcomputers
7.Desktop Computer or Personal Computer (PC):- is the most common type of microcomputer. It is a stand-alone machine that can be placed on the desk. Externally, it consists of three units—keyboard, monitor, and a system unit containing the CPU, memory, hard disk drive, etc. It is not very expensive and is suited to the needs of a single user at home, small business units, and organizations. Apple, Microsoft, HP, Dell and Lenovo are some of the PC manufacturers.
8.Notebook Computers or Laptop:- resemble a notebook. They are portable and have all the features of a desktop computer.The advantage of the laptop is that it is small in size (can be put inside a briefcase), can be carried anywhere, has a battery backup and has all the functionality of the desktop. Laptops can be placed on the lap while working (hence the name). Laptops are costlier than the desktop machines.
9.Netbook:- These are smaller notebooks optimized for low weight and low cost, and are designed for accessing web-based applications. Starting with the earliest netbook in late 2007, they have gained significant popularity now. Netbooks deliver the performance needed to enjoy popular activities like streaming videos or music, emailing, Web surfing or instant messaging. The word netbook was created as a blend of Internet and notebook.
10.Tablet Computer:- has features of the notebook computer but it can accept input from a stylus or a pen instead of the keyboard or mouse. It is a portable computer. Tablet computer are the new kind of PCs.Handheld Computer or Personal Digital Assistant (PDA) :-is a small computer that can be held on the top of the palm. It is small in size. Instead of the keyboard, PDA uses a pen or a stylus for input. PDAs do not
Source: Power Point Presentations
Presentation On History of Computer Download
History of Computer Presentation Transcript:1.History of Computer
2.History of ComputerUntil the development of the first generation computers based on vacuum tubes, there had been several developments in the computing technology related to the mechanical computing devices. The key developments that took place till the first computer was developed are as follows—Calculating Machines ABACUS was the first mechanical calculating device for counting of large numbers. The word ABACUS means calculating board. It consists of bars in horizontal positions on which sets of beads are inserted. The horizontal bars have 10 beads each, representing units, tens, hundreds, etc. An abacus is shown in Figure 1.1
3.Napier’s Bones was a mechanical device built for the purpose of multiplication in 1617 AD. by an English mathematician John Napier.Slide Rule was developed by an English mathematician Edmund Gunter in the 16th century. Using the slide rule, one could perform operations like addition, subtraction, multiplication and division. It was used extensively till late 1970s. Figure 1.2 shows a slide rule.
4.Pascal’s Adding and Subtraction Machine was developed by Blaise Pascal. It could add and subtract. The machine consisted of wheels, gears and cylinders.Leibniz’s Multiplication and Dividing Machine was a mechanical device that could both multiply and divide. The German philosopher and mathematician Gottfried Leibniz built it around 1673.Punch Card System was developed by Jacquard to control the power loom in 1801. He invented the punched card reader that could recognize the presence of hole in the punched card as binary one and the absence of the hole as binary zero.
5.The 0s and 1s are the basis of the modern digital computer.
6.Babbage’s Analytical Engine An English man Charles Babbage built a mechanical machine to do complex mathematical calculations, in the year 1823. The machine was called as difference engine. Later, Charles Babbage and Lady Ada Lovelace developed a general-purpose calculating machine, the analytical engine. Charles Babbage is also called the father of computer.Hollerith’s Punched Card Tabulating Machine was invented by Herman Hollerith. The machine could read the information from a punched card and process it electronically.
7.The developments discussed above and several others not discussed here, resulted in the development of the first computer in the 1940s.
Source: Power Point Presentations
Presentation On Generations of Computer Download
Generations of Computer Presentation Transcript:1.Generations of Computer
2.Generations of ComputerThe computer has evolved from a large-sized simple calculating machine to a smaller but much more powerful machine. The evolution of computer to the current state is defined in terms of the generations of computer. Each generation of computer is designed based on a new technological development, resulting in better, cheaper and smaller
3.computers that are more powerful, faster and efficient than their predecessors. Currently, there are five generations of computer. In the following subsections, we will discuss the generations of computer in terms of.
4.the technology used by them (hardware and software),computing characteristics (speed, i.e., number of instructions executed per second),physical appearance, andtheir applications.
5.First Generation (1940 to 1956): Using Vacuum TubesHardware Technology The first generation of computers used vacuum tubes (Figure) for circuitry and magnetic drums for memory. The input to the computer was through punched cards and paper tapes. The output was displayed as printouts. Figure1.1Vacuum tube
6.Software Technology The instructions were written in machine language. Machine language uses 0s and 1s for coding of the instructions. The first generation computers could solve one problem at a time.Computing Characteristics The computation time was in milliseconds.
7.Physical Appearance These computers were enormous in size and required a large room for installation.Application They were used for scientific applications as they were the fastest computing device of their time.Examples UNIVersal Automatic Computer (UNIVAC), Electronic Numerical Integrator And Calculator (ENIAC), and Electronic Discrete Variable Automatic Computer (EDVAC).
8.The first generation computers used a large number of vacuum tubes and thus generated a lot of heat. They consumed a great deal of electricity and were expensive to operate. The machines were prone to frequent malfunctioning and required constant maintenance. Since first generation computers used machine language, they were difficult to program.
9.Second Generation (1956 to 1963): Using TransistorsHardware Technology Transistors (Figure) replaced the vacuum tubes of the first generation of computers. Transistors allowed computers to become smaller, faster, cheaper, energy efficient and reliable. The second generation computers used magnetic core technology for primary memory. They used magnetic tapes and magnetic disks for secondary storage. The input was still through
10.punched cards and the output using printouts. They used the concept of a stored program, where instructions were stored in the memory of computer.
Source: Power Point Presentations