CSC 160 Computer Programming for Non-Majors Introduction Prof. Adam M. Wittenstein

Slides:



Advertisements
Similar presentations
Introducing Extensive Reading
Advertisements

The Writing Process Communication Arts.
The Writing Process.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Event driven software.
Writing the report.
Introduction to CS170. CS170 has multiple sections Each section has its own class websites URLs for different sections: Section 000:
CSC 160 Computer Programming for Non-Majors Lecture #9: Booleans Prof. Adam M. Wittenstein
CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
James Tam Introduction To CPSC 231 James Tam Administrative (James Tam) Contact Information -Office: ICT 707 -
CSC 160 Computer Programming for Non-Majors Lecture #1: What is Programming? Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Draft Chapter: The UFO Example Prof. Adam M. Wittenstein
SOSC Science Technology and Society Dr. Vincent Duffy - IEEM Week 1 - Introduction - September 2, ieem.ust.hk/dfaculty/duffy/111.
CS /29/2004 (Recitation Objectives) and Computer Science and Objects and Algorithms.
Math 105: Problem Solving in Mathematics. Course Description This course introduces students to the true nature mathematics, what mathematicians really.
CSC 160 Computer Programming for Non-Majors Introduction Prof. Adam M. Wittenstein
CSC 160 Computer Programming for Non-Majors Chapter 4: Conditional Expressions and Functions Prof. Adam M. Wittenstein
James Tam Introduction To CPSC 203 James Tam Administrative (James Tam) Contact Information -Office: ICT 707 -
James Tam Introduction To CPSC 203 James Tam Administrative (James Tam) Contact Information -Office: ICT 707 -
CSC 160 Computer Programming for Non-Majors Lecture #2: What are Functions? Prof. Adam M. Wittenstein
Test Preparation Strategies
Educator’s Guide Using Instructables With Your Students.
CSCI 200 Introduction To Programming with Visual Basic Bob Bradley.
The Writing Process My Favorite Things.
Introduction CSE 1310 – Introduction to Computers and Programming
7-Sep-15 Physics 1 (Garcia) SJSU Conceptual Physics (Physics 1) Prof. Alejandro Garcia Spring 2007.
TAKS Test-Taking Tips!. What is Passing? Based on the 2007 panel recommendations, passing scores are: Passing Commended 9 th Reading67%86% 9 th Math60%87%
Achieve3000’s KidBiz Third Grade Council Rock School District.
BIT 115: Introduction To Programming1 Sit in front of a computer Log in –Username: 230class –password: –domain: student Bring up the course web.
COMP 111 Programming Languages 1 First Day. Course COMP111 Dr. Abdul-Hameed Assawadi Office: Room AS15 – No. 2 Tel: Ext. ??
CSC1401: Introductory Programming Steve Cooper
COMP Introduction to Programming Yi Hong May 13, 2015.
O VERVIEW OF THE W RITING P ROCESS Language Network – Chapter 12.
Day 5- Test Taking Skills PPT Developed by Debra A. Wilson.
Test Taking Skills. Study in a comfortable place where you won’t be distracted. Schedule review time. Don’t leave it to the last minute. Write a study.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
CS161 Topic #21 CS161 Introduction to Computer Science Topic #2.
What Makes an Essay an Essay. Essay is defined as a short piece of composition written from a writer’s point of view that is most commonly linked to an.
Welcome to IIT and cs115!.
Year 9 English exam What to expect and what to do….
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Keys to success on the Gateway: A checklist  Demonstrate that you understand the writing task  Address and develop all parts of the writing task  Organize.
Objectives This section will show you how to: write effective paragraphs and essays, describe the relationships between writing and reading provide some.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Math 105: Problem Solving in Mathematics
PRACTICAL ENGLISH CONTENT AREA READING. Matthew R. Anderson Education 2008 Teacher Licensure, University of Dayton, Dayton, Ohio USA 1996 MFA, Miami University,
English Composition Jonathan Watts. Welcome back to class! I hope you had a wonderful weekend! Today we will talk about Essay Development –Pg
Advanced Legal Writing Seminar: Wednesdays, 10:00 p.m. EST Office Hours: Mondays from 3 – 5 p.m. EST, and by appointment AIM sign-in: cssouthall
McGraw-Hill © 2007 The McGraw-Hill Companies, Inc. All rights reserved. Objectives This section will show you how to: write effective paragraphs and essays,
CS 345 – Software Engineering Nancy Harris ISAT/CS 217
A Puzzle for You. Puzzle Someone is working for you for 7 days You have a gold bar, which is segmented into 7 pieces, but they are all CONNECTED You have.
Preparation for the PSAT. Expectations at the High School Maturity Responsibility Accountability Get Involved Study Habits.
Communication Arts The Writing Process. Communication Arts Five Stages of the Writing Process Prewriting Drafting Revising Editing Publishing.
Welcome to Astronomy 113 “ It would seem that you have no useful skill or talent whatsoever, he said.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
1 CS 381 Introduction to Discrete Structures Lecture #1 Syllabus Week 1.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Event driven software.
James Tam Introduction To CPSC 233 James Tam Java Object-Orientation Graphical-user interfaces.
Welcome to English 101. To Do List for Today: Go over syllabus Discuss turnitin accounts and course website Prepare for success in Eng 101 Discuss the.
Class will start at the top of the hour! Please turn the volume up on your computer speakers to access the audio feature of this seminar. WELCOME TO CE101.
Idiom of the Day IN THE LOOP To keep someone informed and up-to-date about what’s happening – usually in the workplace.
B.A. (Mahayana Studies) Introduction to Computer Science November March Preliminaries Some background information for this course.
Test Taking Skills Make sure you prove what you know!
Course Overview Stephen M. Thebaut, Ph.D. University of Florida Software Engineering.
B200- TMA Requirements 1. Page Layout A cover page must contain the following: the name of university, name and title of the course, TMA number and title,
Introduction to CSCI 1311 Dr. Mark C. Lewis
The Five Stages of Writing
The Five Stages of Writing
Study Skills for School Success! Session 3
Introduction To CPSC 233 James Tam Event driven software
Introduction To CPSC 233 James Tam Event driven software
Presentation transcript:

