CSC 107 – Programming For Science. Science Means Solving Problems  Physics -- How does an atom work?

Slides:



Advertisements
Similar presentations
Advanced Programming 15 Feb The “OI” Programming Process Reading the problem statement Thinking Coding + Compiling Testing + Debugging Finalizing.
Advertisements

CS107: Introduction to Computer Science Lecture 2 Jan 29th.
Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
ITEC113 Algorithms and Programming Techniques
Lecture 14 Go over midterm results Algorithms Efficiency More on prime numbers.
Chapter 2: Input, Processing, and Output
CS101- Lecture 11 CS101 Fall 2004 Course Introduction Professor Douglas Moody –Monday – 12:00-1:40 – – –Web Site: websupport1.citytech.cuny.edu.
A-1 © 2000 UW CSE University of Washington Computer Programming I Lecture 1: Overview and Welcome Dr. Martin Dickey University of Washington.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Please open your laptops, log in to the MyMathLab course web site, and open Daily Quiz 16. IMPORTANT NOTE: If you have time left out of your five minutes.
Introduction to Computers and Programming
CSC 107 – Programming For Science. Science Means Solving Problems  Physics – How does an atom work?
CSC 107 – Programming For Science. Science Means Solving Problems  Physics – How does an atom work?
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
Introduction to Engineering Computing GEEN 1300 Lecture 7 15 June 2010 Review for midterm.
Prof. Matthew Hertz SH 1029F /
CSC 212 – Data Structures Prof. Matthew Hertz WTC 207D /
Prof. Matthew Hertz WTC 207D /
CSCE 1040 Computer Science 2 First Day. Course Dr. Ryan Garlick Office: Research Park F201 B –Inside the Computer Science department.
CSC Intro. to Computing Lecture 13: PALGO. Announcements Midterm is in one week  Time to start reviewing  We will do more review in class Tuesday.
CSC Programming for Science Lecture 16: Debugging.
Welcome Back to School Algebra 1/Algebra 2 with Ms. Ford Algebra 1/Algebra 2 with Ms. Ford.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Question of the Day  A landscaper plants 5 rows of 4 trees each, but only uses 10 trees. How is this possible?
CPSC 171 Introduction to Computer Science More Algorithm Discovery and Design.
Generic Types  Recent release of Java added generics  Include type parameters in class definition  Like methods, parameters can change each time 
CSC 107 – Programming For Science. Today’s Goal  Become familiar with simple arrays  Declaring an array variable  Assigning data to array entries 
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
CSE8A: Introduction to Programming in Java Fall 2012 Prof. Christine Alvarado cse8afall.weebly.com.
CSC Programming for Science Lecture 3: Simulations & Program Lifecycle.
CSCE 1030 Computer Science 1 First Day. Course Dr. Ryan Garlick Office: Research Park F201 B –Inside the Computer Science department.
EGR 115 Introduction to Computing for Engineers Branching & Program Design – Part 1 Monday 29 Sept 2014 EGR 115 Introduction to Computing for Engineers.
CSC 107 – Programming For Science. Science Means Solving Problems  Physics – How does an atom work?
Problem of the Day How can you make 16 right angles using 4 matchsticks WITHOUT breaking any of them?
The Programming Process ISAT 252: Programming and Problem Solving This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.Creative.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
The Hashemite University Computer Engineering Department
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Question of the Day  Move one matchstick to produce a square.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Problem, Problem Solving, Algorithm & Flow Charts –Part 1 Presented By Manesh T Course:101 CS 101CS Manesh T1.
PHY 107 – Programming For Science. Announcements  No week #5 weekly assignment  Take time to study for Friday’s midterm instead  No lab or office hours.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
Starter – Its the small things in life What’s wrong with this code Height = 10 Width = 10 A = Height * Width Print A Remember to check: Spelling Spacing.
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
PHY 107 – Programming For Science. Science Means Solving Problems  Physics – How does an atom work?
CSC 107 – Programming For Science. Announcements  Lectures may not cover all material from book  Material that is most difficult or challenging is focus.
Today… Modularity, or Writing Functions. Winter 2016CISC101 - Prof. McLeod1.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Mechanical Definitions & Equations Terms we need to know Equations we need to know.
Networking CS 3470, Section 1 Sarah Diesburg
Networking CS 3470, Section 1 Sarah Diesburg
MATH/COMP 340: Numerical Analysis I
1-1 Logic and Syntax A computer program is a solution to a problem.
Chapter 2: Input, Processing, and Output
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Memory aid INSTRUCTIONS
Algorithm and Ambiguity
Understand the Programming Process
CS 240 – Lecture 11 Pseudocode.
Lecture 1: Introduction
Programming Right from the Start with Visual Basic .NET 1/e
I can simplify or evaluate algebraic expressions and use exponents.
Open on the student drive
ME 142 Engineering Computation I
Understand the Programming Process
Algorithm and Ambiguity
CMPT 102 Introduction to Scientific Computer Programming
Presentation transcript:

CSC 107 – Programming For Science

Science Means Solving Problems  Physics -- How does an atom work?

Science Means Solving Problems  Physics -- How does an atom work?  Engineering -- Will the bridge hold?

Science Means Solving Problems  Physics -- How does an atom work?  Engineering -- Will the bridge hold?  Biology -- What is crawling up my leg?

Science Means Solving Problems

Solving Problems With Code  Simple trick to this issue: good programs work  Everything else is secondary and much less important  Must have focus on creating working solution

Solving Problems With Code good programs work  Simple trick to this issue: good programs work  Everything else is secondary and much less important  Must have focus on creating working solution

Solving Problems With Code

Problem Solving Method 1. Clearly define the problem Will splitting an atom cause unstoppable explosion? Must translate series of digits into number, how? What bet in Vegas gives me best odds of winning?  What are tonight's winning lottery numbers?  Am I pretty enough to become Miss America?

Problem Solving Method 2. Describe input and output information Input: U 235 Output: Input: Degree of angle Output: Angle's cosine Input: Car design Output: Fuel efficiency Input: Models of monster Output: Hair movement

Problem Solving Method 3. Develop algorithm or flowchart of solution before Check algorithms work before starting to code Better be careful, double-check algorithms work Triple-check algorithms work just to be certain Do this by following example of Manhattan Project

Problem Solving Method 3. Develop algorithm or flowchart of solution before Check algorithms work before starting to code Better be careful, double-check algorithms work Triple-check algorithms work just to be certain Do this by following example of Manhattan Project

Problem Solving Method 4. Write code solving first part of problem Test just this code to be certain free from bugs Frequently testing gives bugs fewer places to hide Bug MUST be in code – already tested algorithm! Debugging simple – look for mismatch w/flowchart 5. Once first part done, write second part of code Focus on reducing bugs to make process easier Grow by continue building slowly upon tested code

Brian Kernighan, Creator of C

For Monday  You can use on this midterm:  Your textbook & notes IF  Printout of slides IF has notes on that day's slides  At the same time, you may NOT use:  Computer, calculator, cell phone, or similar  Copies of daily activities and/or solutions  Friends, Romans, countrymen or their ears  To be certain rules are followed, when test ends  Hand in all printed material you had with you

How to Prepare for Monday DODON'T  Make cheat sheets for the test  Review how parts of C++ work  Add post-its to important pages  Memorize  Drink case of 40s before test  Use post-its as clothing

For Next Lecture  Program Assignment #1 due tonight  Remember could also use virtual extensions  Midterm #1 will be in class on Monday