PROGRAMMING Program Development.

Slides:



Advertisements
Similar presentations
Chapter 6 - VB 2005 by Schneider1 Do Loop Syntax Do While condition statement(s) Loop Condition is tested, If it is True, the loop is run. If it is False,
Advertisements

Sep-05 Slide:1 VBA in Excel Walter Milner. Sep-05 Slide:2 VBA in Excel Introduction VBA = Visual Basic for Applications Enables end-user programming In.
CS 240 Computer Programming 1
CS 4 Intro to Programming using Visual Basic Do Loops Patchrawat Uthaisombut University of Pittsburgh 1 based on lecture notes by D. Schneider.
Introduction to Programming
Exercise (1).
INF1060 spreadsheets. Making formulas Like your calculator, you can use Excel to perform many mathematical functions as well as organize data In this.
Chapter 2- Visual Basic Schneider
Introduction to Computing Dr. Nadeem A Khan. Lecture 4.
Algorithm & Flowchart.
Everyday Mathematics Partial-Quotients Division Partial-Quotients Division Partial-quotients is a simpler way to do long division. Many children like.
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.
ChE 117 Motivation Lots of Tools Can’t always use “Canned Programs”
Machine level architecture Computer Architecture Basic units of a Simple Computer.
G042 - Lecture 16 Testing Your Spreadsheet Mr C Johnston ICT Teacher
Lecture 8: Choosing the Correct Loop. do … while Repetition Statement Similar to the while statement Condition for repetition only tested after the body.
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
Programming Test #1 Solutions. Multiple Choice 1. B) the grammar of the coding language 2. C) String 3. A) Single 4. C) 2Burgers4Me 5. B) Design Time.
_ + 7 = 11. Which number is missing? Answer = 4.
Statements That Repeat. For...Next Loop Structure For counter = start To end Step increment statements Next counter Where Counter is tested to see if.
Function Problems. Write Functions Asks users whether the user wants to continue of not, then returns the answer. Takes two integers and returns 1 if.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
Dr. Mohamed Ben Othman 1 Project phase 3 1)Rewrite the code of the project in the slides, run it: 1)change it so the input should be from file with extension.exp.
EXERCISES for ALGORITHMS WRITING
7-6 Function Operations Objective 2.01
Count and add list of numbers From user input and from file.
Properties are special qualities of something. Addition and multiplication have special qualities that help you solve problems mentally = MENTAL MATH!!
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 Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
ORDER OF OPERATIONS.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
CS 141 Computer Programming 1 Branching Statements.
WHAT IS THIS? Clue…it’s a drink SIMPLE SEQUENCE CONTROL STRUCTURE Introduction A computer is an extremely powerful, fast machine. In less than a second,
مقدمة في البرمجة Lecture 7. Write VB.net project using the for loop to calculate : 1- the sum of numbers from 1 to (A) numbers. 2- the sum of Odd numbers.
By: Tameicka James Addition Subtraction Division Multiplication
More Visual Basic!. Creating a Standalone Program A standalone program will allow you to make a program file that can be run like other Windows programs,
Data and variables in Visual Basic. Annoucement Lecture on Thursday 7:30PM C106 Visual Basic download: 
1.4 Solving Equations.
Integers Rules of Operation.
Operations with Integers
Integer Rules Memorize the Rules.
Pre-Algebra Review Quiz tomorrow!.
1-1 Logic and Syntax A computer program is a solution to a problem.
Algorithm & Programming
Be A programmer in Steps
Knowing your math operation terms
Lecture 2 Introduction to Programming
Arithmetic Operators Topics Arithmetic Operators Operator Precedence
Introduction to VB programming
1 Step Equation Practice + - x ÷
Algebra Algebra.
Multiplication and integers
Arithmetic Operators Topics Arithmetic Operators Operator Precedence
Chapter 2- Visual Basic Schneider
Chapter 2- Visual Basic Schneider
Everyday Mathematics Partial-Quotients Division
Suppose I want to add all the even integers from 1 to 100 (inclusive)
LMC Little Man Computer What do you know about LMC?
Microsoft Visual Basic 2005 BASICS
Lesson 3: Complex Formulas
Everyday Mathematics Partial-Quotients Division
Assignment #3 Programming Language, Spring 2003
Basic Lessons 5 & 6 Mr. Kalmes.
Solving Equations.
ORDER OF OPERATIONS.
WJEC GCSE Computer Science
One Step Equations with Addition and Subtraction
4d – Program Design Lingma Acheson CSCI N331 VB .NET Programming
Chapter 2: Adding Integers
Presentation transcript:

PROGRAMMING Program Development

Learning Outcomes Apply program development phases to solve problems Develop a program

Situation Your younger brother has a problem with a basic mathematic operations like addition, subtraction, multiplication, and division. Your parents ask you to develop one simple system using Visual Basic to help your brother. Your system should have function button to calculate the additional, subtraction, multiplication, and division for at least two integer numbers

Programming Development Phase Problem Analysis Program Design Coding Testing and Debugging Documentation

1 1. Problem Analysis What the problem? What the input, process, and output? What the formula on how to calculate the mathematic operations?

2 2. Program Design Write the pseudo code Write flow chart Design user interface

Pseudo code PROGRAM Mathematic_Operations READ the first number READ the second number READ commandbutton Add CALCULATE the sum of number 1 and number 2 PRINT the answer for Addition END PROGRAM

Flow Chart START READ number 1 & 2 CALCULATE PRINT the answer STOP/END

User Interface

3. Coding 3 SCRIPTING

Coding ‘formula for additional (internal documentation) Private Sub cmdAdd_Click() Dim Number1, Number2 As Integer Number1 = txtNumber1.Text Number2 = txtNumber2.Text txtSum = Number1 + Number2 End Sub

4. Testing and Debugging 4 RUN & COMPILING

5. Documentation 5 Internal Documentation External Documentation

Exercises Modify the additional formula to use for subtractions, multiplication and division.