Top Banner
CSCI 136: Data Structures and Advanced Programming Instructor: Dan Barowy Lecture 2 Java Crash Course Announcements PRE-LAB 0: due today by 4pm PRE-LAB 1&2: due in lab on Wed Code review meetings: signups soon Outline 1. Quiz 2. Anonymous feedback 3. Study tip 4. Java crash course, part 2 Quiz
5

CSCI 136: Data Structures and PRE-LAB 0: due today ...€¦ · Lecture 2 Java Crash Course Announcements PRE-LAB 0: due today by 4pm PRE-LAB 1&2: due in lab on Wed Code review meetings:

Jun 10, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CSCI 136: Data Structures and PRE-LAB 0: due today ...€¦ · Lecture 2 Java Crash Course Announcements PRE-LAB 0: due today by 4pm PRE-LAB 1&2: due in lab on Wed Code review meetings:

CSCI 136: Data Structures

and Advanced Programming

Instructor: Dan Barowy

Lecture 2

Java Crash Course

Announcements

PRE-LAB 0: due today by 4pm

PRE-LAB 1&2: due in lab on Wed

Code review meetings: signups soon

Outline

1. Quiz

2. Anonymous feedback

3. Study tip

4. Java crash course, part 2

Quiz

Page 2: CSCI 136: Data Structures and PRE-LAB 0: due today ...€¦ · Lecture 2 Java Crash Course Announcements PRE-LAB 0: due today by 4pm PRE-LAB 1&2: due in lab on Wed Code review meetings:

Study tip #1: Use a planner. Activity: Do Right After Class

Give yourself 10-12 extra hours for this course.

Ditto your other courses.

Don’t schedule all your time in one big chunk.

Be sure to leave time for meals, sleep, FUN…

Fill in class meeting times.

Programming environment in CS136

Page 3: CSCI 136: Data Structures and PRE-LAB 0: due today ...€¦ · Lecture 2 Java Crash Course Announcements PRE-LAB 0: due today by 4pm PRE-LAB 1&2: due in lab on Wed Code review meetings:

Toyota Production System

Any worker can stop the line!

Toyota Production System

Stop me if you don’t “get” something!

A note on my teaching philosophy: bugs are a wonderful teacher.

I will make mistakes (sometimes intentionally); and we will fix them together.

Page 4: CSCI 136: Data Structures and PRE-LAB 0: due today ...€¦ · Lecture 2 Java Crash Course Announcements PRE-LAB 0: due today by 4pm PRE-LAB 1&2: due in lab on Wed Code review meetings:

1. Static input (constants)

2. Dynamic input

1. args

2. scanner

3. Type conversion

4. Handling unexpected inputs

Input

Let’s code!

Page 5: CSCI 136: Data Structures and PRE-LAB 0: due today ...€¦ · Lecture 2 Java Crash Course Announcements PRE-LAB 0: due today by 4pm PRE-LAB 1&2: due in lab on Wed Code review meetings:

• Game starts with random piles.

•Each player removes one or more objects from ONE pile.

•The last player to remove the last object wins.

NimRecap & Next Week

• Input/output •args

•Loops •Type conversion •Program Design

Today we learned:

Next class:•Scanner •More Program Design •Classes