CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

30
CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University

Transcript of CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Page 1: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

CSE 1341-HonorsPrinciples of CS I

Professor Mark FontenotSouthern Methodist University

Page 2: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Overview

Introductions

Administrative Material – Syllabus & Outline

What we’re going to cover in this class

Step 1…

Page 3: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Course Staff

Professor Mark FontenotSIC 351

[email protected]

214-768-2854

John Howard – [email protected]

Page 4: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Office Hours

OfficialTuesday: 9:30 – 10:30

Friday: 9:00 – 10:00

ElectronicSend me email any time

Please Identify yourself and what class you are in

General Open Door Policy… If my office door is open, feel free to come in and see if I’m available

Page 5: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Who are you?Class Introductions…

Page 6: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Getting Assistance

Please (please please) ask questions in class

Office Hours

CSE Help DeskLocated in the SIC

Staffed throughout the day by CSE department TAs.

Schedule forthcoming… Stay tuned!

Page 7: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Course Evaluation

Exams25%

Programming Projects

30%

Interdisci-plinary Project30%

Homework/Quizzes

10%

Participation5%

Page 8: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Exams

3 Exams throughout the semester

Will be taken in-class or take-home

Think of them as check-points to make sure we’re all on the same page.

No comprehensive final!

Make-ups not allowed unless you talk to the prof first.

Page 9: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Homework/Quizzes

Commonly assigned

Practice something we’ve learnedor

Questions over class preparation material (such as reading, etc)

Some may be done right on Blackboard

Page 10: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Programming Projects

Opportunity to use something we’ve learned and put it into practice

Implement and test complete programs

Will be completed in and out of class (depending on how long it takes you)

Complete solutions will be zipped and submitted to Blackboard

Page 11: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Interdisciplinary ProjectME, CSE and EE first-year class

Based on Lego NXT platform

Engineering in Action!

Project Kick-off – Mid-September!

Page 12: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Attendance

You’ve got to come to class!Your grade will reflect your attendance

Participating is required and essentialDon’t surf the net, do Sudoku puzzles, or txt at inappropriate times

Act like an adult…

Page 13: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Academic Ethics

Pillar of higher education: the work you produce should be your own.

SMU Honor Code Applies to all classes

If an assignment is to be done individually (i.e. exams), it is expected that they will be completed in that manner

If an assignment is collaborative, then you may work with your team members as much as you want (i.e. robotics project)

Page 14: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Inappropriate Collaboration

Penalties1st Occurrence – Zero on Assignment

2nd OccurrenceF in course

Honor Council

We reserve the right to modify these penalties on a case-by-case basis.

Page 15: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Can you talk to your classmates?

Yes, yes, and yes!

Discuss concepts, ideas, and theories.

Study for exams

Review reading material together

Work on in-class assignments as appropriate

You know what’s right and what’s wrong…

Page 16: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

The Class…

Page 17: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

What should you know?

How to use a computerNavigate the file system

Files

Folders

How to zip and unzip files

Basic skills with Productivity Suite (i.e. Microsoft Office)

How to look things up on the web (i.e. Google)

Not expected to know anything about programming or Java. If you do, super! If not, don’t worry!

Page 18: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

What’s this course about?

Fundamentally, this course is all about solving problems using a computer

Talk to/command computer using a programming language

Java in our case

You’re going to develop a set of skills which you will be able to use to solve problems using a computer

…go go gadget for loop…

Page 19: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

What do you need for this class?

Patience… Sometimes things don’t go as expected.

The textbook

Binder for handouts

A computer.Laptop would be optimal but not required.

Mac, PC, Linux

SoftwareJava 1.5 SDK or higher

Netbeans Development environment

Page 20: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

What do you need for this class?

SoftwareJava 1.5 SDK or higher

Netbeans Development environment

Text editorNotepad (PC)

TextEdit (Mac)

gEdit (Linux)

Hundreds of others to choose from…

Page 21: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Links to Bookmark

Blackboard – http://courses.smu.eduAll handouts, assignments, etc. posted here.

You’ll upload completed assignments here

Some quizzes/homework may be completed directly in Blackboard

How To Think Like A Computer Scientist – http://www.greenteapress.com/thinkapjava/thinkapjava.pdf

Title is a joke mostly

Succinct explanation of concepts

Will use in conjunction with textbook you bought

Page 22: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Let’s Start…How a computer scientist solves a problem…

Page 23: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

What is Computer Science?

Study of computationWhat is possible with a computer

How to solve problems “efficiently” using a computer

What does efficiently mean?

Tons of sub-disciplinesDatabase Systems

Security Engineering

Networking

Others?

Page 24: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

What’s really the problem?

Figuring out the problem – vitally importantWhy?

Page 25: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Design a Solution - Algorithms

An algorithm isSequence of steps

Solves a problem

Finishes after a finite number of steps (in a finite amount of time)

Page 26: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Algorithm Primitives

Make a decision

Do something multiple times

If the lid is on the jarUnscrew and remove the lid

If turning rightengage right turn signal

Else if turning leftengage left turn signal

For each piece of breadscoop peanut butterspread on piece of bread

Page 27: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Implement your solutionThis is where Java (or other programming

languages) enter the scene

Translate your solution/algo to source code

Syntax vs. SemanticsSyntax – rules of the programming language your using

Semantics – what to write - how to use the rules to your advantage

public class Solution { public static void main (String [] args) { System.out.println(“Solving the problem”); //Other stuff }}

Page 28: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Testing the Implementation

Verify

Validate

Can’t ever test all possible scenarios (ask Microsoft!)

Very complex area – you can get a PhD in Software Testing

Page 29: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

Maintenance

Add new features

Enhance old features

Fix bugs discovered by users

Piece of software will spend the majority of its live in this stage…

Page 30: CSE 1341-Honors Principles of CS I Professor Mark Fontenot Southern Methodist University.

To Do List:

Read Ch1 of Head First Java and Ch1 of TLACS

Make sure you complete the survey on Blackboard

Install the Java SDK and Netbeans on your personal computer

Read your email