PROBLEM SOLVING. Instructor: Leo Lewis Course: Information Technology
|
|
- Delilah Chase
- 6 years ago
- Views:
Transcription
1 PROBLEM SOLVING Instructor: Leo Lewis Course: Information Technology
2 What you will learn What is problem solving The steps involved in problem solving Decomposing problems Algorithms and their representations To test an algorithm for correctness Top down design approach Book(s) Information Technology for CXC by Oxford Programming in Pascal by Kallicharan
3 What is Problem Solving A series of defined activities/steps that should lead to solving a problem, these activities include: A problem Definition a statement (a paragraph or series of paragraphs) outlining the nature of the problem Proposition and evaluation of solution the creation of one or more algorithms (pseudocode or flowcharts); truth tables Determination of most efficient solution comparison of algorithms to test for numbers of steps, no of variables dry, runs, etc Develop and represent algorithm using a programming language ( PASCAL ) Test and validate solution debugging
4 Problem Definition a statement (a paragraph or series of paragraphs) outlining the nature of the problem E.g. of some problem definitions: 1. Write an algorithm to find the average of three numbers 2. Find the aggregate of the marks earned by a student in his Easter Terminal Examination 3. To enter a them park children under 12 pay $300.00, children over 12 and adults pay $ and babies 2 years and under pay nothing. Input the number of persons entering the park. Read whether a person entering the park is an adult, child or baby and calculate the total revenue earned by the park for that day.
5 Proposition and evaluation of the solution the creation of one or more algorithms (pseudocode or flowcharts); truth tables E.g. of simple narrative 1. Get students mark for the following subjects Math, English, IT 2. Add the marks of each subject and divide the sum by three (3) 3. State the result
6 Now you try! Try to write the steps involved in solving the following problems: 1. Find the aggregate of the marks earned by a student in his Easter Terminal Examination 2. To enter a them park children under 12 pay $300.00, children over 12 and adults pay $ and babies 2 years and under pay nothing. Input the number of persons entering the park. Read whether a person entering the park is an adult, child or baby and calculate the total revenue earned by the park for that day. 3. VAT of 15% is added to the prices of an item. Input the name of an item and the price. Print the name of the item, the amount of VAT and the new price after VAT is added. 4. Input the name of a horse, the position it came in a race and the prize money received. The trainer is paid 5% of the prize money. Print the name of the horse, the position it came, the prize money and the amount paid to the trainer.
7 IPOS chart Every problem can be divided into four distinct components: Input the data to be received and is necessary to arrive at the correct output. Output the information or data to be produced Processing steps that change input into output or some intermediary value Storage variables and constants
8 So how do we break down a problem? Here is one problem: Write an algorithm to calculate the average of three numbers. So: What is/are the input(s)? What is/are the output(s)? What are the processing steps (how do we make output from input)? How do we store the values?
9 So how do we break down a problem? DID YOU SELL. SORRY. I MEAN DID YOU GET IT? INPUTS the three numbers OUTPUT the average PROCESSING add all three numbers together and divide the sum by three STORAGE VARIABLES (names given to each number) Three numbers number1, number2, number3 The Sum of the three numbers SUM The average - AVERAGE
10 Now you try! DIVIDE THE FOLLOWING PROBLEMS INTO INPUT, OUTPUT PROCESSING 1. Find the aggregate of the marks earned by a student in his Easter Terminal Examination 2. To enter a them park children under 12 pay $300.00, children over 12 and adults pay $ and babies 2 years and under pay nothing. Input the number of persons entering the park. Read whether a person entering the park is an adult, child or baby and calculate the total revenue earned by the park for that day. 3. VAT of 15% is added to the prices of an item. Input the name of an item and the price. Print the name of the item, the amount of VAT and the new price after VAT is added. 4. Input the name of a horse, the position it came in a race and the prize money received. The trainer is paid 5% of the prize money. Print the name of the horse, the position it came, the prize money and the amount paid to the trainer.
11 What are VARIABLES A variable is a symbolic name ( consisting of a list of characters, starting a letter) associated with a value and whose associated value may be changed. For example: the name sum can be used to store the sum of three numbers the name num1 can be used to store a number entered by a user; num1= 100 The name firstname can be used to store the name of persoon; firstname = Sugar The variable average can be used to store the average based on a calculation; average = ( )/3 The variable fullname can store the name of a person; fullname = Andre + Mullings
12 What are CONSTANTS A name for a value that, unlike a variable, cannot be re-associated with a different value For example: const float pi2 = ;
13 Advantages of variables and constants Remembering names might be easier than remembering actual values (Variables) you might need to change the values of variables at different points (Constant) keeping a value constant, nothing will change it.
14 Constants and Variables can: Store any value Be accessed and manipulated differently based on the value that is stored So what are the data types of values that can be stored in a variable or value: Integers what are integers? Floating point / Real numbers - Huh? Characters letters, punctuation marks, special characters, etc Literals / Strings list of characters whether letters, number or special characters stored as one name
15 Arrays another data type. sorta An array is a data type in which any kind of data type and any number of these data types can be stored as one name OR is a systematic arrangement of objects, usually in rows and columns (wikipedia)
Variable A variable is a value that can change during the execution of a program.
Declare and use variables and constants Variable A variable is a value that can change during the execution of a program. Constant A constant is a value that is set when the program initializes and does
More informationA theme park charges $12 entry to visitors. Find the money taken if 1296 people visit the park.
Write an Equation An equation is a term used to describe a collection of numbers and variables related through mathematical operators. An algebraic equation will contain letters that relate to real quantities
More informationPre-Release Material Tasks
1 P a g e P r e - R e l e a s e M a t e r i a l ( M a y / Jun 17 ) Pre-Release Material Tasks The organizer of a senior citizens club arranges outings for the members. For each of these outings a coach
More informationReview. Input, Processing and Output. Review. Review. Designing a Program. Typical Software Development cycle. Bonita Sharif
Input, Processing and Output Bonita Sharif 1 Review A program is a set of instructions a computer follows to perform a task The CPU is responsible for running and executing programs A set of instructions
More informationIntro to Programming & C Why Program? 1.2 Computer Systems: Hardware and Software. Why Learn to Program?
Intro to Programming & C++ Unit 1 Sections 1.1-4 and 2.1-10, 2.12-13, 2.15-17 CS 1428 Spring 2019 Jill Seaman 1.1 Why Program? Computer programmable machine designed to follow instructions Program a set
More informationCOMPUTING Syllabus Version 1.0
ECDL MODULE COMPUTING Syllabus Version 1.0 Purpose This document details the syllabus for the Computing module. The syllabus describes, through learning outcomes, the knowledge and skills that a candidate
More informationChapter 2: Input, Processing, and Output
Chapter 2: Input, Processing, and Output Starting Out with Programming Logic & Design Second Edition by Tony Gaddis Copyright 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter Topics
More informationRepetition Algorithms
Repetition Algorithms Repetition Allows a program to execute a set of instructions over and over. The term loop is a synonym for a repetition statement. A Repetition Example Suppose that you have been
More informationThe American University in Cairo Department of Computer Science & Engineering CSCI &09 Dr. KHALIL Exam-I Fall 2011
The American University in Cairo Department of Computer Science & Engineering CSCI 106-07&09 Dr. KHALIL Exam-I Fall 2011 Last Name :... ID:... First Name:... Form I Section No.: EXAMINATION INSTRUCTIONS
More informationSKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)
SKILL AREA 304: Review Programming Language Concept Computer Programming (YPG) 304.1 Demonstrate an Understanding of Basic of Programming Language 304.1.1 Explain the purpose of computer program 304.1.2
More informationProgramming revision. Revision tip: Focus on the things you find difficult first.
Programming revision Revision tip: Focus on the things you find difficult first. Task Time (minutes) a 1. Complete self assessment sheet. 2 2. Read through the chapter on programming. 15 3. Work through
More informationPseudocode syntax, descriptions and examples
Pseudocode syntax, descriptions and examples Overview: This table provides a reference for commonly used pseudocode for introductory computer program design courses. You should use this as your reference
More informationThank you so much for your interest in The Measured Mom printables!
Thank you so much for your interest in The Measured Mom printables! Letters of All Sizes A-Z (lower case) is for personal or classroom use. By using it, you agree that you will not copy, reproduce, or
More informationPython - Week 1. Mohammad Shokoohi-Yekta
Python - Week 1 Mohammad Shokoohi-Yekta 1 An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Program Development Cycle 1.3 Programming Tools 1.4 Starting Python 2 Communicating
More informationChapter 2. Designing a Program. Input, Processing, and Output Fall 2016, CSUS. Chapter 2.1
Chapter 2 Input, Processing, and Output Fall 2016, CSUS Designing a Program Chapter 2.1 1 Algorithms They are the logic on how to do something how to compute the value of Pi how to delete a file how to
More informationUse the Associative Property of Multiplication to find the product.
3-1 1. The Associative Property of Multiplication states factors can be grouped differently and the product remains the same. Changing the grouping of the factors changes the factors that are multiplied
More informationProgram Elements -- Introduction
Program Elements -- Introduction We can now examine the core elements of programming Chapter 3 focuses on: data types variable declaration and use operators and expressions decisions and loops input and
More informationName Section: M/W or T/TH. True or False (14 Points)
Name Section: M/W or T/TH True or False (14 Points) 1. (14 pts) Circle T for true and F for false: T F a) In C++, a function definition should not be nested within another function definition. T F b) Static
More informationTry typing the following in the Python shell and press return after each calculation. Write the answer the program displays next to the sums below.
Name: Date: Instructions: PYTHON - INTRODUCTORY TASKS Open Idle (the program we will be using to write our Python codes). We can use the following code in Python to work out numeracy calculations. Try
More informationSTUDENT OUTLINE. Lesson 8: Structured Programming, Control Structures, if-else Statements, Pseudocode
STUDENT OUTLINE Lesson 8: Structured Programming, Control Structures, if- Statements, Pseudocode INTRODUCTION: This lesson is the first of four covering the standard control structures of a high-level
More informationGOZO COLLEGE. Boys Secondary Victoria - Gozo, Malta Ninu Cremona. Half Yearly Examination
GOZO COLLEGE Boys Secondary Victoria - Gozo, Malta Ninu Cremona Half Yearly Examination 2010 2011 Subject: Form: Time: COMPUTER STUDIES 4 Junior Lyceum 1 hr 30 min NAME: CLASS: INDEX NO: Instructions to
More informationWelcome to Python 3. Some history
Python 3 Welcome to Python 3 Some history Python was created in the late 1980s by Guido van Rossum In December 1989 is when it was implemented Python 3 was released in December of 2008 It is not backward
More informationIntroduction to Functions. Functions. Library Functions. Intrinsic Functions. Library Functions. Chapter 6 Fall 2015, CSUS. Chapter 6.
s Introduction to s Chapter 6 Fall 2015, CSUS Chapter 6.1 Introduction to s Library s A function is a module that returns a value back to the part of the program that called it Found in practically all
More informationTelling a Story Visually. Copyright 2012, Oracle. All rights reserved.
What Will I Learn? Objectives In this lesson, you will learn how to: Compare and define an animation and a scenario Demonstrate how to use the four problem solving steps to storyboard your animation Use
More informationADDITONAL MATHEMATICS
ADDITONAL MATHEMATICS 2002 2011 CLASSIFIED MATRICES Compiled & Edited By Dr. Eltayeb Abdul Rhman www.drtayeb.tk First Edition 2011 8 8 (a) The matrices A, B and C are given by A = 2 1 1 3 1 5 6 7 2 5,
More informationFundamentals of Programming Session 8
Fundamentals of Programming Session 8 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2013 These slides have been created using Deitel s slides Sharif University of Technology Outlines
More information1 Programming. 1.1 Analyzing a problem
1 Programming The chapter concerns the following; ² How to analyze a problem and develop an algorithm ² Control structures and their use ² ² Finding alternate solutions to a problem ² Programming in Pascal
More informationOutline. Program development cycle. Algorithms development and representation. Examples.
Outline Program development cycle. Algorithms development and representation. Examples. 1 Program Development Cycle Program development cycle steps: Problem definition. Problem analysis (understanding).
More informationDATA AND ABSTRACTION. Today you will learn : How to work with variables How to break a program down Good program design
DATA AND ABSTRACTION Today you will learn : How to work with variables How to break a program down Good program design VARIABLES Variables are a named memory location Before you use a variable you must
More informationEXAM Computer Science 1 Part 1
Maastricht University Faculty of Humanities and Science Department of Knowledge Engineering EXAM Computer Science 1 Part 1 Block 1.1: Computer Science 1 Code: KEN1120 Examiner: Kurt Driessens Date: Januari
More informationIntroduction to Computer Science Unit 2. Notes
Introduction to Computer Science Unit 2. Notes Name: Objectives: By the completion of this packet, students should be able to describe the difference between.java and.class files and the JVM. create and
More informationChapter 1 Lab Algorithms, Errors, and Testing
Chapter 1 Lab Algorithms, Errors, and Testing Lab Objectives Be able to write an algorithm Be able to compile a Java program Be able to execute a Java program using the Sun JDK or a Java IDE Be able to
More informationExplore Combining Like Terms
5.2 Focus on After this lesson, you will be able to use algebra tiles and diagrams to show whether expressions are equivalent identify equivalent expressions that are polynomials combine like terms in
More informationFinal Examination Semester 2 / Year 2010
Southern College Kolej Selatan 南方学院 Final Examination Semester 2 / Year 2010 COURSE : PROGRAMMING LOGIC AND DESIGN COURSE CODE : CCIS1003 TIME : 2 1/2 HOURS DEPARTMENT : COMPUTER SCIENCE LECTURER : LIM
More informationCopyright 2005 Department of Computer & Information Science
Introducing Programming Copyright 2005 Goals By the end of this lecture, you should Understand the different types of programming languages. Understand the basic procedures in a program as input, processing
More information7/8/10 KEY CONCEPTS. Problem COMP 10 EXPLORING COMPUTER SCIENCE. Algorithm. Lecture 2 Variables, Types, and Programs. Program PROBLEM SOLVING
KEY CONCEPTS COMP 10 EXPLORING COMPUTER SCIENCE Lecture 2 Variables, Types, and Programs Problem Definition of task to be performed (by a computer) Algorithm A particular sequence of steps that will solve
More informationWord Processing Knowledge and Skills: Word Processing Knowledge and Skills:
Texas University Interscholastic League Contest Event: Computer Applications The contest focuses on word processing speed and accuracy, computer skills in database and spreadsheet, and integration of applications.
More informationCPE Summer 2015 Exam I (150 pts) June 18, 2015
Name Closed notes and book. If you have any questions ask them. Write clearly and make sure the case of a letter is clear (where applicable) since C++ is case sensitive. You can assume that there is one
More informationTutorial 10: Performing What-If Analyses. Microsoft Excel 2013 Enhanced
Tutorial 10: Performing What-If Analyses Microsoft Excel 2013 Enhanced Objectives Explore the principles of cost-volume-profit relationships Create a one-variable data table Create a two-variable data
More informationFinite Math Section 2_2 Solutions and Hints
Finite Math Section _ Solutions and Hints by Brent M. Dingle for the book: Finite Mathematics, 7 th Edition by S. T. Tan. DO NOT PRINT THIS OUT AND TURN IT IN!!!!!!!! This is designed to assist you in
More informationChapter Two: Program Design Process and Logic
Chapter Two: Program Design Process and Logic 2.1 Chapter objectives Describe the steps involved in the programming process Understand how to use flowchart symbols and pseudocode statements Use a sentinel,
More informationActivity One: Getting started with linear programming. This problem is based on a problem in the Algebra II Indicators for Goal 1.
Linear Programming Goals: 1. Describe graphically, algebraically, and verbally real-world phenomena as functions; identify the independent and dependent variables (3.01) 2. Translate among graphic, algebraic,
More informationC A R I B B E A N E X A M I N A T I O N S C O U N C I L REPORT ON CANDIDATES WORK IN THE SECONDARY EDUCATION CERTIFICATE EXAMINATIONS MAY/JUNE 2010
C A R I B B E A N E X A M I N A T I O N S C O U N C I L REPORT ON CANDIDATES WORK IN THE SECONDARY EDUCATION CERTIFICATE EXAMINATIONS MAY/JUNE 2010 INFORMATION TECHNOLOGY GENERAL PROFICIENCY Copyright
More informationSelection Control Structure CSC128: FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Selection Control Structure CSC128: FUNDAMENTALS OF COMPUTER PROBLEM SOLVING MULTIPLE SELECTION To solve a problem that has several selection, use either of the following method: Multiple selection nested
More informationConstructing Algorithms and Pseudocoding This document was originally developed by Professor John P. Russo
Constructing Algorithms and Pseudocoding This document was originally developed by Professor John P. Russo Purpose: # Describe the method for constructing algorithms. # Describe an informal language for
More informationProblem Solving Footer Text 10/30/2015 1
Problem Solving Footer Text 10/30/2015 1 Learning Outcome List five (5) steps in problem solving Identify input, process and output from a given problem. 8.2.2 Define algorithm. Solve a given problem using
More informationGoogle: How does it work?
Google: How does it work? Jonathan M. Burgess In 1998, two Stanford University students, Larry Page and Sergey Brin, created Google, an Internet search engine. Their success was founded in the fact that
More informationAlgorithms. Abdelghani Bellaachia, CSCI 1121 Page: 1
Algorithms 1. Objectives... 2 2. Design You Solution... 2 3. Structure of an algorithm:... 3 4. Pseudocode:... 4 5. Example... 5 6. Selection or Conditional Execution... 8 7. Looping or Iteration... 9
More informationJanuary 24, Matrix Row Operations 2017 ink.notebook. 6.6 Matrix Row Operations. Page 35 Page Row operations
6.6 Matrix Row Operations 2017 ink.notebook Page 35 Page 36 6.6 Row operations (Solve Systems with Matrices) Lesson Objectives Page 37 Standards Lesson Notes Page 38 6.6 Matrix Row Operations Press the
More informationPhysicsAndMathsTutor.com
1. An algorithm is described by the flowchart shown in the diagram above. Edexcel Internal Review 1 (a) Given that S = 25 000, complete the table in the answer book to show the results obtained at each
More informationProgramming Languages and Program Development Life Cycle Fall Introduction to Information and Communication Technologies CSD 102
Programming Languages and Program Development Life Cycle Fall 2016 Introduction to Information and Communication Technologies CSD 102 Outline The most common approaches to program design and development
More informationObjectives/Outcomes. Introduction: If we have a set "collection" of fruits : Banana, Apple and Grapes.
1 September 26 September One: Sets Introduction to Sets Define a set Introduction: If we have a set "collection" of fruits : Banana, Apple Grapes. 4 F={,, } Banana is member "an element" of the set F.
More informationLesson 1. Introduction to Programming OBJECTIVES
Introduction to Programming If you re new to programming, you might be intimidated by code and flowcharts. You might even wonder how you ll ever understand them. This lesson offers some basic ideas and
More informationMAT 003 Brian Killough s Instructor Notes Saint Leo University
MAT 003 Brian Killough s Instructor Notes Saint Leo University Success in online courses requires self-motivation and discipline. It is anticipated that students will read the textbook and complete sample
More information1. Make a bar graph in Excel. (1.5 points) Copy the following table into two columns under a blank worksheet in Excel.
STAT 243 Lab 3 Rachel Webb 25 points This lab should be done using Microsoft Excel available in all PSU computer labs. A hard copy of your output is to be handed in to during lecture on the due date posted
More informationIntroduction to Computer Science Unit 2. Notes
Introduction to Computer Science Unit 2. Notes Name: Objectives: By the completion of this packet, students should be able to describe the difference between.java and.class files and the JVM. create and
More informationLecture Transcript While and Do While Statements in C++
Lecture Transcript While and Do While Statements in C++ Hello and welcome back. In this lecture we are going to look at the while and do...while iteration statements in C++. Here is a quick recap of some
More informationFinal Examination Semester 3 / Year 2010
Southern College Kolej Selatan 南方学院 Final Examination Semester 3 / Year 2010 COURSE : PROGRAMMING LOGIC AND DESIGN COURSE CODE : CCIS1003 TIME : 2 1/2 HOURS DEPARTMENT : COMPUTER SCIENCE LECTURER : LIM
More informationLaboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information
Laboratory 2: Programming Basics and Variables Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information 3. Comment: a. name your program with extension.c b. use o option to specify
More informationCS 142 Style Guide Grading and Details
CS 142 Style Guide Grading and Details In the English language, there are many different ways to convey a message or idea: some ways are acceptable, whereas others are not. Similarly, there are acceptable
More informationProgramming Logic and Design Seventh Edition Chapter 2 Elements of High-Quality Programs
Programming Logic and Design Chapter 2 Elements of High-Quality Programs Objectives In this chapter, you will learn about: Declaring and using variables and constants Assigning values to variables [assignment
More informationDiscrete Structures. Fall Homework3
Discrete Structures Fall 2015 Homework3 Chapter 5 1. Section 5.1 page 329 Problems: 3,5,7,9,11,15 3. Let P(n) be the statement that 1 2 + 2 2 + +n 2 = n(n + 1)(2n + 1)/6 for the positive integer n. a)
More informationCPSC 121 Midterm 1 Friday February 5th, Signature: Section (circle one): Morning Afternoon
CPSC 121 Midterm 1 Friday February 5th, 2016 Name: Student ID: Signature: Section (circle one): Morning Afternoon You have 70 minutes to write the 8 questions on this examination. A total of 60 marks are
More informationAccess Intermediate
Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134
More informationFree and Reduced Online Application Instructions Step #1: In the Internet address field, type in the web site address: http://gwinnett.schoollunchapp.com Step #2: You must click the button to select: Privacy
More informationIntroduction to Modules. Chapter 3. Defining and Calling a Module. Introduction to Modules. 5 Benefits of Modules. Modules CSUS, Spring 2016
Chapter 3 Introduction to Modules Modules CSUS, Spring 2016 Chapter 3.1 Introduction to Modules Introduction to Modules A module is a group of statements that exists within a program for the purpose of
More informationAPPLY INPUT METHODS A,C,H
APPLY INPUT METHODS A,C,H GOAL: Students will demonstrate proper keyboarding techniques and will create a table with various levels of headings and enhancement features comparing and contrasting ergonomic
More informationIntroduction Objectives: 1) differentiate between high-level, low-level, and machine language; 2) explain why it is necessary to translate a program
Introduction Objectives: 1) differentiate between high-level, low-level, and machine language; 2) explain why it is necessary to translate a program written in a high-level programming language into machine
More informationIntroduction to Programming
Introduction to Programming session 6 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Spring 2011 These slides are created using Deitel s slides Sharif University of Technology Outlines
More informationVARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs.
Lesson 2 VARIABLES Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. WHAT ARE VARIABLES? When you input data (i.e. information) into a computer
More information1. Expand and simplify: 9. Determine the area of the triangle. a. 5 b. 2. Simplify: a. ( 3) c. ( 2) d. 4 ( 2) 3. e ( 3) ( 5)
Math 08 Final Exam Review. Expand and simplify: (Section.6). Simplify: ( ) ( ) 00 d. ( ) (Section.,.6,.) (Section.,.,.) 6 ( ) ( ) e. 6 6 8 (Section.,.6,.) (Section.,.) ( 6 ) (Section.,.,.). Translate into
More informationUniversity of Illinois at Chicago Department of Computer Science. Final Examination. CS 151 Mathematical Foundations of Computer Science Fall 2012
University of Illinois at Chicago Department of Computer Science Final Examination CS 151 Mathematical Foundations of Computer Science Fall 2012 Thursday, October 18, 2012 Name: Email: Print your name
More informationSoftware Development Techniques. December Sample Exam Marking Scheme
Software Development Techniques December 2015 Sample Exam Marking Scheme This marking scheme has been prepared as a guide only to markers. This is not a set of model answers, or the exclusive answers to
More informationUnit 2A: Systems of Equations and Inequalities
Unit A: Systems of Equations and Inequalities In this unit, you will learn how to do the following: Learning Target #1: Creating and Solving Systems of Equations Identify the solution to a system from
More informationAP CS Unit 3: Control Structures Notes
AP CS Unit 3: Control Structures Notes The if and if-else Statements. These statements are called control statements because they control whether a particular block of code is executed or not. Some texts
More informationChapter 7 Arithmetic
Chapter 7 Arithmetic 7-1 Arithmetic in C++ Arithmetic expressions are made up of constants, variables, operators and parentheses. The arithmetic operators in C++ are as follows + (addition) - (subtraction)
More informationITEC102 INFORMATION TECHNOLOGIES
ITEC102 INFORMATION TECHNOLOGIES LECTURE 5 ALGORITHMS AND FLOW CHARTS EASTERN MEDITERRANEAN UNIVERSITY SCHOOL OF COMPUTING AND TECHNOLOGY Aim of the course Aim of this course to have information about,
More informationComputer System and programming in C
Approaches to Problem Solving Concept of algorithm and flow charts ALGORITHMS AND FLOWCHARTS A typical programming task can be divided into two phases: Problem solving phase produce an ordered sequence
More informationGateway Regional School District VERTICAL ALIGNMENT OF MATHEMATICS STANDARDS Grades 3-6
NUMBER SENSE & OPERATIONS 3.N.1 Exhibit an understanding of the values of the digits in the base ten number system by reading, modeling, writing, comparing, and ordering whole numbers through 9,999. Our
More informationDocumentation Nick Parlante, 1996.Free for non-commerical use.
Documentation Nick Parlante, 1996.Free for non-commerical use. A program expresses an algorithm to the computer. A program is clear or "readable" if it also does a good job of communicating the algorithm
More informationNumerical Methods in Scientific Computation
Numerical Methods in Scientific Computation Programming and Software Introduction to error analysis 1 Packages vs. Programming Packages MATLAB Excel Mathematica Maple Packages do the work for you Most
More informationC++ Programming Language Lecture 2 Problem Analysis and Solution Representation
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department Program Development Cycle Program development
More information(I m not printing out these notes! Take your own.)
PT1420 Week 2: Software Program Design I (I m not printing out these notes! Take your own.) Today we'll be discussing designing programs: Algorithms and errors Flowcharts and pseudocode Sequence structures
More informationComputer Number Systems Supplement
Computer Number Systems Supplement Dr. Ken Hoganson, All Rights Reserved. SUPPLEMENT CONTENTS S.1 Decimal System: Powers-of-the-Base 2 S.2 Converting to Binary: Division/Remainder Algorithm. 3 S.3 Binary
More informationAssignment 1 Expressions Data Types Formatted Printing Variables Scanning CSC 123 Fall 2018 Answer Sheet Short Answers
Assignment 1 Expressions Data Types Formatted Printing Variables Scanning CSC 123 Fall 2018 Answer Sheet Short Answers 1. Every complete statement ends with a c. a. period b. parenthesis c. semicolon d.
More information1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d.
Gaddis: Starting Out with Python, 2e - Test Bank Chapter Two MULTIPLE CHOICE 1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical
More informationProblem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur
Problem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 04 Introduction to Programming Language Concepts
More informationWTF with SQL. It s just not right! Kennie Nybo Pontoppidan Dublin, June 18th 2016
WTF with SQL It s just not right! Kennie Nybo Pontoppidan Dublin, June 18th 2016 Please Visit Sponsors and Enter Raffles Stick around for SWAG! (Prize drawing at 4.15 p.m Be there (in person) or be Volunteers
More informationSolve the matrix equation AX B for X by using A.(1-3) Use the Inverse Matrix Calculator Link to check your work
Name: Math 1324 Activity 9(4.6)(Due by Oct. 20) Dear Instructor or Tutor, These problems are designed to let my students show me what they have learned and what they are capable of doing on their own.
More informationBRANCHING if-else statements
BRANCHING if-else statements Conditional Statements A conditional statement lets us choose which statement t t will be executed next Therefore they are sometimes called selection statements Conditional
More informationInitial Coding Guidelines
Initial Coding Guidelines ITK 168 (Lim) This handout specifies coding guidelines for programs in ITK 168. You are expected to follow these guidelines precisely for all lecture programs, and for lab programs.
More informationProgram Development. Java Program Statements. Design. Requirements. Testing. Implementation
Program Development Java Program Statements Selim Aksoy Bilkent University Department of Computer Engineering saksoy@cs.bilkent.edu.tr The creation of software involves four basic activities: establishing
More informationCS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points
CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points Files to submit: 1. HW3.py This is a PAIR PROGRAMMING Assignment: Work with your partner! For pair
More informationLecture Writing Programs. Richard E Sarkis CSC 161: The Art of Programming
Lecture Writing Programs Richard E Sarkis CSC 161: The Art of Programming Class Administrivia Agenda To be able to understand and write Python statements to output information to the screen To assign values
More informationJob Ready Assessment Blueprint. Computer Programming. Test Code: 3023 / Version: 01
Job Ready Assessment Blueprint Computer Programming Test Code: 3023 / Version: 01 Measuring What Matters Specific Competencies and Skills Tested in this Assessment: Analyze Programming Problems and Flowchart
More informationCS111: PROGRAMMING LANGUAGE1. Lecture 2: Algorithmic Problem Solving
CS111: PROGRAMMING LANGUAGE1 Lecture 2: Algorithmic Problem Solving Agenda 2 Problem Solving Techniques Pseudocode Algorithm Flow charts Examples How People Solve Problems 3 A Problem exists when what
More informationAlgorithms and Programming Languages
Algorithms and Programming Languages Algorithm An algorithm is an set of unambiguous that defines a terminating process. Algorithms are part of many activities, even mundane ones. Note: Researchers believe
More informationIT 1033: Fundamentals of Programming Loops
IT 1033: Fundamentals of Programming Loops Budditha Hettige Department of Computer Science Repetitions: Loops A loop is a sequence of instruction s that is continually repeated until a certain condition
More informationA Beginner s Guide to Programming Logic, Introductory. Chapter 2 Working with Data, Creating Modules, and Designing High-Quality Programs
A Beginner s Guide to Programming Logic, Introductory Chapter 2 Working with Data, Creating Modules, and Designing High-Quality Programs Objectives In this chapter, you will learn about: Declaring and
More informationHomework 2 Solutions Group B 1- Write a C++ program to read a students score in Statistics and print if he is successful or failing.
Homework 2 Solutions Group B 1- Write a C++ program to read a students score in Statistics and print if he is successful or failing. int score; cout>score; if ((score>=60)&&(score
More information