Programming Intro Problem Solving: 1)Understand the problem This often involves breaking the problem into manageable pieces 2) Develop a plan May develop.

Slides:



Advertisements
Similar presentations
© 2007 Lawrenceville Press Slide 1 Assignment Statement An assignment statement gives a value to a variable. Assignment can take several forms: x = 5;
Advertisements

© Janice Regan Problem-Solving Process 1. State the Problem (Problem Specification) 2. Analyze the problem: outline solution requirements and design.
General Computer Science for Engineers CISC 106 Lecture 21 Dr. John Cavazos Computer and Information Sciences 04/10/2009.
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
Guidelines for working with Microsoft Visual Studio.Net.
Guidelines for working with Microsoft Visual Studio 6.
Testing a program Remove syntax and link errors: Look at compiler comments where errors occurred and check program around these lines Run time errors:
Chapter 1 Introduction.
Multiplication and Division Equations SWBAT solve multiplication equations using the division property of equality; solve division equations using the.
2-2 Solving Two-Step Equations. Goal: To isolate the variable How do you do this : Use Inverse Operation (Opposite) 1. do all Addition or Subtraction.
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
Python Mini-Course University of Oklahoma Department of Psychology Day 1 – Lesson 2 Fundamentals of Programming Languages 4/5/09 Python Mini-Course: Day.
Introducing Java.
CS0004: Introduction to Programming Variables – Numbers.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
UNIT 3 TEMPLATE AND EXCEPTION HANDLING. Introduction  Program errors are also referred to as program bugs.  A C program may have one or more of four.
Tutorial 11 Using and Writing Visual Basic for Applications Code
Chapter 1.4 Programming languages Homework Due: Monday, August 11, 2014.
Introduction to Programming Professor Sprenkle September 10, 2007.
General Programming Introduction to Computing Science and Programming I.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
Java Chapter 1 Problem solving: 1. Understanding the problem. 2. Breaking the problem into manageable pieces. 3. Designing a solution. 4. Considering alternatives.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Software Engineering Chapter 3 CPSC Pascal Brent M. Dingle Texas A&M University.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
© 2004 Pearson Addison-Wesley. All rights reserved ComS 207: Programming I Instructor: Alexander Stoytchev
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
Variables and Algebraic Expressions 1-3. Vocabulary Variable- a letter represents a number that can vary. Constant- a number that does not change. Algebraic.
Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
One and Two Step Equations Using Opposite Operations.
One step equations Add Subtract Multiply Divide  When we solve an equation, our goal is to isolate our variable by using our inverse operations.  What.
How to Program? -- Part 1 Part 1: Problem Solving –Analyze a problem –Decide what steps need to be taken to solve it. –Take into consideration any special.
ERRORS. Types of errors: Syntax errors Logical errors.
Solving 2-Step Variable Equations What??? I just learned 1-step! Relax. You’ll use what you already know to solve 2-step equations.
BlueJ Venkatesh Ramamoorthy (Venky) Day 3. Objectives To use BlueJ –To compile and execute simple JAVA programs –Output-only programs (Hello World and.
5.01 Understand Different Types of Programming Errors
The single most important skill for a computer programmer is problem solving Problem solving means the ability to formulate problems, think creatively.
Addition Multiplication Subtraction Division. 1.If the signs are the same, add the numbers and keep the same sign = = If the.
Programming. In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Introduction to Algorithmic Processes CMPSC 201C Fall 2000.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Software Engineering Algorithms, Compilers, & Lifecycle.
OPENING: EXPLAIN HOW TO SOLVE A ONE- STEP EQUATION. Two-Step Equations 3.1 LESSON.
Equations, Equations, Equations Solve multi-step linear equations with one variable.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Collision Theory and Logic
Introduction to Computing Science and Programming I
5.01 Understand Different Types of Programming Errors
Lecture 1 Introduction Richard Gesick.
Collision Theory and Logic
Compilation and Debugging
Compilation and Debugging
Software Design and Development
 .
Variables on Both Sides with Equations
Compiler Construction
5.01 Understand Different Types of Programming Errors
1 Step Equation Practice + - x ÷
Unit 1: Introduction Lesson 1: PArts of a java program
Add or Subtract? x =.
Subtract the same value on each side
ICT Gaming Lesson 2.
Number Lines.
Learning Intention I will learn about the different types of programming errors.
Perl Programming Dr Claire Lambert
WJEC GCSE Computer Science
Warm-Up Problems Unit 0.
Presentation transcript:

Programming Intro Problem Solving: 1)Understand the problem This often involves breaking the problem into manageable pieces 2) Develop a plan May develop multiple plans and compare. Usually refine plan before implementation 3) Execute the plan 4) Check your results 5) Modify as necessary Often means starting back at number one with a new understanding of the problem Writing a program to address a need involves problem solving

Programming Intro Try This: Use the following commands and objects to explain how to make a peanut butter and jelly sandwich CommandsqualifiersObjects____ FetchFromrefrigerator Openincupboard SpreadonPeanut Butter ThrowaboveBread SlicebelowJelly BeatwithBreadbox PlaceusingKnife PickbetweenFingers DumptopNose RubagainstTrash

Programming Intro Try This: Two variables x and y. Commands: Store ___ in x Store ___ in y Add 1 to x Add 1 to y Add x to y Subtract 1 from x Subtract 1 from y Subtract x from y Do _____ times: a) b) 5 – 2 c)3 x 2 d)3 x 2 +1 e)3 x Think about division, what other commands would you need? Example: Store 4 in x Do 5 times add 1 to x OR Store 4 in x store 5 in y add x to y

Programming Intro Syntax and semantics: Syntax: The set of rules for creating statements, Semantics: The meaning of a statement. In a programming language the semantics are well- defined. The language is formed so that the compiler does not have to “decide” between possible meanings. Fruit flies like a bananna – Groucho Marx

Programming Intro Errors: Compile time: syntax errors, type errors. Runtime error: occurs when program is run Logical error: Program runs, but not how you want it to.

Programming Intro Object oriented programming. Focuses on Objects. Try This: You want to model an apple. What attributes does a apple have? What does an apple do?

Programming Intro Object: Apple Qualities: color, sweetness, pithiness, size Methods: fall, rot, roll

Programming Intro Try This: You think of an object. List attributes you would program into your object. List things you want to program your object to do: