© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 1 – Car Payment Calculator and Guess the Number.

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.
Visual and Internet Programming using JAVA
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
 2009 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and Visual C#
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 1 – Car Payment Calculator and Guess the Number.
Java Environment (CSS444)
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
© 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.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
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.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
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.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
 2008 Pearson Education, Inc. All rights reserved. 1 The chief merit of language is clearness. — Galen Our life is frittered away by detail…. Simplify,
Chapter Lead Black Slide Powered by DeSiaMore Powered by DeSiaMore.
 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.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
 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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 1 Advanced Painter Application Introducing Computers, the Internet and Visual Basic.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
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?
© 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.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
 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.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 1.1 What Is a Computer? 1.2 Computer Organization.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming Dr. Halla Abdel Hameed.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Chapter 1: Introduction to Computers and Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
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.
 2007 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and Visual Basic.
 2001 Prentice Hall, Inc. All rights reserved.
Introduction to Computers, the Internet and the World Wide Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Computers, Internet and the World Wide Web
Presentation transcript:

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 1 – Car Payment Calculator and Guess the Number Application: Introducing Computers, the Internet and C++ Programming Outline 1.1 What Is a Computer? 1.2 Computer Organization 1.3 The Internet and the World Wide Web 1.4 Machine Languages, Assembly Languages and High-Level Languages 1.5 C Java 1.7 Fortran, COBOL, Pascal and Ada 1.8 BASIC, Visual Basic, Visual C++ and.NET 1.9 Key Software Trend: Object Technology 1.10 Compiling and Running C++ Applications 1.11 Test-Driving the Car Payment Calculator and Guess the Number Applications 1.12 Internet and Web Resources 1.13 Wrap-Up

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Objectives In this tutorial, you will learn to: –Identify the characteristics of low-level and high-level programming languages. –Apply the basics of object-oriented programming. –Run your first C++ application. –Locate additional C++ information using the Internet.

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.1 What Is a Computer? Computers –Perform arithmetic calculations much faster than people can –Computer programs and applications Instructions for a computer’s actions Also known as software –Computer devices (also known as hardware) Examples include keyboard, screen, mouse, hard drive, memory, etc.

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.2 Computer Organization Six units in a computer –Input Unit Obtains information from various input devices such as keyboard or mouse –Output Unit Places computer-processed information on output devices (making it available for use outside of the computer) –Memory Unit or Primary Memory Usually volatile (data is lost after computer shuts off)

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.2 Computer Organization (Cont.) –Arithmetic Logic Unit Performs arithmetic calculations and determines logic –Central Processing Unit Oversees all computer activities –Secondary Storage Unit Nonvolatile (data is retained after computer shuts off) Long term

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.3 The Internet And the World Wide Web ARPANET –Set up by the Advanced Research Projects Agency to network university research computers –Enabled quick and easy communication via TCP/IP –Transmission Control Protocol Rules for transferring data over the ARPANET Ensured that “packets” of information were sent and received correctly –Internet Protocol Rules for intercommunication between networks

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.3 The Internet And the World Wide Web (Cont.) World Wide Web (WWW) –Hardware and software associated with Internet communication –HyperText Markup Language (HTML) Communications format developed by Tim Berners-Lee –World Wide Web Consortium (W3C) Founded by Berners-Lee to develop Internet technologies

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.4 Machine Languages, Assembly Languages and High-Level Languages Machine Languages –Machine dependent “natural language” Assembly Languages –Machine language is too slow –Assemblers convert assembly languages to machine languages High-Level Languages –Compilers convert to machine languages –Linkers package machine language files –Interpreters run high-level programs directly –Instructions look like everyday English

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.5 C++ Evolved from C –C evolved from B and BCPL Developed by Bjarne Stroustrup in early 1980s Widely used for operating systems –Originally used to create UNIX Provides capabilities for object-oriented programs Hybrid language –C style –Object-oriented style

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.6 Java Designed by Sun Microsystems –For intelligent consumer-electronic devices Gained popularity with the World Wide Web –Used for dynamic content and animation on Web Pages Now used for large scale enterprise applications development, enhances functionality of Web servers, provide applications for consumer devices and more Widely used object-oriented language

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.7 Fortran, COBOL, Pascal and Ada Fortran (FORmula TRANslator) –Developed by IBM –Still used in engineering community COBOL –Still used in business software Pascal –Designed for teaching structured programming

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.7 Fortran, COBOL, Pascal and Ada (Cont.) Ada –Sponsored by the Department of Defense –Named after Lady Ada Lovelace First computer programmer

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.8 BASIC, Visual Basic, Visual C++ and.NET BASIC –Beginner’s All-Purpose Symbolic Instruction Code –For simple programs and teaching novices Visual BASIC –Simplified development of Windows applications VB.NET, Visual C++.NET and C# –Framework Class Library (FCL) –Designed for Microsoft’s.NET platform –Object-oriented languages –Visual C++.NET is derived from C++

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1.9 Key Software Trend: Object Technology Objects –Represent real-world nouns –Attributes (properties) –Actions (behaviors or functions) Procedural Programming Languages –Focus on actions instead of objects

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Compiling and Running C++ Applications Files –Source code files (.cpp ) –Header files (.h ) –Executable files (.exe ) Compilation –Turns high-level source code into machine language code Command prompt –Allows text instructions to be given to the computer

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Compiling and Running C++ Applications (Cont.) Figure 1.1 Command Prompt window in Windows Beginning directory for Windows 2000

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Compiling and Running C++ Applications (Cont.) Figure 1.2 Command Prompt window in Windows XP. Beginning directory for Windows XP

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications Open Command Prompt –Start > All Programs > Accessories > Command Prompt Change directories –Type cd C:\Examples\Tutorial01\CarPayment –Type cd C:\Examples\Tutorial01\GuessNumber Run an application –Type CarPayment –Type GuessNumber

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.3 Changing to the Car Payment Calculator application’s directory. Note that the current directory changed

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.4 Running the Car Payment Calculator application. Executing the CarPayment application

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.5 Car Payment Calculator with data entered.

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.6 Car Payment Calculator application displaying calculation results. Results displayed in tabular format Close box

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.7 Changing to the Guess the Number application’s directory. Note that the current directory changed

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.8 Running the Guess the Number application. Executing the GuessNumber application

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.9 Entering an initial guess.

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.10 Entering a second guess and receiving feedback. Application displays whether your guess is too high or too low

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Test-Driving the Car Payment Calculator and Guess the Number Applications (Cont.) Figure 1.11 Guessing the correct number. Entering additional guesses Entering the correct guess

© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Internet and Web Resources