CS110 Introduction to Programming Lecture 1 January 27, 2004 Ethan Bolker Philosophy Bank: user interface, Java, object model Programming environment Homework.

Slides:



Advertisements
Similar presentations
1 NS-2 Tutorial COMP R2 University of Manitoba March 4, 2009.
Advertisements

C Programming for engineers Teaching assistant: Ben Sandbank Home page:
Introduction to Object-Oriented Programming CS 21a: Introduction to Computing I First Semester,
1 CS 106, Winter 2009 Class 4, Section 4 Slides by: Dr. Cynthia A. Brown, Instructor section 4: Dr. Herbert G. Mayer,
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. slide 1 CS 125 Introduction to Computers and Object- Oriented Programming.
Copywrite 2003 Walter Savitch These slides are for the exclusive use of students in CSE 11 at UCSD, Winter quarter They may not be copied or used.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
Lecture 171 CS110 Lecture 17 Thursday, April 1, 2004 Announcements –hw7 due tonight –pass/fail, withdraw deadline April 8 Agenda –Questions –Juno –JFile.
Why choose Drupal?
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Lecture 1 Introduction to Computers and Object-
Welcome to CS-IT 114 Introduction to Java Spring 2006 Namita Singla Department of Computer Science University of Massachusetts Boston.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
CMSC 202 Computer Science II for Majors Fall 2009 Introduction.
TCU CoSc Introduction to Programming (with Java) Course Introduction.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Agenda What is Computer Programming? The Programming Process
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
CS490 Web Design, AJAX, JQuery
CS110/CS119 Introduction to Computing (Java)
COMP1070/2002/lec3/H.Melikian COMP1070 Lecture #3 v Operating Systems v Describe briefly operating systems service v To describe character and graphical.
CS 3305 Course Overview. Introduction r Instructor: Dr Hanan Lutfiyya r Office: MC 355 r hanan at csd dot uwo ca r Office Hours: m Drop-by m Appointment.
1 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
FALL 2012 Dr. Ghada Drahem Facult y of Engineering Computer Engineering Department.
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
Java: Chapter 1 Computer Systems Computer Programming II.
Next Going Google: Part 1 What is Google Apps? Why use Google Apps? How do I access and activate my Google Apps Account? Slide 1 of 21 Click Next to begin.
Lecture 61 CS110 Lecture 6 Thursday, February 12, 2004 Announcements –hw2 due today Agenda –questions –testing –modeling text files –declarations (classes,
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
CS161 Topic #21 CS161 Introduction to Computer Science Topic #2.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
Case Study :. Introduction The ATM network will consist of a large number of ATM machines distributed over a wide geographical area. The network must.
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
Welcome to IIT and cs115!.
1 Agenda Administration Background Our first C program Working environment Exercise Memory and Variables.
Introduction to Java and Object-Oriented Programming AJSS Computer Camp Department of Information Systems and Computer Science Ateneo de Manila University.
1 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Wrapup1 CS110 Wrapup Tuesday, May 11, 2004 Announcements –final exam Thursday, May 20, 8:00 AM McCormack, Floor 01, Room 0608 (easier than last exam?!)
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Lecture 21 CS110 Lecture 2 January 29, 2004 Announcements –hw1 part 1 – due right now –hw1 part 2 – due Tuesday night Questions Agenda –turnin –Object.
CS 390 Unix Programming Environment Summer Suchindra Rengan - CS3902 Course Details Instructors Suchindra Rengan – ‘sachin’ ( Section 001)
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
1 CS210 Intermediate Computing with Data Structures (Java) Saaid Baraty S-3-90.
CMSC 104, Version 8/061L01Introduction.ppt Introduction CMSC 104 Problem Solving and Computer Programming.
CMSC 104, Lecture 011 Course Introduction CMSC 104 Problem Solving and Computer Programming Spring 2002 Section 0801, Wed 7:00-9:30pm Dr. Thomas Gaeng.
Aug Introduction CMSC 104 section 301 Problem Solving and Computer Programming Fall 05.
Lecture 101 CS110 Lecture 10 Thursday, February Announcements –hw4 due tonight –Exam next Tuesday (sample posted) Agenda –questions –what’s on.
1 CS1100 Fall Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems CS100J:
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
WRITING REPORTS Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall 2015.
CS 100Lecture71 CS100J Lecture 7 n Previous Lecture –Computation and computational power –Abstraction –Classes, Objects, and Methods –References and aliases.
CMSC 104, Version 1/021 Introduction CMSC 104 Problem Solving and Computer Programming Summer 2004 Section 6080 Ms. Dawn Block.
Designing Classes Lab. The object that you brought to class Put it in the basket we will exchange them now.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
Munster Programming Training
Introduction to Computers, the Internet and the World Wide Web
WWW and HTTP King Fahd University of Petroleum & Minerals
Introduction to Programming
Introduction to Visual Basic 2008 Programming
Welcome to CS 1010! Algorithmic Problem Solving.
CS100J Lecture 7 Previous Lecture This Lecture Java Constructs
CS288 Lab Exercise 2.
Problem Solving and Computer Programming
Planning and Storyboarding a Web Site
CS Problem Solving and Object Oriented Programming Spring 2019
CSCI 203: Introduction to Computer Science I
Presentation transcript:

CS110 Introduction to Programming Lecture 1 January 27, 2004 Ethan Bolker Philosophy Bank: user interface, Java, object model Programming environment Homework 1 Start now!

Lecture 12 Announcements These slides are available on course web page Hand in questionnaire on your way out Discussion sections meet regularly in Purple Lab, upper garage level in Healey library Purple lab PCs have been configured for CS110 Other lab computers will be ready soon – I will let you know when Passwords for homework turnin web site available at next class

Lecture 13 Learning to program Lots of fun Practical Hard, time consuming Unusual mixture: –sophisticated intellectual content –picky details that must be right Exercise in reading, writing, thinking CS110 is for CS majors, future professionals

Lecture 14 Teaching/learning style To learn a language well, live in a land where it’s spoken – anxiety producing, but efficient! Learn to write by to reading and writing and writing about what you learn 60% of a lot is more than 100% of a little Ask questions (to slow me down)

Lecture 15 Computers and programs Computer: a machine that can simulate many different machines word processor traffic light controller internet shopping site bank ATM … Program: the instructions that tell a computer how to act like some particular machine Example: Bank simulation –user interface (how the program behaves) –object model (the program’s architecture) –Java implementation (the program itself)

Lecture 16 Bank simulation - user interface a:\> java Bank [Enter, CR] Welcome to Engulf and Devour Account number (1 or 2), 0 to shut down: 1 Transactions: exit, help, deposit, withdraw, balance transaction: balance 200 transaction: deposit amount: 799 transaction: balance 999 transaction: exit Account number (1 or 2), 0 to shut down: 0 Goodbye from Engulf and Devour a:\>

Lecture 17 Bank simulation - object model program architecture “Engulf and Devour” int 200 int 200 BankAccount balance: BankAccount balance: Terminal String bankName: Bank BankAccount account1: BankAccount account2: Terminal atm: int

Lecture 18 Why Java? Fashionable, modern (for good reasons) Object oriented: when you have designed the architecture a program almost writes itself Portable: the same Java code turns any computer (PC, mac, server) into a Bank Well designed: –consistent user interface –easy to learn –hard to make serious mistakes –prebuilt objects plug into your programs

Lecture 19 Send object a message Bank.java (lines 101ff) while ( moreTransactions ) {... String command = atm.readWord( "transaction: " );... else if ( command.equals( "deposit" ) ) { int amount = atm.readInt( "amount: " ); account.deposit( amount ); }... else if ( command.equals( "balance" ) ) { atm.println( account.getBalance() ); }... } object dot message ( information )

Lecture 110 message from Bank : Bank simulation Objects responding to messages Terminal object (the atm) return info to Bank readWord(″transaction: ″ ) true or false equals( ″ deposit ″ ) String object (the command) return info to Bank command customer typed line 107 line 114

Lecture 111 message from Bank : Bank simulation Objects responding to messages BankAccount object afterbefore return info to Bank: bal: 999 getBalance() bal: 999 bal: 200bal: 999deposit(799) 999 line 123 line 116

Lecture 112 Software development cycle imagine design edit compile run, test imagine the next release... user interface object model Java implementation quality assurance good programs evolve! XEmacsXEmacs

Lecture 113 emacs The programmer’s editor (word processor) Learning emacs is as important as learning Java You will live inside emacs in this course XEmacs installed on all lab PCs, available free for home machines Start using it today – tutorial linked from course home pagetutorial

Lecture 114 Homework 1 Handed out in class, on course web page Part 1 – get started –Hard copy due at the next class –Send –Explore course web page –Understand rules about honesty –Write about what you find – use emacs Part 2 - jump in to Java –Collected electronically Tuesday Feb 3 –Play with Bank simulation –Improve Bank simulation –Write about your coding and testing

Lecture 115 Start now! Turn in questionnaire as you leave class Sections meet in Purple lab (Library upper level) Today: begin hw1 –send ! (any lab) –explore web page (any lab) –begin using XEmacs (Purple lab) I will be in my office (S-3-179) today until 4, tomorrow 12-2:30