SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder

Slides:



Advertisements
Similar presentations
STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Advertisements

SE2811 Week 8 Monday (last drop day) The Command Pattern Lambda Expressions SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr.
SE-1021 Software Engineering II Week 5, Class SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
SE-1021 Software Engineering II Week 9, Class 3 Get ready for PollEverywhere! BlocksMania and File I/O Reading/Writing text in ASCII, Unicode, and UTF-8.
CS2910 Week 1, Class 3 Today Lab 1 – Additional Assignment Working Ahead Primitives in Java SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder.
SE1011 Week 2, Class 3 Today Compiling and running Another example using Scanner Compile-time and Run-time errors Review for exam SE-1011 Slide design:
SE-1021 Software Engineering II Week 8, Class 1 Return Exam Producing UML diagrams automatically in EA Poll Everywhere Files Tomorrow Week 6 HW due (if.
SE-1021 Software Engineering II Week 5, Class 2 Why my computer crashed Layouts Multiple action listeners Single actionPerformed method – distinguishing.
SE-1021 Software Engineering II Week 5, Class 1 Learning Resources From inner classes to anonymous Inner Classes Additional GUI components Inheritance.
CS2910 Week 1, Class 2 Today Announce Prof. Michael Vieau’s S-341 6p Thurs Wk 2 Assignment for tomorrow Data Encoding, Part 1 Parsing Data Muddiest Point.
CS2910 Week 1, Class 1 Today Introductions Class/Lab Layout Safety Review - Note about Lab Safety Review Announce Prof. Michael Vieau’s S-341 6p Thurs.
CS-2852 Data Structures Week 5, Class 1 – Testing and Stacks Return Exams & Labs  Package-level access  UML connectors for instance variables Announcement:
CS-2852 Data Structures Week 8, Class 1 Amortized ArrayList.add() CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
CS2910 Week 2, Class 1 Today Data Encoding, Part 1 Parsing Data Python Muddiest Point Lab 2 – Bring text In Class, Thursday: Quiz Week 6, Monday: Midterm.
CS-2852 Data Structures Week 10, Class 3 Final Announcement re. Final Choosing a Data Structure (Concluded) Poll Everywhere Survey & Results Conclusion.
SE-1021 Software Engineering II Week 1, Day 2 Attendance Survey results: Use powerpoint Safety Review Preparation for Lab 1 More on Java fundamentals…
SE-1021 Software Engineering II Week 1, Day 2 Attendance Survey results: Use powerpoint Safety Review Preparation for Lab 1 More on Java fundamentals…
SE1011 Week 8, Class 3 Today Designing Code SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 1.
SE1011 Week 6, Class 1 Today Return Half Exam 2 (cont.) Object Oriented Programming (cont.) Muddiest Point Next Half Exam: Week 7, Monday SE-1011 Slide.
SE1011 Week 6, Class 2 Today Return Half Exam 2 (cont.) Object Oriented Programming (cont.) UML class diagrams Muddiest Point Next Half Exam: Week 7, Monday.
CS2910 Week 2, Class 1 Today Return Lab 1 Muddiest Points Quiz Parsing Data in Python SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
CS2852 Week 5, Class 2 Today Queue Applications Circular Queue Implementation Testing SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
SE1011 Week 6, Class 2 Today Return Half Exam 2 (cont.) Object Oriented Programming (cont.) UML class diagrams Muddiest Point Next Half Exam: Week 7, Monday.
SE1011 Week 3, Class 2 Today Sit down by someone you don't know Learn their name Find out who came farther to get to MSOE at the start of the quarter Designing.
SE1011 Week 5, Class 1 Today More Java API tools Packages Object Oriented Programming Muddiest Point Tomorrow: Lab 5 – In-lab demo requirements now up.
CS2852 Week 7, Class 1 Today Binary Search Tree Implementing add Implementing find Return Quiz 4 (second attempt) Both sections are graded SE-2811 Slide.
CE1901 Week 6, Class 3 Week 6 Mini-Exam Review Muddiest Point Timing Diagrams (See this slide and Outcomes on course webpage – link now available)Outcomes.
Week 7, Day 3 Half-Exam 2 A New Pattern SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
SE1011 Week 8, Class 2 Today Return Half Exam 3 (I have it with me) Object Oriented Programming Details Null references (as acting objects and arguments)
CS2910 Week 4, Class 1 Today Encoding in Python – Review Quiz – Encoding in Python Introduction to HTTP SE-2811 Slide design: Dr. Mark L. Hornick Content:
CS-2852 Data Structures Week 10, Class 2 Announcement re. Final Choosing a Data Structure CS-2852 Dr. Josiah Yoder Slide style: Dr. Hornick 1.
CS2852 Week 3, Class 2 Today Big-O runtime analysis Linked Lists Muddiest Point Lab Quiz Includes writing a method from ArrayList class (See next slide)
SE1011 Week 8, Class 1 Today Return Half Exam 3 (I have it with me) Object Oriented Programming Details References as arguments Overloaded methods Garbage.
Week 7, Class 1: The Command Pattern (cont.) Get Ready for Poll Everywhere Labs 2 & 3 returned Lab 7 due this evening at 11pm Quiz tomorrow at start of.
CS2910 Week 4, Class 2 Today Sit by someone you have not yet worked with this quarter. Learn his/her name if unknown. Turn on your laptop and start Wireshark.
CS2910 Week 3, Class 1 Today What is a protocol? Using TCP in Python Defining methods in Python Long procedure design SE-2811 Slide design: Dr. Mark L.
CS2910 Week 8, Class 2 Today Return Quiz Look at Schedule TCP implementation! Week 8, Monday Quiz on SMTP May include some questions requiring you to interpret.
Week 10, Day 3 Review for the quarter SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
CS2910 Week 7, Class 1 Today Capturing SMTP with Thunderbird Tomorrow Extra office hour at 11 am (right after lab) Friday Office hour cancelled SE-2811.
CS2910 Week 5, Class 1 Today Sit by someone you have not yet worked with Turn on your laptop and start Wireshark. DNS Next week Monday: Midterm Exam SE-2811.
SE1011 Week 7, Class 3 Today Return Half Exam 3 (I have it with me) Object Oriented Programming Details References as arguments Overloaded methods Garbage.
SE1011 Week 9, Class 3 Today Arrays with Loops! Homework SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 1.
Week 6, Class 3: Composite Swing composites File composites Computer composites SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors:
CS2910 Week 6, Lab Today Dictionaries in Python SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1.
SE3910 Week 8, Class 2 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 7, Class 2 (Wednesday) Half-Exam 2 Done.
SE3910 Week 8, Class 3 Week 4 Lab: Please return your graded Lab 4 to me so I can enter it in my gradebook Week 9 Lab: Individual demos of working sub-modules.
CS-2852 Data Structures Week 5, Class 3 – Testing and Recursion Queue Implementing finite queues Binary Search Recursion Tomorrow – Quiz, Lab demos, Lab.
Slide style: Dr. Hornick
Introduction to C++ Programming Language
Slide design: Dr. Mark L. Hornick
SE-1021 Software Engineering II
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
Slide design: Dr. Mark L. Hornick
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Slide design: Dr. Mark L. Hornick
CS2911 Week 2, Class 3 Today Return Lab 2 and Quiz 1
SE-1021 Software Engineering II
CS2911 Week 3, Class 3 (And wk4-c1)
Week 8, Class 3: Model-View-Controller
SE-1021 Software Engineering II
CS-2852 Data Structures Week 1, Class 1 Data Structures Syllabus
Slide design: Dr. Mark L. Hornick
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1021 Software Engineering II
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder
Slide design: Dr. Mark L. Hornick
SE-1021 Software Engineering II
Presentation transcript:

SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 6/14/2018 SE1011 Week 2, Class 1 Today Lab 1 – Additional Assignment Working Ahead Primitives in Java SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 6/14/2018 Operator Precedence Grouping: (<expression>) Unary Operators: +x -x (<type>) x Multiplication-level Binary Operators: x * y x / y x % y Addition-level Binary Operators x + y x - y Dean & Dean, 2nd Ed, Fig. 3.7, p. 84 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting Exercise 6/14/2018 Operator Precedence + Casting Exercise 2 * - 1 * + 4 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting Exercise 6/14/2018 Operator Precedence + Casting Exercise Evaluate the expressions: (2 + 3.0) / 4 + 1 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting Exercise 6/14/2018 Operator Precedence + Casting Exercise ((int) 5.0 + 1.0) / 4 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting Exercise 6/14/2018 Operator Precedence + Casting Exercise 5 / 4 5 % 4 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting Exercise 6/14/2018 Operator Precedence + Casting Exercise 0 / 4 0 % 4 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting Exercise 6/14/2018 Operator Precedence + Casting Exercise (int)(4.5 + 4.5) / 4.0 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting SE1011 6/14/2018 Operator Precedence + Casting 1.0 + 11 / 5 + 2.0f SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting SE1011 6/14/2018 Operator Precedence + Casting 9L / 2 1.0f + 1.0 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Operator Precedence + Casting SE1011 6/14/2018 Operator Precedence + Casting 10 % 4 - 5 % 2 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 6/14/2018 Strings String name = "Josiah"; char initial = name.charAt(0); int length = name.length(); String start = name.substring(0, 2); String middle = name.substring(2,4); String end = name.substring(4,6); SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Comparing primitive types SE1011 6/14/2018 Comparing primitive types x == 1 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

Comparing references … and objects end == "ah" SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder

SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Compound Assignment x = x + 1 x = x * 2 x = x / 2 x = x % 2 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder

SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder https://www.polleverywhere.com/free_text_polls/5ecaTmFuFeJ65hY 6/14/2018 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder

SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 6/14/2018 Acknowledgement This course is based on the text Introduction to Programming with Java by Dean & Dean, 2nd Edition SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder Dr. Josiah Yoder