CSSE221: Software Dev. Honors Day 4 Pass in Runtime Assignment now to assistants Pass in Runtime Assignment now to assistants Announcements Announcements.

Slides:



Advertisements
Similar presentations
How to study for A&P Adapted from “get ready for A&P” By Lori K. Garrett.
Advertisements

CS102--Object Oriented Programming
CS112: Course Overview George Mason University. Today’s topics Go over the syllabus Go over resources – Marmoset – Blackboard – Piazza – Textbook Highlight.
CSI 3120, Exception handling, page 1 Exception and Event Handling Credits Robert W. Sebesta, Concepts of Programming Languages, 8 th ed., 2007 Dr. Nathalie.
Some things to think about. Assignment 1 is at the end, but read the whole thing. Please!
Mock test review Revision of Activity Diagrams for Loops,
Slides prepared by Rose Williams, Binghamton University Chapter 9 Exception Handling.
CSSE221: Software Dev. Honors Day 10 Announcements Announcements Fifteen due Monday 11:59 pm. Monday will be a workday. Fifteen due Monday 11:59 pm. Monday.
Chapter 2: Algorithm Discovery and Design
CSSE221: Software Dev. Honors Day 25 Announcements: Announcements: Now returning programming mini-exam feedback, HW7, and some capsule quizzes. Now returning.
CSSE221: Software Dev. Honors Day 2 Announcements Announcements Homework due now Homework due now Any problems committing JavaEyes to Subversion? Any problems.
CSSE221: Software Dev. Honors Day 5 Announcements Announcements Homework 2 written portion due now Homework 2 written portion due now You survived the.
CSSE221: Software Dev. Honors Day 13 Announcements Announcements Contractions throughout the night… Contractions throughout the night… Late day assignments.
My Policies and Some Advice for Doing Well in this Course.
CSSE221: Software Dev. Honors Day 7 Announcements Announcements HW2 and inheritance quiz returned now. HW2 and inheritance quiz returned now. Solutions.
CSSE221: Software Dev. Honors Day 3 Announcements Announcements Should get in habit of checking in BigRational code as you go Should get in habit of checking.
CSSE221: Software Dev. Honors Day 11 Pass in HW4 now Pass in HW4 now Fifteen due 11:59pm Fifteen due 11:59pm Announcements Announcements Questions on Fifteen?
CSSE221: Software Dev. Honors Day 9 Announcements Announcements HW3 passed back, follow link from HW3 to its solution. HW3 passed back, follow link from.
CSSE221: Software Dev. Honors Day 17 Announcements Announcements Fifteen and CarsTrucksTrains coming back Fifteen and CarsTrucksTrains coming back Note:
Chapter 2: Algorithm Discovery and Design
1 Exception and Event Handling (Based on:Concepts of Programming Languages, 8 th edition, by Robert W. Sebesta, 2007)
Next class session: Test 1 on all sections covered from Chapters 1 and 2 Remember: If you haven’t yet passed the Gateway Quiz, you need to review your.
Introduction to C++ Penn State University
CS211: Course Overview George Mason University. Today’s topics Go over the syllabus Go over resources – Marmoset – Piazza – Textbook Highlight important.
Medical Law and Bioethics
Object Oriented Programming
BASE CLASSES AND INHERITANCE CHAPTER 4. Engineer Class.
BIT 115: Introduction To Programming1 Sit in front of a computer Log in –Username: 230class –password: –domain: student Bring up the course web.
Science Fair Project Survival Guide For Parents!.
CSE 501N Fall ‘09 00: Introduction 27 August 2009 Nick Leidenfrost.
COMP Introduction to Programming Yi Hong May 13, 2015.
MGS 351 Introduction to Management Information Systems
Invitation to Computer Science, Java Version, Second Edition.
ICS 102 Computer Programming University of Hail College of Computer Science & Engineering Computer Science and Software Engineering Department.
Designing with Procedures 1. Designing a Program with Procedures If the code for your program is going to be less than one page, normally don’t bother;
COMP Exception Handling Yi Hong June 10, 2015.
CAP 211 Visual Programming Introduction. 2 Lecturers: Lecturers: Reham Al-Abdul Jabbar, Office hours & office location:
BIT 115: Introduction To Programming Instructor: Mike Panitz
1 Principles of Computer Science I Note Set 1 CSE 1341.
ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
Week 3 Outline Post-Mortem By: Jamaral Johnson. 2 After Actions Review In this presentation I will do my best to highlight what went wrong. This is just.
Mrs. Sony’s. GGet to class before the bell rings - EEnter the classroom quietly, go directly to your assigned seat and begin the daily Warm-Up. CCome.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
JAVA COURSE LESSON2 BY OMPUTER ENGINEEING ASSOCIATION.
1 Daily Announcements CS 202, Spring 2007 Aaron Bloomfield.
Please CLOSE YOUR LAPTOPS, and turn off and put away your cell phones, and get out your note- taking materials.
ACIS 3504 Accounting Systems and Controls. 2 Dr. Linda Wallace  Office: Pamplin 3092  
Exceptions Chapter 16 This chapter explains: What as exception is Why they are useful Java exception facilities.
1 CS 101 Today’s class will begin about 5 minutes late We will discuss the lab scheduling problems once class starts.
Mrs. Sony’s. GGet to class before the bell rings - EEnter the classroom quietly, go directly to your assigned seat and begin the daily Warm-Up. CCome.
Winter 2016CMPE212 - Prof. McLeod1 CMPE212 Object Oriented Programming for Engineers Course Web Site: Lecture.
Karlstad University Computer Science Design Contracts and Error Management External and internal errors and their contracts.
BIT 143: Programming – Data Structures It is assumed that you will also be present for the slideshow for the first day of class. Between that slideshow.
CS12230 Introduction to Programming Lecture 6-2 –Errors and Exceptions 1.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Event driven software.
Written by: Dr. JJ Shepherd
U.S. History Group Project.  In the remaining weeks of school, you, the students, will be put in the position of teacher. You will be broken up into.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
1 Required , Google Group 1.Send the professor (This is also listed in the –In the Subject,
CSS 290: Video Games and Computer Programming Instructor: Mike Panitz Tuesdays and Thursdays, 1:15pm-3:20pm UW
WELCOME TO MICRO ECONOMICS AB 224 Discussion of Syllabus and Expectations in the Class.
ECE122 L23: Exceptions December 6, 2007 ECE 122 Engineering Problem Solving with Java Lecture 24 Exceptions.
Welcome to MT140 Introduction to Management Unit 1 Seminar – Introduction to Management.
Week 14: Festivals of the World
Creating and Modifying Text part 2
Andy Wang Object Oriented Programming in C++ COP 3330
SE-1021 Software Development 2
BIT 115: Introduction To Programming
CMSC 202 Exceptions 2nd Lecture.
Presentation transcript:

CSSE221: Software Dev. Honors Day 4 Pass in Runtime Assignment now to assistants Pass in Runtime Assignment now to assistants Announcements Announcements Lab hours, including new afternoon hours, posted in Angel. Lab hours, including new afternoon hours, posted in Angel. I removed a question from HW2. I removed a question from HW2. HW1 returned now – questions? HW1 returned now – questions?

Answers to runtime assignment 1. A single for loop from 1 to n gives code that is O(n). 2. Sequential for loops, each running from 1 to n, are O(n) 3. Nested for loops, each running from 1 to n, are O(n 2 ) 4. Nested for loops in which f() is called once from within the inner loop and once outside the inner loop, but still inside the outer loop, are still O(n 2 ). 5. Adding an if statement to the body of f() doesn’t affect the asymptotic efficiency, so calling f() alone is O(1). When processing an array of size n if you just have to look at each entry individually: O(n) 2....if you have to look at each pair of entries individually: O(n 2 ) If you got any of these wrong, ask me now or a lab assistant before the end of the week (so you can learn and reinforce the right understanding before you do HW2) If you got any of these wrong, ask me now or a lab assistant before the end of the week (so you can learn and reinforce the right understanding before you do HW2)

Research study

Capsules – Group 1 (Section 1) Inheritance (Boutell) Polymorphism Bennington, Devore, Smith 1D and 2DArrays and ArrayLists Johnson, Sullivan GUI using Swing Fishman, Levey, Priest EventListeners Belton, Lundgren, Speyer Functors and Comparators Bennett, Skiles, Wentz Anonymous classes Crockett, McGinnis, Morrison

Capsules – Group 1 (Section 2) Inheritance Hein, Miller, Stokes Polymorphism Bennett, Clute, Reilly 1D and 2DArrays and ArrayLists Behling, Nibert GUI using Swing Eckert, Johnson, Richardson EventListeners Dovalovsky, Gates, Rubin Functors and Comparators Hulett, Kruth, Most Anonymous classes (Boutell)

How to do one? Group 1: research and summarization 1. Read the assigned reading 2. Extract the most important concepts. How? What would you want to have in your notebook to study for a test? What would you want to have in your notebook to study for a test? Detail guideline: unless you have a big chunk of code or an image, it should fit on a single screen in a normal size font. Detail guideline: unless you have a big chunk of code or an image, it should fit on a single screen in a normal size font. The summaries don’t have to be verbose, just dense with info. The summaries don’t have to be verbose, just dense with info. Contain both a big picture summary and supprting details Contain both a big picture summary and supprting details 3. Write a single page that summarizes these concepts (I have an html version in the Summaries folder as an example, but you can use Word). 4. Write a short (4-6 question, 5 minute) quiz that your classmates will take in class. Include an answer key Include an answer key Note: proofread your stuff. Everyone else will see it. Note: proofread your stuff. Everyone else will see it.

Good quizzes… 1. Aren’t too long or too short (~5 minutes total) 2. Contain a mix of questions of easy and medium difficulties (appropriate to the topic) to test different levels of understanding. 3. Are consistent with the summary (I don’t want two people working independently on the quiz and the summary who never talk to each other) 4. Contain questions that are clearly worded and unambiguous 5. Include an answer key with correct answers 6. Have been proofread and are free of errors

Capsule Deliverables the quiz, key, and summary to me by 7:30 am on the day you are presenting. the quiz, key, and summary to me by 7:30 am on the day you are presenting. No.docx files, please No.docx files, please Bring to class printed versions: Bring to class printed versions: 1 copy of summary 1 copy of summary 2 copies of key 2 copies of key Enough copies of quiz for the class (20) Enough copies of quiz for the class (20) Stapled if more than 1 page. Stapled if more than 1 page.

This week: BigRational assignment Monday: Monday: API (Application Programming Interface) API (Application Programming Interface) Interfaces: writing to a contract Interfaces: writing to a contract Tuesday: Tuesday: Unit Testing: searching for logic errors Unit Testing: searching for logic errors Introduction to efficiency analysis: “big-Oh” Introduction to efficiency analysis: “big-Oh” Thursday: Thursday: Exceptions: throwing and catching Exceptions: throwing and catching

Any questions? Any questions? Course mechanics? Syllabus? Angel? Course mechanics? Syllabus? Angel? BigRational? BigRational? Big-oh? Big-oh? Unit Testing? Unit Testing?

Exceptions Used to handle unusual situations. Used to handle unusual situations. Vocabulary: throw, try, catch, finally, throws Vocabulary: throw, try, catch, finally, throws Football analogy Football analogy Hot-potato analogy Hot-potato analogy A piece of code will try to perform an operation. If something unusual happens, then the code will throw an exception. It is propagated through the methods that called it, via throws, until it is caught. Finally, some code will execute whether an exception was thrown or not. A piece of code will try to perform an operation. If something unusual happens, then the code will throw an exception. It is propagated through the methods that called it, via throws, until it is caught. Finally, some code will execute whether an exception was thrown or not. Go to Angel: Projects/Exceptions. Go to Angel: Projects/Exceptions. When you finish, you may work on BigRational. When you finish, you may work on BigRational.