CS 110 Intro to Computer Science I Sami Rollins Fall 2006.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Introduction to Programming.
Advertisements

CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and 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.
CS211 Data Structures Sami Rollins Fall 2004.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
COMP Computer Basics Yi Hong May 13, 2015.
Introduction to Programming G50PRO University of Nottingham Unit 1 : Introduction Paul Tennent
CS1430: Programming in C++ Section 2 Instructor: Qi Yang 213 Ullrich
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
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.
Python Mini-Course University of Oklahoma Department of Psychology Day 1 – Lesson 2 Fundamentals of Programming Languages 4/5/09 Python Mini-Course: Day.
CS130 Introduction to Programming with VB 6.0 Fall 2001.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Programming Professor Sprenkle September 10, 2007.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
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.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Introduction to Programming Peggy Batchelor.
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.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
Python From the book “Think Python”
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 Overview 1.1 Computer Systems 1.2 Programming and Problem Solving.
CPSC- 120 Principle of Computer Science I Computer = Hardware + Software.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
Introduction to C Programming Lecture 2. C Tutor Schedule / 3rd Floor Lab b The lab and tutor schedule is available at the following URL:
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
1 CS1430: Programming in C++ Section 2 Instructor: Qi Yang 213 Ullrich
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 09/04/13. Change Your Password  The command is: passwd In the lab first do : ssh -Y onyx  You will have to see me to change it, if you forget.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Compilers and Interpreters
Chapter 1 An Overview of Computers and Programming Languages.
The Big Picture. My Story  Wrote great programs  Didn’t understand how they worked.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Introduction to Computer Programming By: Mr. Baha Hanene Chapter 1.
Software Engineering Algorithms, Compilers, & Lifecycle.
Chapter 1Java: an Introduction to Computer Science & Programming - Walter Savitch 1 Chapter 1 l Background information »important regardless of programming.
Topic 2: Hardware and Software
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
What Do Computers Do? A computer system is
Why don’t programmers have to program in machine code?
Introduction to Computers and C++ Programming
Topic: Programming Languages and their Evolution + Intro to Scratch
Problem Identification
Lecture 1: Introduction to JAVA
TRANSLATORS AND IDEs Key Revision Points.
Operating Systems Lecture 5.
Introduction CSC 111.
15-110: Principles of Computing
Computer Programming-1 CSC 111
Programming language translators
Presentation transcript:

CS 110 Intro to Computer Science I Sami Rollins Fall 2006

Introduction What is computer programming? What is this class about? Who should take this class?

Administrative Information Class web page

Computer Hardware Main memory Secondary memory CPU Input devices Output devices

Computer Software Operating system –Examples? Applications –Examples?

Application Execution Hard Disk (Secondary storage) Main Memory CPU Input Output

Computer Programs At the lowest level – machine instructions – One step up – assembly language –ADD A More user friendly – high level languages –C = A + B; –Examples?

Compiled Languages Some languages are compiled or translated directly into machine instructions High-level Code Compiler Machine Instructions

Interpreted Languages High level language must be translated into a language the computer can understand High-level Code Interpreter Output

Java High-level Code Compiler Output Interpreter (JVM) Bytecode

Writing Programs Understand requirements Write an algorithm Implement your algorithm Debug and test your code

What is an algorithm? A specific set of instructions An algorithm to make a PBJ sandwich?

Getting Started Linux –A tutorial: –Commands: ls - list files (ls) cd dest - change directory (cd.., cd cs110) pwd - print current directory (pwd) mkdir dir_name- make a new directory (mkdir cs110) cp src dest- copy file (cp hello.py anotherhello.py) rm file_name - remove file (rm oldprogram.py) mv src dest - move file (mv hello.py anotherhello.py)

Hello World -- interactive pinot:~/teaching/cs110/test_py srollins$ python Python (#1, Mar , 20:38:20) [GCC (Apple Computer, Inc. build 1809)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print "Hello, world!" Hello, world! >>>

Hello World -- non-interactive #Name: Sami Rollins #Filename: hello.py #My first python program print "Hello, world!"

Errors You WILL have errors in your programs Syntax Errors –Compiler/interpreter doesn’t understand code –Ex. – prit “Hello, world!” –Sometimes error messages don’t match problem Logic –Program runs, but doesn’t do what you want –Ex. – print “Helol, world!” –Can be hard to track down

Exercises 1. Write a program to display the following: * ** *** **** ***** 2. Now try the following: ***** **** *** ** *