120 likes | 214 Views
Programming. Diane Pozefsky & Belinda Kerchmar. Where have we been?. Websites HTML Code CSS Code PHP includes Spreadsheets Booleans If Statements Logical Breakdown of Problems Strings Error Handling. Where can you go?.
E N D
Programming Diane Pozefsky & Belinda Kerchmar
Where have we been? • Websites • HTML Code • CSS Code • PHP includes • Spreadsheets • Booleans • If Statements • Logical Breakdown of Problems • Strings • Error Handling
Where can you go? • With the skills you’ve learned, our claim is that you essentially know the building blocks for learning how to program. • You can very easily make the jump to a programming language.
What is Programming? • Need to understand WHAT you want to build • Take a large problem and break it into smaller pieces • Write in a programming language • Make it available to people to use
Problem Break Down • Where have we seen the need to break problems into smaller parts? • Grades • Normalize • Drop lowest exam • Absence • Translate to letter grade • Book List • Author last name • Format title • Retrieve country
For Bigger Project • If you were to write a word processor: • Type characters • receive input from keyboard • Erase characters • receive input from keyboard • Spell check • Formatting • Table of contents • …
Error Handling • Allows a program to give a meaningful message to the user. • Seen in Excel as #value vs. “Please check value”. • Can cause a program to exit cleanly rather than crashing.
Python • Python was created to be: • simple • free of excess syntax • beautiful • You can download & play with python here: • http://www.python.org/download/
What can we do in Python? • Just about everything! • Strings • Concatenation • Substring • Trim • Booleans • If Statements
Python • Can be used two ways • Interactive • Produce a program for others • Python has it’s own syntax, just like CSS & HTML
Other Courses • Comp 110 -- Introduction to Programming [Spring and Fall] • Comp 116 -- Introduction to Scientific Programming [Spring and Fall] • Comp 380 OR Comp 381-- Computers & Society [Spring and Fall] • Comp 416 -- Web Programming [Fall only]