CSC 160 Computer Programming for Non-Majors Introduction Prof. Adam M. Wittenstein

What's this course about? ● Fundamentals of computer programming ● Going from a word problem to a working program ● Designing programs to be modified and reused ● How computer scientists think

What's this course not about? ● A particular programming language – (e.g. Scheme, Java, C++, perl,...) ● A particular programming environment – (e.g. DrScheme, Visual Studio,...) ● Designing and writing Web pages ● Arithmetic

However, we have to use... ● A programming language – (we'll use Scheme) ● A programming environment – (we'll use DrScheme) ● The Web – (for textbook, assignments, announcements,...) ● Arithmetic (as an example we all know)

Who should take this course? ● Non-CS majors for Math/CS distribution credit ● Math and CIS majors for programming credit ● Undecided majors to “test the waters” of programming ● CS majors as a “warm-up” to CSC 171

Who should not take this course? ● CS majors for major credit ● End-users and Web page authors ● Students needing to fulfill the Second Competency requirement ● Students looking for a “cake” course – This course does require an average of 9 hours a week: 3 in class, and 6 in reading and homework

This course as a Liberal Arts Requirement ● This course trains you to think logically by focusing on Design Recipes: beginning from a problem statement and ending with a well- organized solution, a skill that is useful throughout college and life, regardless of your choice of profession. ● Many professions require some form of computer programming. Some examples include: accounting, photography, music, and of course, computer science.

Getting Started: A Course Overview Computers do many of the same things people do. The differences are that computers are: ● faster and more accurate ● they do not get bored To program a computer: Figure out how you would solve a problem. Present that explanation to the computer.

Course Overview (continued) Unfortunately, computers are literal-minded and have no intuition. So your explanation has to be more precise than if you were explaining something to a human being. Therefore, this course is about: Figuring out precisely how you would solve a problem. Presenting that explanation to the computer.

Imagine this assignment... ● 20-page paper ● Due at end of semester ● On Napoleon's invasion of Russia

What kinds of knowledge are needed? 1. How to write a 20-page paper 2. How to finish a long-term project on time 3. Napoleon & Russia

Imagine this assignment... ● 20-page paper ● Due at end of semester ● On Napoleon's invasion of Russia ● In Swedish ● With a quill pen

What kinds of knowledge are needed? 1. How to write a 20-page paper 2. How to finish a long-term project on time 3. Napoleon & Russia 4. Swedish language (spelling, vocabulary, grammar, idioms…) 5. How to use a quill pen

