Worlframalpha.com Facebook Report
|
|
- Tyrone Watts
- 5 years ago
- Views:
Transcription
1 Worlframalpha.com Facebook Report
2 For Tuesday: have read up through chapter 2 Next week will start chapter 3 New lab today: Simple Programs
3 Integer division? o 1//3 o - 1//3 Range start at something other than 0? range([start,] stop [,step])
4 for i in range(5): print (i*i) for i in [3, 1, 4, 1, 5]: print (i, end= ) for i in range(4): print ( Hello ) for i in range(5): print (i, 2**i)
5 Print out 1, 2, 3, 4 Using a for loop, each on a different line Using a for loop, on the same line Now, print out the reverse sequence by changing only the print statement (not the for statement)
6 Summing sum=0 for i in range(5): sum = sum + i print (sum)
7 Psudocode More precise than English Not a programming language Good for thinking Program to convert C to F? F (9/5)C + 32
8 The So`ware Development Process Analyze the Problem Determine Specificaeon Create a Design Implement Design Test/Debug the Program Maintain Program Python Programming, 2/e 8
9 Example Program: Temperature Converter Problem: US student needs to know temperature in F Python Programming, 2/e 9
10 Example Program: Temperature Converter Analysis temperature is given in Celsius user wants it in degrees Fahrenheit Specificaeon Input temperature in Celsius Output temperature in Fahrenheit Output = 9/5(input) + 32 Python Programming, 2/e 10
11 Example Program: Temperature Converter Design Input, Process, Output (IPO) Prompt the user for input (Celsius temperature) Process it: convert to Fahrenheit. F = 9/5(C) + 32 Output the result to screen Python Programming, 2/e 11
12 Example Program: Temperature Converter Before coding write a rough dra` program Psudocode More precise than English Not a programming language Good for thinking Python Programming, 2/e 12
13 Example Program: Temperature Converter Pseudocode: Input temperature in degrees Celsius (call it celsius) Calculate fahrenheit as (9/5)*celsius+32 Output fahrenheit Next, convert to Python Python Programming, 2/e 13
14 Example Program: Temperature Converter #convert.py # A program to convert Celsius temps to Fahrenheit # by: Susan Computewell def main(): celsius = eval(input("what is the Celsius temperature? ")) fahrenheit = (9/5) * celsius + 32 print("the temperature is ",fahrenheit," degrees Fahrenheit.") main() Python Programming, 2/e 14
15 Example Program: Temperature Converter Once we write a program, we should test it! >>> What is the Celsius temperature? 0 The temperature is 32.0 degrees Fahrenheit. >>> main() What is the Celsius temperature? 100 The temperature is degrees Fahrenheit. >>> main() What is the Celsius temperature? - 40 The temperature is degrees Fahrenheit. >>> Python Programming, 2/e 15
16 Industrial- strength teseng hmp://trenchescomic.com/tales/post/advancement- lies Maintenance Documentaeon Knowledge transfer
17 Google Glass hmp:// v=9c6w4ccu9m4 hmp://
18 Example Program: Future Value Problem: Our student wants to invest money in a savings account but doesn t know how much he ll make over 10 years. Python Programming, 2/e 18
19 The So`ware Development Process Analyze the Problem Determine Specifica6on Create a Design Implement Design Test/Debug the Program Maintain Program Python Programming, 2/e 19
20 Example Program: Future Value Analysis Money deposited in a bank account earns interest How much will account be worth in 10 years? Inputs: principal, interest rate Output: value of the investment in 10 years Assumpeons? Python Programming, 2/e 20
21 Example Program: Future Value Specificaeon User enters inieal amount to invest (the principal) User enters annual percentage rate (the interest) Python Programming, 2/e 21
22 Example Program: Future Value Program Future Value Inputs principal: amount of money being invested, in dollars apr: annual percentage rate expressed as decimal number Output Total value of the investment 10 years in the future Process Value a`er one year is given by principal * (1 + apr) This needs to be done 10 emes. Python Programming, 2/e 22
23 Example Program: Future Value Design Print an introduceon Input the amount of the principal (principal) Input the annual percentage rate (apr) Repeat 10 emes: principal = principal * (1 + apr) Output the value of principal Python Programming, 2/e 23
24 Example Program: Future Value Implementaeon Each line translates to one line of Python (in this case) Print an introduceon print ("This program calculates the future") print ("value of a 10- year investment.") Input the amount of the principal principal = eval(input("enter the ini6al principal: ")) Python Programming, 2/e 24
25 Example Program: Future Value Input the annual percentage rate apr = eval(input("enter the annual interest rate: ")) Repeat 10 emes: for i in range(10): Calculate principal = principal * (1 + apr) principal = principal * (1 + apr) Output value of the principal at end of 10 years print ("The value in 10 years is:", principal) Python Programming, 2/e 25
26 Example Program: Future Value # futval.py # A program to compute the value of an investment # carried 10 years into the future def main(): print("this program calculates the future value of a 10- year investment.") principal = eval(input("enter the inieal principal: ")) apr = eval(input("enter the annual interest rate: ")) for i in range(10): principal = principal * (1 + apr) print ("The value in 10 years is:", principal) main() Python Programming, 2/e 26
27 Example Program: Future Value >>> main() This program calculates the future value of a 10- year investment. Enter the inieal principal: 100 Enter the annual interest rate:.03 The value in 10 years is: >>> main() This program calculates the future value of a 10- year investment. Enter the inieal principal: 100 Enter the annual interest rate:.10 The value in 10 years is: Python Programming, 2/e 27
28 Example Program: Distance Averager Problem: Our poor study- abroad student in Europe needs to know the average distance between three ciees, in miles. 1 Kilometer = 0.62 Mile Python Programming, 2/e 28
Python Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science Chapter 2 Python Programming, 2/e 1 Objectives n To be able to understand and write Python statements to output information to the screen, assign
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2014 Chapter 2 The Department of Computer Science Chapter 2 Elements of Programs-Objectives To be able to understand and write Python
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 informationPython Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science Chapter 2 Writing Simple Programs Python Programming, 3/e 1 Objectives n To know the steps in an orderly software development process. n To understand
More informationCITS 4406 Problem Solving & Programming
CITS 4406 Problem Solving & Programming Tim French Lecture 02 The Software Development Process (These slides are based on John Zelle s powerpoint slides for lectures accompanied with the text book) Objectives
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2016 Chapter 2 Instructor: Long Ma The Department of Computer Science Review Install and test python Basic concept of computers Test simple
More informationWriting Python Programs, Numerical Data Types
Writing Python Programs, Numerical Data Types Michael Mandel Lecture 2 Methods in Computational Linguistics I The City University of New York, Graduate Center https://github.com/ling78100/lectureexamples/blob/master/lecture02final.ipyn
More informationChapter 2 Writing Simple Programs
Chapter 2 Writing Simple Programs Charles Severance Textbook: Python Programming: An Introduction to Computer Science, John Zelle (www.si182.com) Software Development Process Figure out the problem - for
More informationCS 105 Lab As a review of what we did last week a. What are two ways in which the Python shell is useful to us?
1 CS 105 Lab 3 The purpose of this lab is to practice the techniques of making choices and looping. Before you begin, please be sure that you understand the following concepts that we went over in class:
More informationWeek 2. Relational Operators. Block or compound statement. if/else. Branching & Looping. Gaddis: Chapters 4 & 5. CS 5301 Spring 2018.
Week 2 Branching & Looping Gaddis: Chapters 4 & 5 CS 5301 Spring 2018 Jill Seaman 1 Relational Operators l relational operators (result is bool): == Equal to (do not use =)!= Not equal to > Greater than
More informationSI Networked Computing: Storage, Communication, and Processing, Winter 2009
University of Michigan Deep Blue deepblue.lib.umich.edu 2009-01 SI 502 - Networked Computing: Storage, Communication, and Processing, Winter 2009 Severance, Charles Severance, C. (2008, December 19). Networked
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2015 Chapter 7 Part 1 The Department of Computer Science Objectives 2 To understand the programming pattern simple decision and its implementation
More informationPython Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science Chapter 7 Decision Structures Python Programming, 2/e 1 Objectives æ To understand the programming pattern simple decision and its implementation
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2016 Chapter 7 Part 1 Instructor: Long Ma The Department of Computer Science Objectives---Decision Structures 2 To understand the programming
More informationPython Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science Chapter 7 Decision Structures Python Programming, 2/e 1 Objectives n To understand the programming pattern simple decision and its implementation
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2016 Chapter 3 Instructor: Long Ma The Department of Computer Science Review of Chapter 2 Stages of creating a program: Analyze the problem
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2015 Chapter 3 The Department of Computer Science Review of Chapter 2 Stages of creating a program: Analyze the problem Determine specifications
More informationLast Time. integer/float/string. import math math.sqrt() math.pi. Python Programming, 2/e 2
1 Last Time integer/float/string import math math.sqrt() math.pi Python Programming, 2/e 2 Extra Ques:on from Lab 2 Using loops and two print statements, have Python print out the following: * * * * *
More informationIntroduction to Computer Programming for Non-Majors
Introduction to Computer Programming for Non-Majors CSC 2301, Fall 2014 Chapter 3 The Department of Computer Science Review of Chapter 2 Stages of creating a program: Analyze the problem Determine specifications
More informationMETHODS EXERCISES GuessNumber and Sample run SumAll Sample Run
METHODS EXERCISES Write a method called GuessNumber that receives nothing and returns back nothing. The method first picks a random number from 1-100. The user then keeps guessing as long as their guess
More informationFundamentals of Programming (Python) Getting Started with Programming
Fundamentals of Programming (Python) Getting Started with Programming Ali Taheri Sharif University of Technology Some slides have been adapted from Python Programming: An Introduction to Computer Science
More informationPython lab session 1
Python lab session 1 Dr Ben Dudson, Department of Physics, University of York 28th January 2011 Python labs Before we can start using Python, first make sure: ˆ You can log into a computer using your username
More informationProg-PC1: Attaway Chapter 1
Prog-PC1: Attaway Chapter 1 Name: Student nr: 6. Think about what the results would be for the following expressions and then type them in to verify your answers. >> 25 / 4 * 4 25 >> 3 + 4 ^ 2 1 >> 4 \
More informationExpressions. Eric Roberts Handout #3 CSCI 121 January 30, 2019 Expressions. Grace Murray Hopper. Arithmetic Expressions.
Eric Roberts Handout #3 CSCI 121 January 30, 2019 Expressions Grace Murray Hopper Expressions Eric Roberts CSCI 121 January 30, 2018 Grace Hopper was one of the pioneers of modern computing, working with
More informationThe >>> is a Python prompt indicating that Python is ready for us to give it a command. These commands are called statements.
When you start Python, you will see something like: Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.
More informationActivity 1: Introduction
Activity 1: Introduction In this course, you will work in teams of 3 4 students to learn new concepts. This activity will introduce you to the process. We ll also take a first look at how to store data
More informationCS 115 Lecture 4. More Python; testing software. Neil Moore
CS 115 Lecture 4 More Python; testing software Neil Moore Department of Computer Science University of Kentucky Lexington, Kentucky 40506 neil@cs.uky.edu 8 September 2015 Syntax: Statements A statement
More informationSeventh Grade Spiraling Review Week 1 of First Six Weeks
Week of First Six Weeks Note: Record all work in your math journal. Day Indicate if each of the given numbers below is equivalent to, less than, or greater than. Justify each response. 0.0, 0 4.7, %,,
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 informationLab ACN : C++ Programming Exercises
Lab ACN : C++ Programming Exercises ------------------------------------------------------------------------------------------------------------------- Exercise 1 Write a temperature conversion program
More informationCSE 20. Lecture 4: Number System and Boolean Function. CSE 20: Lecture2
CSE 20 Lecture 4: Number System and Boolean Function Next Weeks Next week we will do Unit:NT, Section 1. There will be an assignment set posted today. It is just for practice. Boolean Functions and Number
More informationIntroduction to Object Oriented Systems Development. Practical Session (Week 2)
This practical session consists of three parts. Practical Session (Week 2) Part 1 (Tutorial). Starting with NetBeans In this module, we will use NetBeans IDE (Integrated Development Environment) for Java
More informationIntroduction to Python and Programming. 1. Python is Like a Calculator. You Type Expressions. Python Computes Their Values /2 2**3 3*4+5*6
1. Python is a calculator. A variable is a container Introduction to Python and Programming BBM 101 - Introduction to Programming I Hacettepe University Fall 016 Fuat Akal, Aykut Erdem, Erkut Erdem 3.
More informationUNDERSTANDING PROBLEMS AND HOW TO SOLVE THEM BY USING COMPUTERS
UNDERSTANDING PROBLEMS AND HOW TO SOLVE THEM BY USING COMPUTERS INTRODUCTION TO PROBLEM SOLVING Introduction to Problem Solving Understanding problems Data processing Writing an algorithm CONTINUE.. Tool
More informationNumber Sense. I CAN DO THIS! Third Grade Mathematics Name. Problems or Examples. 1.1 I can count, read, and write whole numbers to 10,000.
Number Sense 1.1 I can count, read, and write whole numbers to 10,000. 1.2 I can compare and order numbers to 10,000. What is the smallest whole number you can make using the digits 4, 3, 9, and 1? Use
More informationApril 25, Lesson 8.2B
Lesson 8.2B Content Objective: I can substitute a number in for a variable and solve for the expression I can turn word problems into expressions, equations, and inequalities and solve for the variable.
More informationAnnouncements. Problem Set 3 is due this Tuesday! Midterm graded and will be returned on Friday during tutorial (average 60%)
CSC263 Week 7 Announcements Problem Set 3 is due this Tuesday! Midterm graded and will be returned on Friday during tutorial (average 60%) Amortized Analysis O"en, we perform sequences of opera.ons on
More informationCpSc 1011 Lab 4 Formatting and Flow Control Windchill Temps
CpSc 1011 Lab 4 Formatting and Flow Control Windchill Temps Overview By the end of the lab, you will be able to: use fscanf() to accept inputs from the user and use fprint() for print statements to the
More informationLAB 2.1 INTRODUCTION TO C PROGRAMMING
LAB 2.1 INTRODUCTION TO C PROGRAMMING School of Computer and Communication Engineering Universiti Malaysia Perlis 1 1. OBJECTIVES: 1.1 To be able to apply basic rules and structures of C in writing a simple
More informationCS 100: Computability, Python Lists
CS 100: Computability, Python Lists Chris Kauffman Week 6 Logistics Homework 4 A few Python list exercises Due next Thursday Reading Pattern Ch 5: Algorithms And Heuristics Think Ch 11: Lists (link) Mini-Exam
More informationJumpStart to Second Grade Math
JumpStart to Second Grade Math Here are some math problems you and your child can work through over the summer. The items listed below are examples; feel free to change the numbers to have a continuous
More informationfunctions, modules, debugging
functions, modules, debugging Matt Valeriote 21 January, 2019 Continuation of coin counting example Before coding up a solution, first describe it at a high level and then refine it: Initialization phase
More informationCMSC201 Computer Science I for Majors
CMSC201 Computer Science I for Majors Lecture 06 Decision Structures Prof. Katherine Gibson Prof. Jeremy Dixon Based on concepts from: https://blog.udemy.com/python-if-else/ Last Class We Covered Just
More informationChapter 2 Input, Processing and Output. Hong Sun COSC 1436 Spring 2017 Jan 30, 2017
Chapter 2 Input, Processing and Output Hong Sun COSC 1436 Spring 2017 Jan 30, 2017 Designing a Program Designing a Program o Programs must be carefully designed before they are written. Before beginning
More informationReview Test 2. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.
Review Test MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Determine if the number is divisible by, 3, 4,, 6, 8, 9, 10, and/or 1. 1) 36 A) 3, 4 B),
More informationCMSC 201 Fall 2018 Lab 04 While Loops
CMSC 201 Fall 2018 Lab 04 While Loops Assignment: Lab 04 While Loops Due Date: During discussion, September 24 th through September 27 th Value: 10 points (8 points during lab, 2 points for Pre Lab quiz)
More informationRoberto Clemente Middle School
Roberto Clemente Middle School For Students Entering Investigations into Mathematics Name: Rename Fractions, Percents, and Decimals To convert fractions into decimals, we start with a fraction, such as,
More informationTypes, lists & functions
Week 2 Types, lists & functions Data types If you want to write a program that allows the user to input something, you can use the command input: name = input (" What is your name? ") print (" Hello "+
More informationA.P. Computer Science A Summer Packet
A.P. Computer Science A Summer Packet Name: Advisory Teacher: AP Computer Science A Summer 2017 Dear Student, Computer Science is a growing subject of study, and one that leads to many opportunities in
More informationProblem Solving for Intro to Computer Science
Problem Solving for Intro to Computer Science The purpose of this document is to review some principles for problem solving that are relevant to Intro to Computer Science course. Introduction: A Sample
More informationB. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013
Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm
More information11.3 Function Prototypes
11.3 Function Prototypes A Function Prototype contains the function s return type, name and parameter list Writing the function prototype is declaring the function. float square (float x); In a function
More informationINTERNAL ACCOUNTS SURVEY
INTERNAL ACCOUNTS SURVEY Due June 30th Training Manual 5/6/2011 School Financial Services Internal Accounts Page i Table of Contents Completing the... 1 Buttons in the Internal Account Survey... 2 Login...
More informationGetting Started with Python
Fundamentals of Programming (Python) Getting Started with Python Sina Sajadmanesh Sharif University of Technology Some slides have been adapted from Python Programming: An Introduction to Computer Science
More informationFV Function Example Word Problem 1:
FV Function The FV Function calculates the future value of an investment, given a fixed interest rate, term, and periodic payment. You can use the FV Function to determine how much money you would have
More informationCSE 115. Introduction to Computer Science I
CSE 115 Introduction to Computer Science I Progress In UBInfinite? A. Haven't started B. Earned 3 stars in "Calling Functions" C. Earned 3 stars in "Defining Functions" D. Earned 3 stars in "Conditionals"
More informationCMSC 201 Spring 2018
CMSC 201 Spring 2018 Name Midterm Review Worksheet This worksheet is NOT guaranteed to cover every topic you might see on the exam. It is provided to you as a courtesy, as additional practice problems
More informationHello, World! EMT1111: Logic and Problem Solving Fall 2016 Dr. Mendoza
Hello, World! EMT1111: Logic and Problem Solving Fall 2016 Dr. Mendoza LESSON 4 (Labs): Python Overview IV SIMPLE PYTHON PROGRAMS II Lab Assignment 1 (poem2.py) Put the blocks below into the correct order
More informationCSCI 121: Anatomy of a Python Script
CSCI 121: Anatomy of a Python Script Python Scripts We start by a Python script: A text file containing lines of Python code. Each line is a Python statement. The Python interpreter (the python3 command)
More information3.2-Measures of Center
3.2-Measures of Center Characteristics of Center: Measures of center, including mean, median, and mode are tools for analyzing data which reflect the value at the center or middle of a set of data. We
More informationLecture 4: Basic I/O
Lecture 4: Basic I/O CS1068+ Introductory Programming in Python Dr Kieran T. Herley Department of Computer Science University College Cork 2017-2018 KH (21/09/17) Lecture 4: Basic I/O 2017-2018 1 / 20
More informationCS 303E Fall 2011 Exam 2 Solutions and Criteria November 2, Good Luck!
CS 303E Fall 2011 Exam 2 Solutions and Criteria November 2, 2011 Name: EID: Section Number: Friday discussion time (circle one): 9-10 10-11 11-12 12-1 2-3 Friday discussion TA(circle one): Wei Ashley Answer
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 informationChapter 1: Building Blocks of Programming
Chapter 1: Building Blocks of Programming (Completion Time: 4 weeks) Topics: Pseudocode An introductions into express computational ideas in a language that can be translated to code. Used correctly, thinking
More informationCMSC 201 Computer Science I for Majors
CMSC 201 Computer Science I for Majors Lecture 02 Intro to Python Syllabus Last Class We Covered Grading scheme Academic Integrity Policy (Collaboration Policy) Getting Help Office hours Programming Mindset
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 informationEnterprise Information Systems
Enterprise Information Systems Financial Management + Human Resources + Student Administration Posting Charges in Groups Business Process Guide August, 2004 Updates Date Action Page(s) 8/01/2004 Created.
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 informationSolving Recursive Sequences by Iteration
Solving Recursive Sequences by Iteration Lecture 25 Section 5.7 Robb T. Koether Hampden-Sydney College Thu, Feb 28, 2013 Robb T. Koether (Hampden-Sydney College) Solving Recursive Sequences by Iteration
More informationHOW TO INVENT AN ALGORITHM
HOW TO INVENT AN ALGORITHM Here are all the ideas from the previous topics combined into a strategy for inventing algorithms. How to Invent an Algorithm Step What? How? 1 Understand the problem by solving
More informationLab 4: Strings/Loops Due Apr 22 at midnight
Lab 4: Strings/Loops Due Apr 22 at midnight For this lab, you must work with a partner. All functions should be commented appropriately. If there are random numbers, the function must still be commen ted
More informationLesson 10. adding integers. 46 Lesson 10 ~ Adding Integers
adding integers Lesson 10 explore! integer chips Integer chips are helpful for modeling integer operations. Each blue chip will represent the integer 1. Each red chip will represent the integer 1. When
More information6. Defining Functions
6. Defining Functions Original Slides by John Zelle, 2010. (Minor modifications by the instructor) Intelligent Data Systems Lab. Seoul National University Objectives To understand why programmers divide
More informationIntroduction to Computers. Laboratory Manual. Experiment #3. Elementary Programming, II
Think Twice Code Once The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 LNGG 1003 Khaleel I. Shaheen Introduction to Computers Laboratory Manual Experiment
More informationPython Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science Chapter 3 Computing with Numbers Python Programming, 2/e 1 Objectives n To understand the concept of data types. n To be familiar with the basic
More informationCS 1803 Individual Homework 1 Python Practice Due: Wednesday, January 26th, before 6 PM Out of 100 points
CS 1803 Individual Homework 1 Python Practice Due: Wednesday, January 26th, before 6 PM Out of 100 points Files to submit: 1. HW1.py This is an INDIVIDUAL assignment! Collaboration at a reasonable level
More informationObjectives. Structure. Munster Programming Training
1 Munster Programming Training Objectives 1. To give a short and basic introduction to computer programming, web design, web animation and video production. 2. To foster interest in computers by encouraging
More information} Evaluate the following expressions: 1. int x = 5 / 2 + 2; 2. int x = / 2; 3. int x = 5 / ; 4. double x = 5 / 2.
Class #10: Understanding Primitives and Assignments Software Design I (CS 120): M. Allen, 19 Sep. 18 Java Arithmetic } Evaluate the following expressions: 1. int x = 5 / 2 + 2; 2. int x = 2 + 5 / 2; 3.
More informationCISC 181 Lab 2 (100 pts) Due: March 4 at midnight (This is a two-week lab)
CISC 181 Lab 2 (100 pts) Due: March 4 at midnight (This is a two-week lab) This lab should be done individually. Labs are to be turned in via Sakai by midnight on Tuesday, March 4 (the midnight between
More informationLecture 3. Input, Output and Data Types
Lecture 3 Input, Output and Data Types Goals for today Variable Types Integers, Floating-Point, Strings, Booleans Conversion between types Operations on types Input/Output Some ways of getting input, and
More informationCISC 110 Week 3. Expressions, Statements, Programming Style, and Test Review
CISC 110 Week 3 Expressions, Statements, Programming Style, and Test Review Today Review last week Expressions/Statements Programming Style Reading/writing IO Test review! Trace Statements Purpose is to
More informationIntegers. Integer Definition. Slide 1 / 237. Slide 2 / 237. Slide 3 / 237. Integer Unit Topics
Slide 1 / 237 Integers Integer Unit Topics Integer Definition Click on the topic to go to that section Absolute Value Comparing and Ordering Integers Integer Addition Turning Subtraction Into Addition
More informationPython Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science Chapter 3 Computing with Numbers Python Programming, 3/e 1 Objectives n To understand the concept of data types. n To be familiar with the basic
More informationFor Students Entering Investigations into Mathematics (IM)
E. Brooke Lee Middle School Summer Math For Students Entering Investigations into Mathematics (IM) 0 Summer 0 One goal of the Down County cluster of schools is to promote increased math performance at
More informationADD Identifier-1 TO Identifier-2 Literal-1. ADD Identifier-1. GIVING Identifier-2 Literal-1
The Basic Arithmetic Verbs All basic arithmetic operations of ADD, SUBTRACT, MULTIPLY, and DIVIDE require the fields operated on :- 1) Have numeric PICTURE clause 2) Actually have numeric data when the
More informationName Feb. 14, Closed Book/Closed Notes No electronic devices of any kind! 3. Do not look at anyone else s exam or let anyone else look at yours!
Name Feb. 14, 2018 CPTS 111 EXAM #1 Closed Book/Closed Notes No electronic devices of any kind! Directions: 1. Breathe in deeply, exhale slowly, and relax. 2. No hats or sunglasses may be worn during the
More informationClass overview today - September 6, 2017
Class overview today - September 6, 2017 A taste of Python Introductions and practical course information Elements of a computers and computer programs An introduction to our course computing environment
More informationMethods CSC 121 Fall 2014 Howard Rosenthal
Methods CSC 121 Fall 2014 Howard Rosenthal Lesson Goals Understand what a method is in Java Understand Java s Math Class Learn the syntax of method construction Learn both void methods and methods that
More informationCoached Instruction Supplement
Practice Coach PLUS Coached Instruction Supplement Mathematics 5 Practice Coach PLUS, Coached Instruction Supplement, Mathematics, Grade 5 676NASP Triumph Learning Triumph Learning, LLC. All rights reserved.
More information2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program
Chapter 2: Introduction to C++ 2.1 Parts of a C++ Program Copyright 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 2-1 Parts of a C++ Program Parts of a C++ Program // sample C++ program
More informationCITS 1401 Problem Solving & Programming
CITS 1401 Problem Solving & Programming Tim French Lecture 03 Numeric Data Processing (These slides are based on John Zelle s powerpoint slides for lectures accompanied with the text book) Objectives of
More informationJython. secondary. memory
2 Jython secondary memory Jython processor Jython (main) memory 3 Jython secondary memory Jython processor foo: if Jython a
More informationCPS122 Lecture: From Python to Java last revised January 4, Objectives:
Objectives: CPS122 Lecture: From Python to Java last revised January 4, 2017 1. To introduce the notion of a compiled language 2. To introduce the notions of data type and a statically typed language 3.
More informationMATH 099 HOMEWORK TWO
MATH 099 HOMEWORK TWO STUDENT S NAME 1) Matthew needs to rent a car for 1 day. He will be charged a daily fee of $30.00 in addition to 5 cents for every mile he drives. Assign the variable by letting x
More informationHello, World! EMT1111: Logic and Problem Solving Spring 2016 Dr. Mendoza
Hello, World! EMT1111: Logic and Problem Solving Spring 2016 Dr. Mendoza LESSON 7 (Labs): Complex Boolean Expressions and Loops Temperature with a function (temperature2.py) Write a Python program to ask
More informationAssignment 2: Due Friday Feb 13 at 6pm
CS1110 Spring 2015 Assignment 2: Due Friday Feb 13 at 6pm You must work either on your own or with one partner. If you work with a partner, you and your partner must first register as a group in CMS and
More informationName Date Class F 63 H 0.63 B 2.5 D G 6.3 I A 18 C F 60 H 0.6 B 1.8 D 0.018
Name Date Class 3-4 Practice A Multiplying Decimals Multiply. Choose the letter for the best answer. 1. 5 0.05 A 25 C 0.25 2. 9 0.7 F 63 H 0.63 B 2.5 D 0.025 G 6.3 I 0.063 3. 6 0.003 A 18 C 0.18 4. 5 1.2
More informationPython Intro GIS Week 1. Jake K. Carr
GIS 5222 Week 1 Why Python It s simple and easy to learn It s free - open source! It s cross platform IT S expandable!! Why Python: Example Consider having to convert 1,000 shapefiles into feature classes
More informationCS 115 Exam 1, Fall 2015 Thu. 09/24/2015
CS 115 Exam 1, Fall 2015 Thu. 09/24/2015 Name: Section: Rules and Hints You may use one handwritten 8.5 11 cheat sheet (front and back). This is the only additional resource you may consult during this
More informationCSI Lab 02. Tuesday, January 21st
CSI Lab 02 Tuesday, January 21st Objectives: Explore some basic functionality of python Introduction Last week we talked about the fact that a computer is, among other things, a tool to perform high speed
More information