Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Introduction to Computers and Programming.

Slides:



Advertisements
Similar presentations
Intro to C#. Programming Coverage Methods, Classes, Arrays Iteration, Control Structures Variables, Expressions Data Types.
Advertisements

CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Fundamentals and a Brief History of Computer Systems.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. slide 1 CS 125 Introduction to Computers and Object- Oriented Programming.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Data Structure and Algorithm 1 Yingcai Xiao. You Me The Course (
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 1: Getting Started by George Lamperti & BU Faculty.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Chapter 3 Computer Hard ware
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Introduction to .Net Framework
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Topics Introduction Hardware and Software How Computers Store Data
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to .NET Rui Ye.
Introduction to .NET Framework
Introduction to Programming Visual Basic.NET CS A109.
4 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Introduction Chapter 1. 1 History of Computers Development of computers began with many early inventions: The abacus helped early societies perform computations.
Copyright © 2012 Pearson Education, Inc. Chapter 1 Introduction to Computing and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Visual C++ Programming: Concepts and Projects
Invitation to Computer Science 5 th Edition Chapter 6 An Introduction to System Software and Virtual Machine s.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 October 20, October 20, 2015October 20, 2015October 20,
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Introduction to.NET. What is.NET? Microsoft’s vision of the future of applications in the Internet age –Increased robustness over classic Windows apps.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 1.1 What Is a Computer? 1.2 Computer Organization.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 Getting Acquainted With Computers, Programs, and C++
Chapter 1 An Overview of Computers and Programming Languages.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Computer Software Lecturer: Dr Mohammad Nabil Almunawar.
Introduction to Programming Visual Basic.NET CS A109.
Programming with Java. Chapter 1 Focuses on: –components of a computer –how those components interact –how computers store and manipulate information.
ITSE 1430 – Introduction to C# Programing Chapter 1 – Introduction to Computers, the Internet and Visual C# ITSE Introduction to C# Programing 1.
Introduction to Visual Basic 2008 Programming
Introduction to Programming and Visual Basic 2008
Introduction
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Chapter 1: Computer Systems
Introduction to Programming Visual Basic .NET
Advanced Programming: C# Lecture 01: Introduction
CIS16 Application Development – Programming with Visual Basic
Presentation transcript:

Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Introduction to Computers and Programming

Organization of a Computer System Central Processing Unit Main Memory Input Device Output Device Secondary Storage

The CPU Fetches instructions from main memory Carries out the operations commanded by the instructions Each instruction produces some outcome A program is an entire sequence of instructions Instructions are stored as binary numbers Binary number - a sequence of 1’s and 0’s

Evolution of hardware –1950s: relays and vacuum tubes –1960s: transistors –mid-1960s: integrated circuits (ICs) –Present computers: use of microprocessors Bit: smallest and most basic data item in a computer; represents a 0 or a 1 Byte: a grouping of eight bits –E.g., –What does this represent? Word: a grouping of one or more bytes Knowing About: Computer Hardware

We said that could represent anything, a number, sound, color, etc.

Main Memory – a big list of addresses

First-Generation and Second- Generation (Low-Level) Languages Low-level languages –First-generation and second-generation languages –Machine-dependent languages –The underlying representation the machine actually understands First-generation languages –Also referred to as machine languages –Consist of a sequence of instructions represented as binary numbers –E.g.: Code to ADD might be To add 1+0 and then 1+1 our program might look like this:

Second-generation languages –Also referred to as assembly languages –Abbreviated words are used to indicate operations –Allow the use of decimal numbers and labels to indicate the location of the data Assemblers –Programs that translate assembly language programs into machine language programs –Our add program now looks like: ADD 1,0 ADD 1,1 First-Generation and Second- Generation (Low-Level) Languages Assembler

High-level languages –Third-generation and fourth-generation languages –Programs can be translated to run on a variety of computer types Third-generation languages –Procedure-oriented languages –Object-oriented languages Our Add program might now look like: sum = value1 + value2 Third-Generation and Fourth- Generation (High-Level) Languages Compiler

The Fetch-Decode Execute Cycle

Operating System Applications BIOS CPU Layers of Software Systems

The.NET Platform C#.NET is in a sense one step removed from a typical high-level language C# runs using a “Virtual Machine” or “Common Language Runtime” –The physical computer simulates a virtual computer that runs your program What is.NET? –Microsoft’s vision of the future of applications in the Internet age Increased robustness over classic Windows apps New programming platform Built for the web –.NET is a platform that runs on the operating system

.NET.NET is actually a program that sits on top on the Operating System (currently all the Windows XP, Vista; subset exists for FreeBSD, Linux, MacOS) Provides language interoperability across platforms Strong emphasis on Web connectivity, using XML web services to connect and share data between smart client devices, servers, and developers/users Platform/language independent

.NET Framework Framework Class Library ADO.NET Network XML Security Threading Diagnostics IO Etc. Common Language Runtime Memory Management Common Type SystemLifecycle Monitoring C# VB.NET C++.NET Other Operating System VisualStudio.NETVisualStudio.NET Common Language Specification Windows Forms ASP.NETASP.NET Web Services ASP.NET Application Services Web FormsControlsDrawing Windows Application Services

.NET: Language-Independent, Mostly Platform Specific Person.vb Address.cs Company.cbl CLR Person MSIL Company MSIL Address MSIL Windows Others? CLR Deploy (Visual Basic) (C#) (Cobol)

Code Sample – Console Application (Walkthrough in class)

C# doesn’t care about whitespace (mostly) - spaces after keywords, newlines, tabs…

Problem Solving Before jumping into writing code we have to know how to solve the problem our program is supposed to address –Understand the problem –Design a solution –Consider alternatives and refine the solution –Implement the solution –Test the solution and fix any problems

Object Oriented Software Principles Object – a software object represents a real object in our problem domain –State(variables, properties) Attributes –Behaviors(methods, properties) The definition of a software object is called a class –The definition is the blueprint; to use it we need an instance of the class

1-30

Later we will see inheritance and polymorphism