Catie Welsh January 12, 2011 MWF 1-1:50 pm Sitterson 014 1.

Slides:



Advertisements
Similar presentations
Basic Computer Vocabulary
Advertisements

 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
 2005 Pearson Education, Inc. All rights reserved Introduction.
COMPUTER SYSTEM CAN BE DIVIDED INTO : 1- General Computer 2- Special Computer.
Week 1 - Wednesday.  What did we talk about last time?  Syllabus  Computers.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Wednesday, 9/4/02, Slide #1 1 CS 106 Intro to CS 1 Wednesday, 9/4/02  Today: Introduction, course information, and basic ideas of computers and programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Introduction to Computers
COMP 110 Branching Statements and Boolean Expressions Tabitha Peck M.S. January 28, 2008 MWF 3-3:50 pm Philips
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
COMP 14: Primitive Data and Objects May 24, 2000 Nick Vallidis.
1 The First Step Learning objectives write Java programs that display text on the screen. distinguish between the eight built-in scalar types of Java;
Keyboarding Fall  Hardware is the parts of the computer that you can actually see and touch, such as…… Monitors Mouse Keyboard Ear phones Scanner.
COMP Computer Basics Yi Hong May 13, 2015.
CSE 131 Computer Science 1 Module 1: (basics of Java)
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
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.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
CPS 2231 Computer Organization and Programming Instructor: Tian (Tina) Tian.
Chapter 1Java: an Introduction to Computer Science & Programming - Walter Savitch 1 Chapter 1 l Background information »important regardless of programming.
COMP 110 Computer Basics Luv Kohli August 25, 2008 MWF 2-2:50 pm Sitterson
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
COMP 110 Spring Announcements Computers in class on Friday: Lab Office Hours: Monday 12-2 New students see me after class Administrative Changes.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Introduction to Computers
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
1 Introduction to Java Brief history of Java Sample Java Program Compiling & Executing Reading: => Section 1.1.
Computer Parts. Two Basic Parts Hardware & Software.
Object Oriented Programming Computer Engineering Department JAVA Programming Course Asst. Prof. Dr. Ahmet Sayar Kocaeli University - Fall 2014.
Introduction to Computer Systems and the Java Programming Language.
Programming Concept Chapter I Introduction to Java Programming.
Catie Welsh January 10, 2011 MWF 1-1:50 pm Sitterson 014.
What is computer hardware? Computer hardware are the physical components of the computer.
BAT3O / BTX4C. Definition: A computer is an electronic machine that 1) takes in data and instructions (input) 2) works with the data (processing) 3) puts.
COMP 110 switch statements and while loops Luv Kohli September 10, 2008 MWF 2-2:50 pm Sitterson
© 2011 Pearson Education, publishing as Addison-Wesley Monday  Class Requirements  Earn hawk points today with the Name Game  Network Login.
Chapter 1- Basic Computing and your first program.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 3.
Catie Welsh February 2,  Program 1 Due Today by 11:59pm today  Program 2 Assigned Today  Lab 2 Due Friday by 1:00pm 2.
The Computer System CS 103: Computers and Application Software.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Welcome to Technology Application Jeopardy. Hardware More Hardware Jobs & Software Computer Types Storage
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Catie Welsh January 31,  Project 1 Due Wednesday  Lab 1 Grades are posted 2.
import java.util.Scanner; class myCode { public static void main(String[] args) { Scanner input= new Scanner(System.in); int num1; System.out.println(“Enter.
CS 177 Recitation Week 1 – Intro to Java. Questions?
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
COMP Review of Chapter 1 & 2
Chapter 1: Introduction to Computers and Programming
Computer Basics.
Chapter 2 Clarifications
Computer Basics 1 Computer Basics.
Computer Hardware and Software
Something about Java Introduction to Problem Solving and Programming 1.
Michele Weigle - COMP 14 - Spr 04
Introduction to Java Brief history of Java Sample Java Program
Lecture Notes - Week 2 Lecture-1. Lecture Notes - Week 2 Lecture-1.
Windows.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Catie Welsh January 12, 2011 MWF 1-1:50 pm Sitterson 014 1

 Homework 0 is due tonight by 11:59pm  Bring your laptop on Friday  Eclipse ◦ Before recitation on Friday:  Download and Install Java and Eclipse  Go through the Eclipse Tutorial  Once you install Eclipse, there are tutorials available on the Welcome page  Go through the “Create a Hello World Application” tutorial 2

 Monday office hours will be 10am-11am  If you still cannot make it to either office hour, me to set up an appointment if you need help with an assignment.

 Hardware and Memory  Programs and Compiling  Your first program

 Need to know basics of a computer ◦ If you drive a car you should know it runs on gasoline  Understand what your program is doing  Talk intelligently about computers 5

 Hardware - physical machine ◦ CPU, Memory  Software - programs that give instructions to the computer ◦ Windows XP, Games, Eclipse 6

 CPU (Central Processing Unit) - the “Brain” ◦ GHz - number of instructions per second, how fast is the computer ◦ Dual Core - multiple processing units per CPU 7

 Holds data for the computer  How much the “Brain” can remember  Auxiliary Memory (Secondary Memory) ◦ Disk drives, CDs, Flash drives ◦ Exists until you delete it  Main Memory ◦ Memory computer uses for intermediate calculations (program you are running) ◦ Disappears when you shut down your computer 8

 Your main memory  2 gigabytes of RAM ◦ Bytes - measurement of memory ◦ Gallon - measurement for liquid ◦ Megabyte = 1 million bytes ◦ Gigabyte = 1 billion bytes 9

 Smallest addressable unit of memory  Both main memory and auxiliary memory are measured in bits  1 byte = 8 bits  Bit = 0 or 1 (on or off)  Language of the computer is bits  byte of 8 bits 10

 Set of instructions for a CPU to follow  Also known as software.  You will be writing programs ◦ We will look at one soon 11

Your Program Compiler Machine Language (Bits) High-level language (human readable) Low-level language (computer readable) 12

 What are the two kinds of memory in a computer?  What is software?  What is the difference between a machine- language program and a high-level language program? 13

import java.util.*; public class FirstProgram { public static void main(String[] args) { System.out.println("Hello out there."); System.out.println("I will add two number for you."); System.out.println("Enter two whole number on a line:"); int n1, n2; Scanner keyboard = new Scanner(System.in); n1 = keyboard.nextInt(); n2 = keyboard.nextInt(); System.out.println("The sum of those two numbers is"); System.out.println(n1 + n2); } } 14

import java.util.*;  Package = Library of classes  Java.util is a package  Different libraries give different information  Physics Library = Newtonian Physics  Music Library = your iTunes collection  java.util. = Allows you to read data from keyboard 15

public class FirstProgram { public static void main(String[] args) {  Begin a program named FirstProgram  Program names should make sense  Another name for this program could be  AddTwoNumbers  You should always capitalize the first letter or each word in your program name 16

System.out.println("Hello out there."); System.out.println("I will add two numbers for you."); System.out.println("Enter two whole numbers on a line:");  Write what is in quotes to screen 17

 Class - Category of Objects ◦ Sport  Object - Performs actions (methods) ◦ Basketball, Soccer, Football, Ultimate Frisbee  Method - actions performed by objects ◦ Score, Foul, Start, Halftime 18

Basketball.begin(); Football.score(6); System.out.println(“Hi”); Object Method Invoke Method 19

int n1, n2;  Variable - store piece of data  n1 - store integer  n2 - store integer 20

Scanner keyboard = new Scanner(System.in); Create object (keyboard) of Scanner class Sport soccer = new Sport(); Class Object Not always System.in 21

n1 = keyboard.nextInt(); Read an integer from the keyboard and store it in n1 Object Method Invoke/Call 22

System.out.println("The sum of those two numbers is"): System.out.println(n1 + n2); Add n1 and n2 Print the sum to the screen 23

import java.util.*; public class FirstProgram { public static void main(String[] args) { System.out.println("Hello out there."); System.out.println("I will add two number for you."); System.out.println("Enter two whole number on a line:"); int n1, n2; Scanner keyboard = new Scanner(System.in); n1 = keyboard.nextInt(); n2 = keyboard.nextInt(); System.out.println("The sum of those two numbers is"); System.out.println(n1 + n2); } } 24

Hello out there. I will add two numbers for you. Enter two whole numbers on a line: The sum of those two numbers is 42 Input by user

 Eclipse  Your first java program  Download and Install Eclipse before lab (see webpage)  Go through the Eclipse Tutorial on your own  Read  Bring ◦ Laptop (fully charged) ◦ Textbook

 No class on Monday  Wednesday - Designing Programs (Read 1.2) 27