In a programming course How to structure a program (understand the problem and design a solution) 2. How to plan your time (going through the steps of the Design Recipes) 3. Content-area knowledge (math, graphics, economics, physics, spelling, etc.) 4. Scheme (or C++ or Java or whatever) language 5. How to use the software & hardware

Our Focus Although we need to do all five of these things, our goal is learning how to do the first two. However, all problems require: ● Knowledge (in some content area) ● Language (like English) ● Thinking Tools (like your brain)

Content-area Knowledge ● This is not a course on math or science or English, but we will solve problems from these disciplines. ● No need to worry, I will either give you the required information, or you will be allowed to look it up.

Writing and Thinking ● Outside this class, we write in a language called English. Inside this class, we will write in a language called Scheme. ● Outside this class, we use our brain to think about what is being said in English. Inside this class, we use Dr. Scheme to think about what is being said in Scheme.

Scheme is to English ● Scheme - The programming language that we will use. ● Dr. Scheme - the program that we will use to run programs written in Scheme. As Dr. Scheme is to the brain

Choosing a Language to Speak ● We can speak in any language. Why do we choose English?

Choosing a Language to Speak ● We can speak in any language. Why do we choose English? ● Because we already know enough of it to understand the basics of how it works.

Choosing a Language to Program In ● We can program in any programming language. Why do we choose Scheme?

Choosing a Language to Program In ● We can program in any programming language. Why do we choose Scheme? ● Because we can quickly learn enough of it to understand the basics of how it works.

Design Recipe (in Life) To solve any problem, in any area (not just programming), requires three steps:  Figure out what you need to do.  Do it.  Check that you did it right.

Design Recipe (in Programming) To make this recipe useful, we need to adapt it more specifically to computer programming:  Figure out precisely what you need to do.  Tell the computer how to do it.  Check that the computer does it right.

CSC 160 Computer Programming for Non-Majors Chapter 1: Students, Teachers, Computers Prof. Adam M. Wittenstein

A few preliminary definitions ● Program - A set of instructions that tell the computer how to perform a task ● Programming - Writing a program ● Programming language - a language of instruction for a computer program ● Data - Information that is used by a program ● Operations - The individual instructions performed by the computer ● Primitive operations - The basic operations performed on data of a specific data type. – e.g., +, -, *, / are primitive operations performed on integers.

Some typical problems in English ● The temperature is 35 0 C; convert this temperature into Fahrenheit. ● Are there 7 days in a week? ● How do we cover someone’s face in a picture?

What the computer would think? ● The computer would have no idea what we are asking it.

What the computer would think? ● The computer would have no idea what we are asking it. ● We must communicate with the computer in a language that it understands.

What the computer would think? ● The computer would have no idea what we are asking it. ● We must communicate with the computer in a language that it understands. ● We will communicate in the Scheme language.

Types of Data There are many types of data. They are split into two general categories: 1) atomic (simple) data – numbers, booleans, symbols, images, etc. 2) compound data – structures and lists composed of other pieces of data. For example, a series (list) of numbers. The next several chapters deal only with atomic data. Sometime after the midterm, we will extend our programming to compound data.

Course web page: I recommend you visit the web page frequently as I will post important information including: – the lecture slides (so you can find out what you missed, if you are absent) – reading and programming assignments – assignment corrections (and perhaps, extensions) – class cancellations (in the event of weather, or some other emergency)

Reading assignments for next time... ● Read the Syllabus.Syllabus ● Read the Joys (and Woes) of the Craft of Programming.Joys (and Woes) of the Craft of Programming ● Read the preface of the textbook (pages xvii to xxiv).preface ● Read Chapter 1 of the textbook (pages 1 to 5).Chapter 1

Homework #1 (due SUNDAY) ● Write a short essay (at least 1-2 pages) that summarizes and gives your opinion on each of the above reading assignments, and turn them in by to ● Be sure to include your first and last name! ● The essay will be graded primarily on whether I'm convinced you've read the material and thought about it carefully, although really bad spelling, grammar, or style may cost you points too.

Homework #2 (due NEXT SUNDAY) Go to HW2 on the course website: ● Download DrScheme ● Start reading the draft chapter. Before the next class, read the introduction and Flying a UFO sections. For now, it is up to you whether to try or skip the exercises. ● Make a list of anything you do not fully understand in the reading and bring it up at the beginning of the next class.

Next time… An Overview: The UFO Example ● We will learn how to do the first step – flying a UFO. ● More specifically, we will learn how to write a our first program – one that changes the UFO’s location on the computer screen.