ALGORITHM BASICS- Part 2

Slides:



Advertisements
Similar presentations
Dry Runs and Trace Tables
Advertisements

Exercise (1).
Revision.
1 Flowchart. 2 Flowchart: It is a diagram consists of symbolic block that represents the algorithm step by step Symbols of flowchart: 1. Terminal (start,
ALGORITHMS & FLOWCHARTING II
CSE1301 Computer Programming Lecture 4: C Primitives I.
Even more problems.. Mean (average) I need a program that calculates the average of student test scores. I need a program that calculates the average.
Count and add list of numbers From user input and from file.
CSCI-100 Introduction to Computing
Program Design. The design process How do you go about writing a program? –It’s like many other things in life Understand the problem to be solved Develop.
CSC 111. Solving Problems with Computers Java Programming: From Problem Analysis to Program Design, Third Edition3 Solving Problems Stages 1.Problem.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
Modular Programming – User Defined Functions. CSCE 1062 Outline  Modular programming – user defined functions  Value returning functions  return statement.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
PROBLEM SOLVING. REDBLUE GREENPINK ORANGEYELLOW Exit.
Science Experiment by Name or Names Question: How does _____ affect _______?
Design Document Sample Given two concentrated circles with different radii, calculate the area which falls inside the big circle but outside the small.
Fall 2016 business intelligence
IT 210 Week 6 CheckPoint Algorithm Verification To purchase this material link CheckPoint-Algorithm-Verification.
Presentation Title Presentation Subtitle
Content Knowledge of Elementary Pre-service Teachers
Graphs and Functions Presumed knowledge-linear functions
CS1010 Programming Methodology
pernyataan kontrol pengulangan - lanjutan -
Student loans budgeting
Functions and Their graphs
Welcome to SPECTRUM BACK TO SCHOOL NIGHT 2016
Presentation Title Presentation Subtitle
Getting the Most from High SChool
Academic Spotlight: SCMS Academic Team
University Of Toronto By: Michael, Zhang Jamie, Shaw Wang, Xin
Presentation Title Presentation Subtitle
Fall Semester Exam Review 2015 Day 1
ALGORITHMS & FLOWCHARTING II
Day 43 Fiction and clauses
Computer Science 101 While Statement.
PRE-ACT TEST INTERPRETATION
Unit 3 INTRO Calculating Density
Language distribution and classification
Instructor: Chen-Hsiung Yang
Parent Forum: Schedule for
Welcome to the Year 2 assessment meeting
Algebra Bridges Eighth grade
Pencil Sharpener Design brief (Example)
Algebra Bridges Eighth grade
PROBLEM SOLVING CSC 111.
ALGORITHM BASICS- Part 3
February 14th and February 21st
Equations With Variables on Both Sides
Week of 8/21/18 Monday:.
Week of 8/21/18 Monday: Mrs. Lucas is out. Read and complete ALL activities on pages 27 – 32 in your class notebook from the Holt Literacy Handbook.
Hormones that affect metabolism
Week of 8/28/17 8/28/17 Bear Time Journal: What did I do? I walked into a drugstore to look for some mints, and then I walked out. What was wrong with.
Do Now: List the 7 continents and the 5 oceans.
Problem Solving Skill Area 305.1
Shakespeare Background Research
Flowchart.
Flowcharts and Pseudo Code
Take out Planner, Journal, Homework
CHAPTER 4: Conditional Structures
A connectionist model in action
Instructor: Chen-Hsiung Yang
College Entrance TESTs SAT, ACT, PSAT, PLAN & More
Day 57 Fiction, The Most Dangerous Game, and Grammar review
This We Believe Watauga County
Day 58 Finishing The Most Dangerous Game with discussion
Introduction to Algorithms - 2
Instructor: Chen-Hsiung Yang
Introduction to Algorithms - 2
The Scientific Method.
Presentation transcript:

ALGORITHM BASICS- Part 2 Instructor: Ms Maritz Course: Computer Studies – Algorithm Design

Re-check Start 1. num10, num20, tot0 2. Enter num1 3. Print: num1 4. Enter num2 5. Print: num2 6. totnum1+num2 7. Print: tot Stop Step Num1 Num2 tot Output Beginning course details and/or books/materials needed for a class/project.

Write an algorithm … Write an algorithm that will enter 3 numbers, print the total and the average. A schedule design for optional periods of time/objectives.

You do this one… Write an algorithm that will input 5 marks and output the total and the average of the marks. Introductory notes.

Answer Start 1. Num10, Num20, Num30, Num40, Num50, tot0, ave0. 2. Enter num1, Enter num2 3. totnum1 + num2 4. Enter num3, Enter num4 5. tottot + num3 + num4 6. Enter num5 7. tottot + num5 8. avetot/5 9. Print: “The Total is:”, tot 10. Print: “The Average is:”,ave Stop Objectives for instruction and expected results and/or skills developed from learning.

Test it - The trace table Step N1 N2 N3 N4 N5 tot Ave Output

Conclusion Always initialize Get your variables first Note your indentation Conclusion to course, lecture, et al.