Computer Science I CSC 135.

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Mr Manesh T Dept. of CSE College of Arts and Science Chapter 3 Types of Softwares Code: 1400 Tech.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
16/13/2015 3:30 AM6/13/2015 3:30 AM6/13/2015 3:30 AMIntroduction to Software Development What is a computer? A computer system contains: Central Processing.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
©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.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
1-1 ICS102: Introduction To Computing I King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
1 Introduction to computers Overview l · Grading Policy »Cheating Rules (serious concern) »Examinations and Fixation of Timings »Quizzes »Homework Assignments.
Ceng 230 Programming with C
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Topic 1: Introduction to Computers and Programming
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
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.
Introduction to Computer Software
COMPUTER SOFTWARE Chapter 3. Software & Hardware? Computer Instructions or data, anything that can be stored electronically is Software. Hardware is one.
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
Chapter 1 An Overview of Computers and Programming Languages.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
CISC105 General Computer Science Class 1 – 6/5/2006.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Introduction Lecture 01.
CPS120: Introduction to Computer Science Introduction to Computers.
What is computer hardware? Computer hardware are the physical components of the computer.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Computer Architecture
Computer Basic Vocabulary
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Chapter 1 An Overview of Computers and Programming Languages.
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Professor John CarelliKutztown University Computer Science Department Computer Science I CSC 135.
Java Programming: From the Ground Up
Computer Science II Chapter 1.
Chapter 1: An Overview of Computers and Programming Languages
Engineering Problem Solving With C An Object Based Approach
Chapter 1: An Overview of Computers and Programming Languages
Overview of Computers and Programming Chapter 1
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
An Introduction to The computer.
Computer System and Programming
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Contents Todays Topic: Introduction to Computer Software We will learn
C++ Programming: From Problem Analysis to Program Design
Computer Technology Notes #3
IB Computer Science Topic 2.1.1
UNIV 103 CS Majors Seminar Dr. Blaise W. Liffick Fall 2017.
Overview of Computers & Programming Languages
Computer Electronic device Accepts data - input
Computers: Hardware and Software
Computer Electronic device Accepts data - input
Fundamentals of Computer Programming
National Diploma in Computer Studies
Computer Electronic device Accepts data - input
Introduction to Computer Systems
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

Computer Science I CSC 135

Computer Basics Hardware Software CPU (central processing unit) – the “brains” Memory – where information is stored IO – input/output devices – for human interaction Software Computer Instructions – “programs” OS (operating system) Handles required “low level” tasks, provides a convenient interface for humans Application programs Human accessible - written for specific tasks

Modern computer, basic architecture Inputs Outputs Central Processing Unit (CPU) Control Unit (CU) Arithmetic/Logic Unit (ALU) Internal Memory Registers Main Memory* Program Data Secondary Storage Inputs Keyboard, mouse, ... Outputs Monitor, printer, ... Secondary Storage Disk drive, USB stick, ... (permanent/long term) * shared program/data memory (Von Neumann)

Modern Computer H DRAM Hard Drive CPU

Binary Coding Binary is base 2 coding (vs. Decimal, which is base 10) Counting in Binary 1 2 10 3 11 4 100 5 101 6 110 7 111 8 1000 9 1001 1010 Binary is base 2 coding (vs. Decimal, which is base 10) Base 10 has 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Base 2 has only 2 “bits”: 0, 1 Bits is short for “binary digits” Why? It’s easier to make electronic circuits with 2 states rather than 10 Circuit only has to be “off” for zero or “on” for one – basically, a switch! Works well with transistors (also with vacuum tubes or relays)

Memory Stores instructions and data Address Contents 00000000 (0) 00000101 (5) 00000001 (1) 00000011 (3) 00000010 (2) 01110100 (J) 00111101 (=) 00000100 (4) 10010111 (a) 00000111 (7) 00000110 (6) 01100111 (C) 00001001 (9) 00001000 (8) 00110101 (#) Stores instructions and data Every memory location has a numerical address Contents are coded and stored in Binary format (ex: ascii) Binary: “base 2” (next slide) 00101101 … 10110110 Byte Word Bit

High Level Languages Binary coded instructions/programs Called “machine code” Low level (many steps to accomplish simple tasks) Arcane – difficult to work with Led to development of higher level languages C, C++, FORTRAN, Basic, Java, … Portable (same on any machine architecture) User friendly, intuitive -> A=A+B But, needs to be translated or “compiled” into machine code Used extensively for application software development

Operating Systems Designed for high level operation – two primary goals… Handles general computer management tasks Provides a friendly interface for human interaction Built-in OS programs Allow a user to perform useful tasks like: Open, save, move, copy a file Print information OS Examples Windows, Mac OS, Android, Unix/Linux, …

Operating Systems, Windows and Unix Microsoft™ Windows Standard OS for PC’s GUI based, (originally built on DOS) GUI: Graphical User Interface Unix (used in this course) Command based Originally developed at Bell Labs™, written in C Used extensively in science, engineering, networking Linux is an open-source variant

Application programs Special programs installed on the computer to accomplish specific tasks Developed independently (not part of OS) Examples: Word processors, spreadsheets, presentations This course will focus on developing programs using Unix and C++

Software development method Specify the problem requirements Analyze the problem develop a strategy to address it Design an algorithm (recipe) to solve the problem Implement the algorithm Write/develop the program! Test and verify the completed program Maintain and update the program

Steps in programming Write the program “compile” the program Create a text file (Source File) in the programming language (emacs) “compile” the program Translate the source file into machine recognizable object code in an Object File Using a “Compiler” (g++) “link” the object code together with any other necessary Object Files Other Object Files may come from other Source Files or generic libraries Using a linker (g++) Creates an Executable File (can be run, or executed, on the computer) “load” (run) the Executable File Uses a Loader to actually load and run the program

Program Development Write the program “compile” the program Create Source File “compile” the program Generate an Object File “link” Object Files, as needed Create an Executable File “load” (run) the Executable File

Professional Ethics Privacy and Misuse of Data Computer Hacking Plagiarism and Software Piracy Misuse of a Computer Resource CSIT Academic Integrity Policy document Located on the Computer Science and Information Technology Department home page at: https://www.kutztown.edu/csit