Introduction to Computers, the Internet and the World Wide Web

Slides:



Advertisements
Similar presentations
CSci 1130 Intro to Computer Programming in Java
Advertisements

EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
 2005 Pearson Education, Inc. All rights reserved Introduction.
 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
Object Orientated Programming
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Three types of computer languages
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.
 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
 2002 Prentice Hall. All rights reserved. Week 1 - Introduction to Object- Oriented Programming Outline 1.1 Machine Languages, Assembly Languages and.
Introduction to Java.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
 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.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
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.
Chapter 1 Coding Introduction.
 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.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Training Course Dr. H.E. Dunsmore Purdue University Java – How to Program, Deitel (5 th Edition)
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
© 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.
1 Chapter 1 Introduction to Java. 2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________.
© 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.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
1 COMP 241: Object-Oriented Programming with Java Fall 2004 Lecture 1 September 27, 2004 Serdar Taşıran.
 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.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CT1513 Introduction To java © A.AlOsaimi.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
1 Chapter 1 Java –Originally for intelligent consumer-electronic devices –Then used for creating Web pages with dynamic content –Now also used for: Develop.
Introduction to Programming 1 1 2Introduction to Java.
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.
Introduction to JAVA Programming
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.
Chapter 1 Coding Introduction.
Introduction to Computers, the Internet and the World Wide Web
Introduction to Computers
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
GC101 Introduction to computer and program
Chapter 1 Introduction to Computers, Programs, and Java
Lecture 1: Introduction to JAVA
Java programming lecture one
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Computers, the Internet and the World Wide Web
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
Introduction to Computers, the Internet and the World Wide Web
Introduction to Computers, the Internet and the World Wide Web
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 – Introduction to Computers, the Internet, and the Web
Computer Programming-1 CSC 111
Introduction to Computers, Internet and the World Wide Web
Presentation transcript:

Introduction to Computers, the Internet and the World Wide Web 1 Introduction to Computers, the Internet and the World Wide Web

1.7 Machine Languages, Assembly Languages and High-Level Languages “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

1.8 History of C and C++ C++ Objects Evolved from C Evolved from BCPL and B Provides object-oriented programming capabilities Objects Reusable software components that model real-world items

1.9 History of Java Java Originally for intelligent consumer-electronic devices Then used for creating Web pages with dynamic content Now also used to: Develop large-scale enterprise applications Enhance WWW server functionality Provide applications for consumer devices (cell phones, etc.)

1.10 Java Class Libraries Classes Java provides class libraries Include methods that perform tasks Return information after task completion Used to build Java programs Java provides class libraries Known as Java APIs (Application Programming Interfaces)

Software Engineering Observation 1.3 Extensive class libraries of reusable software components are available over the Internet and the Web, many at no charge.

1.13 Typical Java Development Environment Java programs normally undergo five phases Edit Programmer writes program (and stores program on disk) Compile Compiler creates bytecodes from program Load Class loader stores bytecodes in memory Verify Bytecode Verifier confirms bytecodes do not violate security restrictions Execute JVM translates bytecodes into machine language

Fig. 1.1 | Typical Java development environment.

Common Programming Error 1.1 Errors like division by zero occur as a program runs, so they are called runtime errors or execution-time errors. Fatal runtime errors cause programs to terminate immediately without having successfully performed their jobs. Nonfatal runtime errors allow programs to run to completion, often producing incorrect results.

File location of the ATM application Using the cd command to change directories File location of the ATM application Fig. 1.2 | Opening a Windows XP Command Prompt and changing directories.

Fig. 1.3 | Using the java command to execute the ATM application.

Fig. 1.4 | Prompting the user for an account number. ATM welcome message Enter account number prompt Fig. 1.4 | Prompting the user for an account number.

Enter valid PIN ATM main menu Fig. 1.5 | Entering a valid PIN number and displaying the ATM application's main menu.

Account balance information Fig. 1.6 | ATM application displaying user account balance information.

ATM withdrawal menu Fig. 1.7 | Withdrawing money from the account and returning to the main menu.

Fig. 1.8 | Checking new balance. Confirming updated account balance information after withdrawal transaction Fig. 1.8 | Checking new balance.

Fig. 1.9 | Ending an ATM transaction session. ATM goodbye message Account number prompt for next user Fig. 1.9 | Ending an ATM transaction session.