Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON.

Slides:



Advertisements
Similar presentations
Input, Process, Output, Storage and Feedback
Advertisements

Parts of a Computer.
Computer Programming Mr. José A. Ortiz Morris. Computer Language  Languages that the computer understands.  They are low level languages. (BINARY 1.
Program Design Using Haggis
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.
CS31: Introduction to Computer Science I Discussion 1A 4/2/2010 Sungwon Yang
Computing Theory: BBC Basic Coding Year 11. Lesson Objective You will: Be able to define what BBC basic is Be able to annotate BBC basic code Be able.
Python programs How can I run a program? Input and output.
Testing Strategies COMP1 – Section 4.2. Testing. Aims At the end of this lesson you will be able to:  Explain different testing strategies  Design and.
System software operating system 1.
Topics Introduction Hardware and Software How Computers Store Data
Chapter 5: Data Input and Output Department of Computer Science Foundation Year Program Umm Alqura University, Makkah Computer Programming Skills
CPSC 171 Introduction to Computer Science 3 Levels of Understanding Algorithms More Algorithm Discovery and Design.
General Programming Introduction to Computing Science and Programming I.
PYTHON. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python was designed to be highly readable which uses.
Computers Welcome to the Computer Lab! By Miss Stoehr.
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
Input, Output, and Processing
Computer A computer is an electronic machine that takes information, processes it,and stores it. Computers are made up of hardware ( monitor, tower, keyboard,
Software Development Process.  You should already know that any computer system is made up of hardware and software.  The term hardware is fairly easy.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
COMP 171: Data Types John Barr. Review - What is Computer Science? Problem Solving  Recognizing Patterns  If you can find a pattern in the way you solve.
Higher Grade Computing Studies 3. High Level Language Constructs Higher Computing Software Development S. McCrossan 1 Simple Data Types Integer: An integer.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
COSC 235: Programming and Problem Solving Ch. 2: Your first programs!!! Instructor: Dr. X.
Asking the USER for values to use in a software 1 Input.
My Python Programmes NAME:.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
NAME Python Programming Workbook Select a Lesson:
The Hashemite University Computer Engineering Department
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.
Exercise 1 #include int main() { printf(“Hello C Programming!\n”); return 0; } 1.Run your Visual Studio 2008 or Create a new “project” and add.
1 Project 3 String Methods. Project 3: String Methods Write a program to do the following string manipulations: Prompt the user to enter a phrase and.
Introduction to Programming Python Lab 5: Strings and Output 05 February PythonLab5 lecture slides.ppt Ping Brennan
Introduction to Programming
Starter – Its the small things in life What’s wrong with this code Height = 10 Width = 10 A = Height * Width Print A Remember to check: Spelling Spacing.
Steps for Developing a Visual C# 2010 Application MIT By: S. Sabraz Nawaz.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
For Loop GCSE Computer Science – Python. For Loop The for loop iterates over the items in a sequence, which can be a string or a list (we will discuss.
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
Chapter 4 Strings and Screen I/O. Objectives Define strings and literals. Explain classes and objects. Use the string class to store strings. Perform.
Learning Objectives Today we will Learn: The different methods of implementation The differences between user and technical documentation.
ENGINEERING 1D04 Tutorial 1. WELCOME! What we’re doing today Who am I How to do well What are computer programs Software Development Cycle Pseudo Code.
Introduction to Programming
Fundamentals of Programming I Overview of Programming
Learning outcomes 2 Developing Code – Input Output Model
GCSE COMPUTER SCIENCE Practical Programming using Python
Input and Output Upsorn Praphamontripong CS 1110
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Programming
Python Lesson 6 Mr. Kalmes.
Topics Introduction Hardware and Software How Computers Store Data
Python Lesson 21 Mr. Kalmes.
Introduction to Programming
Learning Intention I will learn about evaluating a program.
Python 19 Mr. Husch.
Introduction to Python
General Computer Science for Engineers CISC 106 Lecture 03
Python Inputs Mr. Husch.
Python 19 Mr. Husch.
What you need to do… Drag the pieces of code into the correct order like you can see in the EXAMPLE below. print ( “ int input ) = + Hello world chr ord.
 Is a machine that is able to take information (input), do some work on (process), and to make new information (output) COMPUTER.
CS 1111 Introduction to Programming Spring 2019
Presentation transcript:

Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON

Computing Science Software Design and Development Learning IntentionsSuccess Criteria By the end of this section, you will be able to: Assign a value to a variable directly Assign a value to a variable by input from the keyboard Identify the need for meaningful variable names I can assign a value to a variable directly within a program I can assign a value to a variable through input from the keyboard I can explain why it is important that we name variables sensibly so that they mean something to me an other programmers

Computing Science Software Design and Development Analysis A program is required that will demonstrate how to assign values to variables using the following methods: 1. Assign the value directly within the program 2. Assign the value from user input via the keyboard It will then display these values on the screen Copy the Analysis for this program into your jotter

Computing Science Software Design and Development DESIGN SET firstname= “John” SET age = 15 RECEIVE surname FROM KEYBOARD RECEIVE height FROM KEYBOARD SEND firstname & surname TO DISPLAY SEND age TO DISPLAY SEND height TO DISPLAY Copy the Design for this program into your jotter

Computing Science Software Design and Development IMPLEMENTATION 1. Enter the given code 2. Save the program as 4-1Ex.py 3. Run the program and correct any errors

Computing Science Software Design and Development Testing Copy and complete the Testing for this program into your jotter I am going to input…I expect the program to…The program actually…

Computing Science Software Design and Development Reporting In your jotter, complete a report: 1. By looking at the Analysis, explain how this program meets the requirements. 2. Suggest any ways in which the program could be improved.

Computing Science Software Design and Development Explaining the code 1. Explain, in your own words, what each of the following pieces of code does in this program: a. age = 15 b. height = input(‘What height are you, in meters?\n’) c. print firstname + ‘ ‘ + surname 2. What is the effect of missing out the \n in the input lines? 3. What information would you expect to find in the age variable?

Computing Science Software Design and Development Explaining the code 1.Explain, in your own words, what each of the following pieces of code does in this program: a. age = 15 Assigns the value 15 to the age variable b. height = input(‘What height are you, in meters?\n’) displays a prompt for the user to input via keyboard and assigns the entered value to the height variable c. print firstname + ‘ ‘ + surname displays the contents of firstname variable, followed by a space, followed by the contents of the surname variable

Computing Science Software Design and Development Explaining the code 2. What is the effect of missing out the \n in the input lines? The \n moves onto a new line. Missing it out means that formatting of output may be disrupted 3. What information would you expect to find in the firtname variable? John

Computing Science Software Design and Development Meaningful variable names In this program, we used 4 variables: Firstname Surname Age Height Why are these more meaningful than calling them: F S A H ?

Computing Science Software Design and Development Learning IntentionsSuccess Criteria By the end of this section, you will be able to: Assign a value to a variable directly Assign a value to a variable by input from the keyboard Identify the need for meaningful variable names I can assign a value to a variable directly within a program I can assign a value to a variable through input from the keyboard I can explain why it is important that we name variables sensibly so that they mean something to me an other programmers