6 Steps of the Programming Process

Slides:



Advertisements
Similar presentations
Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
Advertisements

CALCULATOR MANIPULATION. Due to the differences in calculators you will have to be able to use your own effectively.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Programming Types of Testing.
© Janice Regan Problem-Solving Process 1. State the Problem (Problem Specification) 2. Analyze the problem: outline solution requirements and design.
17 March, 2000 CS1001 Lecture 2 Programming and problem solving Software engineering practices.
This set of slides is provided by the author of the textbook1 Introductory Topics l Computer Programming l Programming Life-Cycle Phases l Creating an.
Program Flow Charting How to tackle the beginning stage a program design.
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Ways to solve problems Top down approach – Break problem up into smaller problems Bottom up approach – Solve smaller problem and then add features – Examples:
Chapter 1 Program Design
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
Moving To Code 3 More on the Problem-Solving Process §The final step in the problem-solving process is to evaluate and modify (if necessary) the program.
1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
PRE-PROGRAMMING PHASE
Copyright © 2001 by Wiley. All rights reserved. Chapter 1: Introduction to Programming and Visual Basic Computer Operations What is Programming? OOED Programming.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages Updated by: Dr\Ali-Alnajjar.
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
Learning Objectives Data and Information Six Basic Operations Computer Operations Programs and Programming What is Programming? Types of Languages Levels.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
General Programming Introduction to Computing Science and Programming I.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Programming Lifecycle
More Algorithm Design CSIS 1595: Fundamentals of Programming and Problem Solving 1.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Practice and Evaluation. Practice Develop a java class called: SumCalculator.java which computes a sum of all integer from 1 to 100 and displays the result.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
1 Program Planning and Design Important stages before actual program is written.
Chapter One An Introduction to Programming and Visual Basic.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Introduction to Testing CSIS 1595: Fundamentals of Programming and Problem Solving 1.
The Art of Programming. The process of breaking problems down into smaller, manageable parts By breaking the problem down, each part becomes more specific.
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.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
The Hashemite University Computer Engineering Department
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Compilers and Interpreters
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
PROGRAMMING. Computer Programs  A series of instructions to the computer  pre-written/packaged/off-the-shelf, or  custom made  There are 6 steps to.
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Introduction to Computing Science and Programming I
Topic: Programming Languages and their Evolution + Intro to Scratch
CSCI-235 Micro-Computer Applications
The Software Development Cycle
Programming Problem steps must be able to be fully & unambiguously described Problem types; Can be clearly described Cannot be clearly described (e.g.
Understand the Programming Process
Problem Solving Techniques
High Level Programming Languages
Chapter One: An Introduction to Programming and Visual Basic
Understand the Programming Process
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
ICT Programming Lesson 1:
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
1.3.7 High- and low-level languages and their translators
The Software Development Cycle
Presentation transcript:

6 Steps of the Programming Process Define problem. Develop algorithm. Write JAVA code. Enter and compile. Execute and debug (run, fix errors). Document and maintain.

Step 1: Define the problem Break the problem down into 3 parts: INPUT – What data do you need to find the answer? (And what data types and identifier names will you need?) PROCESS – What are the steps needed to arrive at the answer? OUTPUT – What is the answer you are looking for?

Step 2: Develop the algorithm Give more step-by-step details of how you are going to solve the problem. This step can be written in “psuedo-code” – (part English, part Java). This part of the planning does not get typed into the computer!

Step 3: Write JAVA Code Translate the steps of your algorithm into Java programming code. Ex. Algorithm step “Multiply price by 0.08 to find sales tax amount.”  would translate into Java code: salesTax = price * 0.08;

Step 4: Enter and compile This is when you finally go to the computer! Type in your Java program and compile to make sure there are no syntax errors and that the computer understands what you have entered.

Step 5: Execute and debug (run, fix errors) Once you have entered and compiled your program, you are ready to see if it works. When you run the program, you will see if it works as you want it to. If it does not, you make adjustments until it does!

Step 6: Document and maintain Once the program is working correctly, you want to make sure you have documented / added comments to make the program easy for someone to understand and follow. If additional information is to be added, make sure you keep your program up-to-date with the assignment. This is the time to take a little pride in your work and make sure the program “looks nice!” Use formatting to make the work easy to read and understand!