 2007 Pearson Education, Inc. All rights reserved. 1 1 1 Introduction to Computers, the Internet and Visual Basic.

Slides:



Advertisements
Similar presentations
EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Advertisements

 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
 2002 Prentice Hall. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Java, How to Program, 4 th Edition, by Deitel.
Visual and Internet Programming using JAVA
 2009 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and Visual C#
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Java Environment (CSS444)
 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
 2007 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the Web.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What Is a Computer?
 2002 Prentice Hall. All rights reserved. Week 1 - Introduction to Object- Oriented Programming Outline 1.1 Machine Languages, Assembly Languages and.
August 29, 2005ICP: Chapter 0: Introduction to Computers and Computing 1 Introduction or Computer Programming Chapter 0: Introduction to Computers and.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
CS102 Introduction to Computer Programming
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What Is a Computer? 1.3Computer Organization 1.4Evolution.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
 2008 Pearson Education, Inc. All rights reserved. 1 The chief merit of language is clearness. — Galen Our life is frittered away by detail…. Simplify,
 2009 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and Visual Basic.
 2005 Pearson Education, Inc. All rights reserved. 1 Introduction & The Java Virtual Machine Small Java Chapter 1 1.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
High thoughts must have high language. Aristophanes
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
Microsoft Visual Basic 2005: Reloaded Second Edition
Lecture 1 Introduction to computers & VB.Net. What is a Computer? Examples? A device capable of  Performing computation  Making logical decisions 
Chapter 1 Introduction to Computers, the Internet and the World Wide Web.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 1 – Car Payment Calculator and Guess the Number.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
 2002 Prentice Hall. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer?
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introduction to Computers Outline 1.1Introduction.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 Introduction to Computers, the Internet and.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 5 Information System Software.
 2006 Pearson Education, Inc. All rights reserved. 1 C++ How to Program, 5th Edition Deitel Dev C++
 2000 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 1.1 What Is a Computer? 1.2 Computer Organization.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
1 Introduction to Computers, the Internet and World Wide Web.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
 Pearson Education, Inc. All rights reserved Introduction to Computers and Java.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and Visual C#
1 Chapter 1 Java –Originally for intelligent consumer-electronic devices –Then used for creating Web pages with dynamic content –Now also used for: Develop.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Computer Organization 1.4 Evolution.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
 2001 Prentice Hall, Inc. All rights reserved.
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Visual Basic 2008 Programming
Lecture 1: Introduction to JAVA
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Computers, the Internet and the World Wide Web
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Computers, Internet and the World Wide Web
Chapter 1 Introduction.
Chapter 1 – Introduction to Computers and C++ Programming
Presentation transcript:

 2007 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and Visual Basic

 2007 Pearson Education, Inc. All rights reserved. 2 The chief merit of language is clearness. — Galen High thoughts must have high language. — Aristophanes Our life is frittered away with detail.... Simplify, simplify. — Henry David Thoreau My object all sublime I shall achieve in time. — W. S. Gilbert Man is still the most extraordinary computer of all. — John F. Kennedy

 2007 Pearson Education, Inc. All rights reserved. 3 OBJECTIVES In this chapter you will learn:  Basic hardware and software concepts.  The different types of programming languages.  Which programming languages are most widely used.  The history of the Visual Basic programming language.  Some basics of object technology.  The history of the UML—the industry-standard object oriented system modeling language.  The history of the Internet and the World Wide Web.  The motivation behind and an overview of Microsoft’s.NET initiative, which involves the Internet in developing and using software systems.  To test-drive a Visual Basic 2005 application that enables you to draw on the screen.

 2007 Pearson Education, Inc. All rights reserved Introduction 1.2What Is a Computer? 1.3Computer Organization 1.4Early Operating Systems 1.5Personal Computing, Distributed Computing and Client/Server Computing 1.6Hardware Trends 1.7Microsoft’s Windows ® Operating System 1.8Machine Languages, Assembly Languages and High-Level Languages 1.9Visual Basic 1.10C, C++, Java and Visual C# 1.11 Other High-Level Languages 1.12The Internet and the World Wide Web

 2007 Pearson Education, Inc. All rights reserved Extensible Markup Language (XML) 1.14 Microsoft’s.NET 1.15 The.NET Framework and the Common Language Runtime 1.16 Test-Driving a Visual Basic Application 1.17 (Only Required Section of the Case Study) Software Engineering Case Study: Introduction to Object Technology and the UML 1.18 Wrap-Up 1.19 Web Resources

 2007 Pearson Education, Inc. All rights reserved Introduction Visual Basic 2005 How to Program, Third Edition – Associated with the abbreviation VB – Appropriate for people with no programming experience or experienced programmers – Object-Oriented programming – Event driven programming

 2007 Pearson Education, Inc. All rights reserved What Is a Computer? Computer – Performs computations and makes logical decisions – Billions times faster than human beings Computer Programs – Sets of instructions for which computer processes data Hardware – Physical devices of computer system (Ex: Hard Drive) Computer – Programs that run on computers (Ex: Games)

 2007 Pearson Education, Inc. All rights reserved Computer Organization Six logical units of computer system – Input unit Mouse, keyboard – Output unit Printer, monitor, audio speakers – Memory unit Retains input and processed information – Arithmetic and logic unit (ALU) Performs calculations – Central processing unit (CPU) Supervises operation of other devices – Secondary storage unit Hard drives, floppy drives

 2007 Pearson Education, Inc. All rights reserved Early Operating Systems Batch processing – One job (task) at a time – Operating systems developed Programs to make computers more convenient to use Switch jobs easier Multiprogramming – Simultaneous” jobs – Timesharing operating systems

 2007 Pearson Education, Inc. All rights reserved Personal, Distributed and Client/Server Computing Personal computing – Computers for personal use Distributed computing – Computing performed among several computers Client/server computing – Servers offer common store of programs and data – Clients access programs and data from server – Local Area Networks (LAN)

 2007 Pearson Education, Inc. All rights reserved Hardware Trends Gordon Moore – Co-founder of Intel – Moore’s Law: The costs of hardware exponentially decreases.

 2007 Pearson Education, Inc. All rights reserved Microsoft’s Windows Operation System Microsoft – Dominant software company – Windows operating system A graphical user interface (GUI) built on top of DOS – Most widely used operating system Linux – Operating system based on Unix – Open source Source code freely available to users – Biggest competitor to Windows

 2007 Pearson Education, Inc. All rights reserved Machine Languages, Assembly Languages and High-Level Languages Machine language – “Natural language” of computer component – Machine dependent Assembly language – English-like abbreviations represent computer operations – Translator programs convert to machine language High-level language – Allows for writing more “English-like” instructions Contains commonly used mathematical operations – Compiler converts to machine language Interpreter – Execute high-level language programs without compilation

 2007 Pearson Education, Inc. All rights reserved. 14 Fig. 1.1 | Comparing machine, assembly and high-level languages.

 2007 Pearson Education, Inc. All rights reserved Visual Basic Evolved from BASIC – Primary purpose was to familiarize novices with programming technique Microsoft introduced with GUI Distinctly different language Integrated Development Environment (IDE) – Write, run, test and debug programs conveniently.NET platform – Web-based applications can be distributed to a variety of devices – Different languages can interact

 2007 Pearson Education, Inc. All rights reserved C, C++, Java and Visual C# C – Development language of Unix – Hardware-independent languages; portable to most computers C++ – Evolved from C – Object-Oriented programming (OOP) Objects: reusable software components

 2007 Pearson Education, Inc. All rights reserved C, C++, Java and Visual C# (Cont.) Java – C++ based language – Sun Microsystems – Dynamic content (ex: animations) to Web pages – Object-Oriented programming (OOP) Visual C# – Roots from C, C++, and Java – Powerful class library (FCL)

 2007 Pearson Education, Inc. All rights reserved Other High-Level Languages FORTRAN – FORmula TRANslator – Complex mathematical computations COBOL – COmmon Business Oriented Language – Commercial application that require precise and efficient manipulation of large amounts of data Pascal – Structured programming Ada – Multitasking: Allow many activities to occur in parallel

 2007 Pearson Education, Inc. All rights reserved Internet and the World Wide Web Internet – Developed more than four decades ago with DOD funding – Originally for connecting few main computer systems – Now accessible by hundreds of millions of computers World Wide Web (WWW) – Allows for locating/viewing multimedia-based documents – W3C Devoted to developing nonproprietary, interoperable technologies

 2007 Pearson Education, Inc. All rights reserved Extensible Markup Language (XML) XML – Resulted from HTML’s limitations – Data independence Simple Object Access Protocol (SOAP) – Technology for transmissions of objects over the internet

 2007 Pearson Education, Inc. All rights reserved Microsoft’s.NET Independence from specific language or platform Reusable application software components that can be used over the Internet.NET Strategy: Allow programmers and companies to concentrate on their specialties without having to implement every component of every application

 2007 Pearson Education, Inc. All rights reserved The.NET Framework and the Common Language Runtime.NET Framework is the heart of the.NET strategy Common Language Infrastructure (CLI): Information about storage of data types Common Language Runtime (CLR): Programs compiled into machine specific language Microsoft Intermediate Language (MSIL) plays a crucial role for language interoperability Just-In-Time Compiler (JIT): Translates MSIL into machine-language code when application executes

 2007 Pearson Education, Inc. All rights reserved. 23 Fig. 1.2 |.NET languages.

 2007 Pearson Education, Inc. All rights reserved Test-Driving a Visual Basic Application Test-Driving the Drawing Application – Checking your setup – Locating the application directory – Running the Drawing application (Fig. 1.3) – Changing the brush color (Fig. 1.4) – Changing the brush size (Fig. 1.5) – Finishing the drawing (Fig. 1.6) – Closing the application

 2007 Pearson Education, Inc. All rights reserved. 25 Fig. 1.3 | Visual Basic Drawing application.

 2007 Pearson Education, Inc. All rights reserved. 26 Fig. 1.4 | Drawing with a new brush color.

 2007 Pearson Education, Inc. All rights reserved. 27 Fig. 1.5 | Drawing with a new brush size.

 2007 Pearson Education, Inc. All rights reserved. 28 Fig. 1.6 | Finishing the drawing.

 2007 Pearson Education, Inc. All rights reserved Software Engineering Case Study: Introduction to Object Technology and the UML Object orientation Unified Modeling Language (UML) – Graphical language that uses common notation – Allows developers to represent object-oriented designs

 2007 Pearson Education, Inc. All rights reserved Software Engineering Case Study: Introduction to Object Technology and the UML (continued) Objects – Reusable software components that model real-world items – Look all around you People, animals, plants, cars, etc. – Attributes Size, shape, color, weight, etc. – Behaviors Babies cry, crawl, sleep, etc.

 2007 Pearson Education, Inc. All rights reserved Software Engineering Case Study: Introduction to Object Technology and the UML (continued) Object-oriented design (OOD) – Models real-world objects – Models communication among objects – Encapsulates attributes and operations (behaviors) Information hiding Communication through well-defined interfaces – Inheritance Object-oriented language – Programming in object-oriented languages is called object- oriented programming (OOP) – Visual Basic, C#, Java, C++

 2007 Pearson Education, Inc. All rights reserved Software Engineering Case Study: Introduction to Object Technology and the UML (continued) Object-Oriented Analysis and Design (OOA/D) – Essential for large programs – Analyze program requirements, then develop solution UML – Unified Modeling Language Pseudocode – Informal text-based means of expressing program logic

 2007 Pearson Education, Inc. All rights reserved Software Engineering Case Study: Introduction to Object Technology and the UML (continued) History of the UML – Need developed for process with which to approach OOA/D – Booch, Rumbaugh and Jacobson – Object Management Group (OMG) supervised – Version 2 is current version UML – Graphical representation scheme – Enables developers to model object-oriented systems – Flexible and extensible

 2007 Pearson Education, Inc. All rights reserved. 34 Fig. 1.7 | Examples of Visual Basic applications found in this book.

 2007 Pearson Education, Inc. All rights reserved. 35 Software Engineering Observation 1.1 Reuse of existing classes when building new classes and programs saves time, money and effort. Reuse also helps programmers build more reliable and effective systems, because existing classes and components often have gone through extensive testing, debugging and performance tuning.