Hans-Peter Plag October 9, 2014 Session 2 Storing Information File Formats Accessing Information Processing Information.

Slides:



Advertisements
Similar presentations
 An operating system (OS) is a set of computer programs that allow the user to perform basic tasks like copying, moving, saving and printing files. 
Advertisements

1 Lecture-2 CSIT-120 Spring 2001 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
MCT260-Operating Systems I Operating Systems I Using Text Editors.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
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.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
 Method of representing or encoding numbers  Two main notation types  Sign-value  Roman numerals  Positional (place-value)  Modern decimal notation.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
COMPUTER FUNDAMENTALS David Samuel Bhatti
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Intro. to Game Programming Want to program a game?
1 CSC103: Introduction to Computer and Programming Lecture No 2.
Hans-Peter Plag October 2, 2014 Session 1 Introduction to the sessions Elements of Computer Literacy ? ?
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Topics Introduction Hardware and Software How Computers Store Data
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
A Guide to Unix Using Linux Fourth Edition
Chapter 2 Computer Hardware
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Introduction Lecture 01.
Midterm Hardware vs. Software Everyone got this right!
Hans-Peter Plag November 6, 2014 Session 4 (Programming Languages) (Data Types and Variables) Expressions and Operators Flow Control.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
CS161 Computer Programming Instructor: Maria Sabir Fall 2009 Lecture #1.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
Operating Systems Foundation Computing Half the people you know are below average.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Chapter Three The UNIX Editors.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Base 2 Numbering System Chapter 1.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Characters and Strings
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
CC410: System Programming Dr. Manal Helal – Fall 2014 – Lecture 10 – Loaders.
Programming with Java. Chapter 1 Focuses on: –components of a computer –how those components interact –how computers store and manipulate information.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
Technology Literacy Unit 3: Software.
Binary Representation in Text
Binary Representation in Text
Topics Introduction Hardware and Software How Computers Store Data
Guide To UNIX Using Linux Third Edition
Representing Information as bit patterns
TOPICS Information Representation Characters and Images
Overview of Computers & Programming Languages
Computer Science I CSC 135.
Objective 2.02: Understand computer performance and features
Presenting information as bit patterns
Objective 2.02: Understand computer performance and features
Learning Intention I will learn how computers store text.
Networks & I/O Devices July 10, 2019.
Computer Applications -Generic Elective
Programming Logic and Design Eighth Edition
Presentation transcript:

Hans-Peter Plag October 9, 2014 Session 2 Storing Information File Formats Accessing Information Processing Information

Hardware: (smart phone, tablet,) laptop/PC, work station, main frame, clusters, cloud Operating system: “An operating system (OS) is software that manages computer hardware and software resources and provides common services for computer programs. The operating system is an essential component of the system software in a computer system. Application programs usually require an operating system to function.” computer hardwares and prgrams. Tsystem is an esseprograms usuall User interface: non-interactive teletype (command line) button/keys graphical user interface (GUI) Application: Application software is a set of one or more programs designed to carry out operations for a specific application. Application software cannot run on itself but is dependent on system software to execute. Examples of application software include MS Word, MS Excel, a console game, a library management system, a spreadsheet system etc. User: type: human, program, equipment, level: low to highly experienced, experts constraints: concepts, value systems, capabilities,... User Interface

Information is stored in files How is information stored in files? We’ll come back to this Previously: most operating system did not use file name as information Today: many operating system, GUIs and applications use file type as information:.txt,.doc,.docx,.ppt,.pdf,.jpg,.exe,.py,.f90,...

Files are organized in file systems Linux/Unix: /directory/sub-directory/sub-directory/... File system control: Linux: mainly up to user Mac: some predefined directories needed for GUI/applications to work Discussion: In system-controlled file systems, it can be difficult to find something In user-controlled systems, users need to have organization skills

Information is stored in files How is information stored in files? Basics about number systems Decimal number, can be represented as: Any decimal number can be represented as: Any number to basis b can be represented as:

Information is stored in files How is information stored in files? Basics about number systems Special basis is b = 2: Example: binary number system Other important systems: b = 8: Octal b = 16: Hex

How is information stored in files? Basics element in a computer is a switch with two states: 0 and 1 All information is stored using the binary number system Byte: 8 bits bitbit bytebyte Can represent numbers from 0 to 255 Can also be used to represent 256 symbols, characters, codes

How is information stored in files? Fundamental coding is ASCII ASCII: American Standard Code for Information Interchange: is a character- encoding scheme. Originally based on the English alphabet, it encodes 128 specified characters into 7-bit binary integers. The characters encoded are, numbers 0 to 9; lower case letters a to z; uppercase letters A to Z; basic punctuation symbols; control codes that originated with Teletype machines; and space.character- encoding schemedes 128 specifiee charactewith Teletype machi

How is information stored in files? Fundamental coding is ASCII Extended ASCII (or high ASCII) is eight-bit or larger character encodings that include the standard seven-bit ASCII characters as well as others. The use of the term is sometimes criticized,[1][2][3] because it can be mistakenly interpreted that the ASCII standard has been updated to include more than 128 characters or that the term unambiguously identifies a single encoding, both of which are untrue.eight-bit encodings that inc asers.

How is information stored in files? File coding: - ASCII/extended ASCII: source code, text files, data,... - can be edited in a text editor, printed, displayed in screen,... - binary: executable programs, application files (word, excel,...), graphics, databases,... - cannot be edited in text editor, printed, viewed; require program to read/decode

How is information stored in files? ASCII File structure: - depends on programming language - earlier languages: record based - today: many systems make no assumptions about structure Binary files: - operating system, program language, user dependent - Unix/Linux - Mac OS Classic - Windows (MS Dos)

Basic operations to access information stored in a file are: - opening a file - reading a file - decoding information - processing information - writing information to file - closing a file Input from keyboard/screen can be consider similar to input from files - Fortran: reads records, not individual characters - C/C++: can read characters and records - PHP/Python: read full files or parts

Use a simple syntax to outline a procedure: - read an ASCII file (generated in an editor) - Separate the contents into logical record indicated by the string ‘\n’ - Write a file with records separated by ‘|’ Use a simple syntax to outline a procedure that can decode a command line consisting of: command-name p1=value p2=value... pn=value