Exploring Python Basics

Size: px
Start display at page:

Download "Exploring Python Basics"

Transcription

1 CptS 111 Lab #1 Exploring Python Basics Learning Objectives: - Use the IDLE Shell window to run Python interactively - Use the IDLE Editor window to write a Python program (script) - Run Python programs in the Shell window - Write programs that make use of concepts from zybooks and save them to a directory/folder Lab Procedure: Each lab consists of tasks that must be done in order. When instructed to do so, you must demonstrate to your TA that you have completed a task or you won t get credit for it. Credit is binary: you either get credit or you don t. The same procedure will be followed for all labs. 1 Your TA will help you with the tasks as needed, particularly during this first lab. You are also free to ask for help from your classmates and to offer it as well. The initial tasks indicated by 0 s don t count for credit because they re housekeeping tasks. Task 0: If you haven t done so already, open an account on Piazza ( The Piazza forum will become very useful to you when you become stuck on programming assignments! Your instructors (I m including TAs as instructors) will also use it to communicate with you, e.g., letting you know whether they have to cancel their office hours. Task 00: Be sure that you have a correct version of Python on your laptop (3.4, 3.5, or 3.6). If you don t have a correct version, download it fromhttp://python.org/download. If you run into problems, ask for help. (Note to Mac users: You ll also need to install ActiveTcl from Task 000: Start the IDLE application. IDLE is an Integrated Development Environment (IDE) that allows you to run the Python interpreter. It has an interactive window called the Shell window where you can enter commands and run programs, and it has an Editor window that allows you to write and save programs (code/scripts). The IDLE IDE is simple compared to other IDEs, but it will still provide some help with commands as you will discover. Windows: To start IDLE, click the Start button in the lower left corner of the screen. If you don t see Python in the menu that appears, click on All Programs. Eventually you ll see a list of applications. Click on Python 3.x and then on IDLE (Python GUI). This should bring up a window labeled Tk Python Shell. The interactive Python prompt (>>>) indicates that you can enter Python commands because you re in the IDLE Shell window. 1 TAs can award partial credit if they think it s justified. 1

2 Mac OS X: In a Finder window look for a directory called Python 3.x in the Applications folder. Click on the directory, and then double click on IDLE. This will open up the IDLE Shell window where you can enter Python commands. Task 1: Using the IDLE Shell Window. IDLE allows you to have one Shell window and multiple Editor windows (we ll discuss Editor windows in the next Task). You use the Shell window to run Python interactively and to run programs that you ve created in an Editor window (you can also run Python programs, also called scripts, at the command line, but we won t cover this in CptS 111). Type the following commands into the Shell window: 1. help(print): As its name implies the help() function will provide help with certain Python constructs.. cat = : Declare the variablecat and assign it a value of. 3. type(cat): Returns the data type of the value stored in variablecat. What is it? 4. cat = dog : Reassign the stringdog to the variablecat. 5. type(cat): Now what iscat s type? 6. # This is a comment.: Comment lines start with an octothorpe. 7. type(cat) # No comment.: Comment lines can be placed next to a command, but they should be used carefully so comments don t get missed. Figure out how to get the following output: >>> Hello-O-World, and (another blank line) Goodbye-O-World! >>> Note that the interactive prompt signs and the blank line text are not to be reproduced but are included to let you know you re supposed to have blank lines in some places. Remember that you can usehelp(print) if you need help in figuring out how to print a blank line. Task : Using the IDLE Editor Window and Saving Files In this task you will use the editing capability of IDLE to edit a file and then save it to a directory. First open IDLE. Next click on thefile menu and then highlight and click onnew Window, or, alternatively, type Control-N (i.e., hold down the control key and then type the N key) (Windows)

3 or Command-N (Mac OS X). This will open up a new window labeleduntitled. This window is not interactive; it is the window in which you will edit your Python programs. Click on theuntitled window to select it. Next type the following # your name # today s date # CptS 111 # Lab #1, Task print("hello, World!") print("good-bye, World!") For your name, type your name, and for today s date, type today s date. Next you need to save this program. Click onfile and selectsave or type C-S. Windows: A new window will appear that requests information about how to save your file. Click themy Documents icon that appears on the left. Then create a new folder calledcs111 by clicking on the icon in the upper right that looks like a folder with a sparkle in one corner. A new folder will appear and the text will be selected. Type CS111. Now, double click on this new folder and create another new folder called Lab1. Now double click on Lab1. Find the field labeled File name: at the bottom of the window and type hello.py. Click on the Save button or else hit thereturn key. Mac OS X: After you type C-S and thesave window opens you will see a field in which you can type the name of the file. If you don t see columns of directories and files, click on the downward-pointing arrow. The window will expand and reveal some of your directories and files. You should see Documents centered just under the writing field. Click the button labeled New Folder and type CS111 in the space for the name and then click on Create. Click again on the New Folder button, type Lab1 in the writing field, and then click Create. Finally, typehello.py in thesave As: field, and click onsave. The edit window should now be labeled hello.py. Above this window, look for the Run pulldown menu. Click on Run and then on Run Module. Alternatively, just hit the F5 function key (Windows) or fn-f5 (Mac OS X). The results of your program should now appear in the interactive window (the Python Shell window). Demonstrate that you have successfully completed this task to your TA for credit. Task 3: Body Mass Index and Metric Dimensions The body mass index (BMI) is given by the formula weight kg (height m ) In the future we will just write C-X with the understanding that C- is the control key on a Windows machine and the command key on a Mac. 3

4 whereweight kg is weight (or, more precisely, mass) in kilograms andheight m is height in meters. What BMI tells us about one s body or health is subject to debate, but we won t worry about this. Instead, we ll write a program that will prompt a user for his or her weight in pounds and height in inches and then report the user s BMI, weight in kilograms, and height in meters. One pound corresponds to kilograms and one inch corresponds to meters. Thus, someone who weighs 160 pounds and is six feet tall (7 inches) has a mass of roughly 7.57 kilograms and a height of meters. Using IDLE, open a new file (C-N), and write a program that prompts the user for his or her weight and height (in pounds and inches). The user should be able to enterfloat values. Your program should convert values as necessary, calculate the BMI, and then report the BMI and the user s weight and height in metric units. For example, 1 Enter weight [pounds]: 160 Enter height [inches]: 7 3 BMI = Mass = [kilograms] 5 Height = [meters] Here s another example (this time withfloat inputs): 1 Enter weight [pounds]: Enter height [inches]: BMI = Mass = [kilograms] 5 Height = [meters] After your program is working properly, save it to yourlab1 directory. Then show it to your TA and demonstrate that it does what it should. Task 4: Calculating Your Grade We ll assume that all your assessment scores are on a 100-point scale. Then your overall score is given by: score = 0.17 exam exam+0.18 final +0.5 prog assign zypa+0.0 zyca+0.1 lab where exam1 and exam are your scores on the two midterms, final is your score on the final exam,prog assign is your programming assignments score, zypa is your zybooks participation activities score, zyca is your zybooks challenge activities score, andlab is your labs score. Write a program that will prompt the user for all their scores one at a time and report their final overall score. Here are some examples: 1 Please enter the following information: 3 Exam 1 score: Exam score: 100 4

5 5 Final exam score: Programming assignments score: 0 7 zybooks participation activities score: zybooks challenge activities score: Labs score: Your score for CptS 111 is: Please enter the following information: 3 Exam 1 score: 83 4 Exam score: 84 5 Final exam score: 84 6 Programming assignments score: zybooks participation activities score: zybooks challenge activities score: Labs score: Your score for CptS 111 is: When you think your program is working properly, show it to your TA and demonstrate that it works. Be sure to save it to your Lab1 directory. Task 5: Elapsed Time in Seconds and Hours Write a program that calculates the total amount of elapsed time in both seconds and hours. The program should prompt the user for an integer number of hours, an integer number of minutes, and an integer number of seconds. It should compute the total number of seconds as an integer value, and then it should compute the total number of hours as a floating-point value. The output should be separated from the input by a blank line. Here s an example result: 1 Enter the number of elapsed hours: 4 Enter the number of elapsed minutes: 31 3 Enter the number of elapsed seconds: The total number of elapsed seconds: The total number of elapsed hours: 4.5 When you re done with your program, save it to your Lab1 directory, and make sure your TA has given you credit for this task. Congratulations on finishing your first lab! If there s time left, help others who are still struggling or else do your zybooks reading. 5

Exploring Python Basics

Exploring Python Basics CptS 111 Lab #1 Fall 2017 Exploring Python Basics Learning Objectives: - Use the IDLE Shell window to run Python interactively - Use the IDLE Editor window to write a Python program (script) - Run Python

More information

CS1110 Lab 1 (Jan 27-28, 2015)

CS1110 Lab 1 (Jan 27-28, 2015) CS1110 Lab 1 (Jan 27-28, 2015) First Name: Last Name: NetID: Completing this lab assignment is very important and you must have a CS 1110 course consultant tell CMS that you did the work. (Correctness

More information

Practice with Functions

Practice with Functions CptS 111 Lab # Practice with Functions Learning Objectives: Be able to define functions Be able to call functions Be able to pass arguments into functions Be able to return values from functions Be able

More information

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) First Name: Last Name: NetID:

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28)   First Name: Last Name: NetID: CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) http://www.cs.cornell.edu/courses/cs1110/2016sp/labs/lab01/lab01.pdf First Name: Last Name: NetID: Goals. Learning a computer language is a lot like learning

More information

CS 115 Exam 1, Fall 2015 Thu. 09/24/2015

CS 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 information

More on Conditionals: if-elif-else, Boolean Expressions

More on Conditionals: if-elif-else, Boolean Expressions CptS 111 Lab #6 More on Conditionals: if-elif-else, Boolean Expressions Learning Objectives: By the end of this lab you should: be comfortable using if-elif-else constructs be comfortable using logical/boolean

More information

Laboratory Exercise #0

Laboratory Exercise #0 Laboratory Exercise #0 This assignment focuses on the mechanics of installing and using Python. The deadline for Mimir submission is 11:59 PM on Monday, January 8. 1. Complete the steps given below to

More information

CSCI 121: Anatomy of a Python Script

CSCI 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 information

ASCII Art. Introduction: Python

ASCII Art. Introduction: Python Python 1 ASCII Art All Code Clubs must be registered. Registered clubs appear on the map at codeclub.org.uk - if your club is not on the map then visit jumpto.cc/18cplpy to find out what to do. Introduction:

More information

Lab 1: Setup 12:00 PM, Sep 10, 2017

Lab 1: Setup 12:00 PM, Sep 10, 2017 CS17 Integrated Introduction to Computer Science Hughes Lab 1: Setup 12:00 PM, Sep 10, 2017 Contents 1 Your friendly lab TAs 1 2 Pair programming 1 3 Welcome to lab 2 4 The file system 2 5 Intro to terminal

More information

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python

More information

CS 1301 Exam 1 Spring 2014

CS 1301 Exam 1 Spring 2014 CS 1301 Exam 1 Spring 2014 Name : Grading TA: Integrity: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate help during the taking of this exam

More information

Using IDLE for

Using IDLE for Using IDLE for 15-110 Step 1: Installing Python Download and install Python using the Resources page of the 15-110 website. Be sure to install version 3.3.2 and the correct version depending on whether

More information

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners Getting Started Excerpted from Hello World! Computer Programming for Kids and Other Beginners EARLY ACCESS EDITION Warren D. Sande and Carter Sande MEAP Release: May 2008 Softbound print: November 2008

More information

Chris Simpkins (Georgia Tech) CS 2316 Data Manipulation for Engineers Python Overview 1 / 9

Chris Simpkins (Georgia Tech) CS 2316 Data Manipulation for Engineers Python Overview 1 / 9 http://xkcd.com/353/ Chris Simpkins (Georgia Tech) CS 2316 Data Manipulation for Engineers Python Overview 1 / 9 Python Python is a general-purpose programming language, meaning you can write any kind

More information

What you get When you install Python for your computer, you get a number of features:

What you get When you install Python for your computer, you get a number of features: Lab 1 CS161 Exercise 1: In the beginning Why Python? Python is a programming language that was first conceived by Guido van Rossum in the late 1980 s and in 1990. While there are a number of programming

More information

Barchard Introduction to SPSS Marks

Barchard Introduction to SPSS Marks Barchard Introduction to SPSS 21.0 3 Marks Purpose The purpose of this assignment is to introduce you to SPSS, the most commonly used statistical package in the social sciences. You will create a new data

More information

Your Name: Section: INTRODUCTION TO STATISTICAL REASONING Computer Lab #4 Scatterplots and Regression

Your Name: Section: INTRODUCTION TO STATISTICAL REASONING Computer Lab #4 Scatterplots and Regression Your Name: Section: 36-201 INTRODUCTION TO STATISTICAL REASONING Computer Lab #4 Scatterplots and Regression Objectives: 1. To learn how to interpret scatterplots. Specifically you will investigate, using

More information

Python Input, output and variables. Lecture 23 COMPSCI111/111G SS 2018

Python Input, output and variables. Lecture 23 COMPSCI111/111G SS 2018 Python Input, output and variables Lecture 23 COMPSCI111/111G SS 2018 1 Today s lecture What is Python? Displaying text on screen using print() Variables Numbers and basic arithmetic Getting input from

More information

Barchard Introduction to SPSS Marks

Barchard Introduction to SPSS Marks Barchard Introduction to SPSS 22.0 3 Marks Purpose The purpose of this assignment is to introduce you to SPSS, the most commonly used statistical package in the social sciences. You will create a new data

More information

Project 1 Balanced binary

Project 1 Balanced binary CMSC262 DS/Alg Applied Blaheta Project 1 Balanced binary Due: 7 September 2017 You saw basic binary search trees in 162, and may remember that their weakness is that in the worst case they behave like

More information

CSC 015: FUNDAMENTALS OF COMPUTER SCIENCE I

CSC 015: FUNDAMENTALS OF COMPUTER SCIENCE I CSC 015: FUNDAMENTALS OF COMPUTER SCIENCE I Lecture 1: Class Introduction DR. BO TANG ASSISTANT PROFESSOR HOFSTRA UNIVERSITY 1 9/7/16 CSC15 - Python OUTLINE What is Computer Science? What is this Class

More information

CS 1110, LAB 1: EXPRESSIONS AND ASSIGNMENTS First Name: Last Name: NetID:

CS 1110, LAB 1: EXPRESSIONS AND ASSIGNMENTS   First Name: Last Name: NetID: CS 1110, LAB 1: EXPRESSIONS AND ASSIGNMENTS http://www.cs.cornell.edu/courses/cs1110/2018sp/labs/lab01/lab01.pdf First Name: Last Name: NetID: Learning goals: (1) get hands-on experience using Python in

More information

CMSC 201 Fall 2018 Lab 04 While Loops

CMSC 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 information

CS 1110, LAB 1: PYTHON EXPRESSIONS.

CS 1110, LAB 1: PYTHON EXPRESSIONS. CS 1110, LAB 1: PYTHON EXPRESSIONS Name: Net-ID: There is an online version of these instructions at http://www.cs.cornell.edu/courses/cs1110/2012fa/labs/lab1 You may wish to use that version of the instructions.

More information

BCH339N Systems Biology/Bioinformatics Spring 2018 Marcotte A Python programming primer

BCH339N Systems Biology/Bioinformatics Spring 2018 Marcotte A Python programming primer BCH339N Systems Biology/Bioinformatics Spring 2018 Marcotte A Python programming primer Python: named after Monty Python s Flying Circus (designed to be fun to use) Python documentation: http://www.python.org/doc/

More information

CS 1301 Exam 1 Spring 2014

CS 1301 Exam 1 Spring 2014 CS 1301 Exam 1 Spring 2014 Name : Grading TA: Integrity: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate help during the taking of this exam

More information

CMSC 201 Spring 2017 Lab 01 Hello World

CMSC 201 Spring 2017 Lab 01 Hello World CMSC 201 Spring 2017 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 5th by 8:59:59 PM Value: 10 points At UMBC, our General Lab (GL) system is designed to grant students the

More information

6.S189 Homework 1. What to turn in. Exercise 1.1 Installing Python. Exercise 1.2 Hello, world!

6.S189 Homework 1. What to turn in. Exercise 1.1 Installing Python. Exercise 1.2 Hello, world! 6.S189 Homework 1 http://web.mit.edu/6.189/www/materials.html What to turn in Do the warm-up problems for Days 1 & 2 on the online tutor. Complete the problems below on your computer and get a checkoff

More information

1) Log on to the computer using your PU net ID and password.

1) Log on to the computer using your PU net ID and password. CS 150 Lab Logging on: 1) Log on to the computer using your PU net ID and password. Connecting to Winter: Winter is the computer science server where all your work will be stored. Remember, after you log

More information

Writing and Running Programs

Writing and Running Programs Introduction to Python Writing and Running Programs Working with Lab Files These instructions take you through the steps of writing and running your first program, as well as using the lab files in our

More information

Part III Appendices 165

Part III Appendices 165 Part III Appendices 165 Appendix A Technical Instructions Learning Outcomes This material will help you learn how to use the software you need to do your work in this course. You won t be tested on it.

More information

LAB #5 Intro to Linux and Python on ENGR

LAB #5 Intro to Linux and Python on ENGR LAB #5 Intro to Linux and Python on ENGR 1. Pre-Lab: In this lab, we are going to download some useful tools needed throughout your CS career. First, you need to download a secure shell (ssh) client for

More information

CS 190C: Introduction to Computational Thinking

CS 190C: Introduction to Computational Thinking CS 190C: Introduction to Computational Thinking http://secant.cs.purdue.edu/cs190c:start Python Programming: An Introduction to Computer Science Zelle s book is a gentle introductory computing text used

More information

Week 1: Introduction to R, part 1

Week 1: Introduction to R, part 1 Week 1: Introduction to R, part 1 Goals Learning how to start with R and RStudio Use the command line Use functions in R Learning the Tools What is R? What is RStudio? Getting started R is a computer program

More information

Python lab session 1

Python 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 information

CMSC 201 Fall 2016 Lab 09 Advanced Debugging

CMSC 201 Fall 2016 Lab 09 Advanced Debugging CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working

More information

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are:

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are: INTRODUCTION Your first daily assignment is to modify the program test.py to make it more friendly. But first, you need to learn how to edit programs quickly and efficiently. That means using the keyboard

More information

Blackboard for Faculty: Grade Center (631) In this document:

Blackboard for Faculty: Grade Center (631) In this document: 1 Blackboard for Faculty: Grade Center (631) 632-2777 Teaching, Learning + Technology Stony Brook University In this document: blackboard@stonybrook.edu http://it.stonybrook.edu 1. What is the Grade Center?..

More information

CSI Lab 02. Tuesday, January 21st

CSI 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

Name 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, 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 information

A computer program is a set of instructions that causes a computer to perform some kind of action. It isn t the physical parts of a computer like the

A computer program is a set of instructions that causes a computer to perform some kind of action. It isn t the physical parts of a computer like the 1 Not All Snakes Slither A computer program is a set of instructions that causes a computer to perform some kind of action. It isn t the physical parts of a computer like the wires, microchips, cards,

More information

Moodle 3.1 Backup and Restore

Moodle 3.1 Backup and Restore Moodle 3.1 Backup and Restore You can only restore a backup into courses that you are enrolled in as a teacher. Be careful when restoring a course don t select Delete the contents of this course and then

More information

The >>> is a Python prompt indicating that Python is ready for us to give it a command. These commands are called statements.

The >>> 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 information

Welcome to Moodle! How To Moodle

Welcome to Moodle! How To Moodle Welcome to Moodle! The MH Vicars School Moodle site is where you ll find all the online components of your Vicars curriculum. For the following year, this will include quizzes and access to multimedia

More information

Programming Project 1

Programming Project 1 Programming Project 1 Handout 6 CSCI 134: Fall, 2016 Guidelines A programming project is a laboratory that you complete on your own, without the help of others. It is a form of take-home exam. You may

More information

CS 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 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 information

appstats6.notebook September 27, 2016

appstats6.notebook September 27, 2016 Chapter 6 The Standard Deviation as a Ruler and the Normal Model Objectives: 1.Students will calculate and interpret z scores. 2.Students will compare/contrast values from different distributions using

More information

Midterm 1 1 /8 2 /9 3 /9 4 /12 5 /10. Faculty of Computer Science. Term: Fall 2018 (Sep4-Dec4) Student ID Information. Grade Table Question Score

Midterm 1 1 /8 2 /9 3 /9 4 /12 5 /10. Faculty of Computer Science. Term: Fall 2018 (Sep4-Dec4) Student ID Information. Grade Table Question Score Faculty of Computer Science Page 1 of 8 Midterm 1 Term: Fall 2018 (Sep4-Dec4) Student ID Information Last name: First name: Student ID #: CS.Dal.Ca userid: Course ID: CSCI 2132 Course Title: Instructor:

More information

APPM 2460 Matlab Basics

APPM 2460 Matlab Basics APPM 2460 Matlab Basics 1 Introduction In this lab we ll get acquainted with the basics of Matlab. This will be review if you ve done any sort of programming before; the goal here is to get everyone on

More information

Using Accommodate. Information for SAS Students at UofG

Using Accommodate. Information for SAS Students at UofG Using Accommodate Information for SAS Students at UofG 1 From the SAS home page, click on Exam Centre then Accommodate (Exam Bookings). 2 You ll be prompted to sign in using your UofG central login, which

More information

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications Hello World! Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande Chapter 1 Copyright 2009 Manning Publications brief contents Preface xiii Acknowledgments xix About this

More information

Using Accommodate. Information for SAS Students at UofG

Using Accommodate. Information for SAS Students at UofG Using Accommodate Information for SAS Students at UofG 1 From the SAS home page, click on Exam Centre then Accommodate (Exam Bookings). 2 You ll be prompted to sign in using your UofG central login, which

More information

Chapter 3 Analyzing Normal Quantitative Data

Chapter 3 Analyzing Normal Quantitative Data Chapter 3 Analyzing Normal Quantitative Data Introduction: In chapters 1 and 2, we focused on analyzing categorical data and exploring relationships between categorical data sets. We will now be doing

More information

CS 220: Introduction to Parallel Computing. Beginning C. Lecture 2

CS 220: Introduction to Parallel Computing. Beginning C. Lecture 2 CS 220: Introduction to Parallel Computing Beginning C Lecture 2 Today s Schedule More C Background Differences: C vs Java/Python The C Compiler HW0 8/25/17 CS 220: Parallel Computing 2 Today s Schedule

More information

CMSC 201 Spring 2018 Lab 01 Hello World

CMSC 201 Spring 2018 Lab 01 Hello World CMSC 201 Spring 2018 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 4th by 8:59:59 PM Value: 10 points At UMBC, the GL system is designed to grant students the privileges

More information

Getting Started with Python and the PyCharm IDE

Getting Started with Python and the PyCharm IDE New York University School of Continuing and Professional Studies Division of Programs in Information Technology Getting Started with Python and the PyCharm IDE Please note that if you already know how

More information

Python Input, output and variables

Python Input, output and variables Today s lecture Python Input, output and variables Lecture 22 COMPSCI111/111G SS 2016! What is Python?! Displaying text on screen using print()! Variables! Numbers and basic arithmetic! Getting input from

More information

Science One CS : Getting Started

Science One CS : Getting Started Science One CS 2018-2019: Getting Started Note: if you are having trouble with any of the steps here, do not panic! Ask on Piazza! We will resolve them this Friday when we meet from 10am-noon. You can

More information

All Native Inc Customer Web Portal

All Native Inc Customer Web Portal All Native Inc Customer Web Portal Page 1 of 10 esupport Login Page (See screen shot below) Login Page: The login page is where you log into the web portal using your provided User ID and Password. If

More information

Python Input, output and variables. Lecture 22 COMPSCI111/111G SS 2016

Python Input, output and variables. Lecture 22 COMPSCI111/111G SS 2016 Python Input, output and variables Lecture 22 COMPSCI111/111G SS 2016 Today s lecture u What is Python? u Displaying text on screen using print() u Variables u Numbers and basic arithmetic u Getting input

More information

PBWORKS - Student User Guide

PBWORKS - Student User Guide PBWORKS - Student User Guide Fall 2009 PBworks - Student Users Guide This guide provides the basic information you need to get started with PBworks. If you don t find the help you need in this guide, please

More information

Lecture 7. Processing Development Environment (or PDE)

Lecture 7. Processing Development Environment (or PDE) Lecture 7 Processing Development Environment (or PDE) Processing Class Overview What is Processing? Installation and Intro. Serial Comm. from Arduino to Processing Drawing a dot & controlling position

More information

You Need an Interpreter! Comp Spring /28/08 L10 - An Interpreter

You Need an Interpreter! Comp Spring /28/08 L10 - An Interpreter You Need an Interpreter! Closing the GAP Thus far, we ve been struggling to speak to computers in their language, maybe its time we spoke to them in ours How high can we rasie the level of discourse? We

More information

Introduction to 3D computer modeling

Introduction to 3D computer modeling OBJECTIVES In this course you will construct computer models to: Introduction to 3D computer modeling Visualize motion in 3D Visualize vector quantities like position, momentum, and force in 3D Do calculations

More information

Submitting Assignments

Submitting Assignments Submitting Assignments Blackboard s assignments feature allows the instructor to assign coursework for you to submit electronically. First, you need to locate the assignment. Your instructor will place

More information

Welcome to the Using Objects lab!

Welcome to the Using Objects lab! Welcome to the Using Objects lab! Learning Outcomes By the end of this lab: 1. Be able to define chapter 3 terms. 2. Describe reference variables and compare with primitive data type variables. 3. Draw

More information

Introduction to Wimba

Introduction to Wimba Introduction to Wimba Wimba Voice Tools Wimba Voice Tools is a suite of applications that allow you to record and send voice over the Internet. The 5 Voice Tools are: Oral Assessment Builder: Design questions

More information

CS10001: Computer Literacy Lab Assignment #4

CS10001: Computer Literacy Lab Assignment #4 CS10001: Computer Literacy Lab Assignment #4 Lab Policies: Lab attendance is mandatory. You are given the opportunity to use the university s resources to start and complete the assignment during the lab

More information

PYOTE installation (Windows) 20 October 2017

PYOTE installation (Windows) 20 October 2017 PYOTE installation (Windows) 20 October 2017 Outline of installation: 1. Install Anaconda from Internet 2. Install PYOTE from Internet 3. Test PYOTE installation 4. Add desktop icon to simplify starting

More information

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

ENCM 339 Fall 2017: Editing and Running Programs in the Lab page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a

More information

CMSC 201 Spring 2016 Lab 04 For Loops

CMSC 201 Spring 2016 Lab 04 For Loops CMSC 201 Spring 2016 Lab 04 For Loops Assignment: Lab 04 For Loops Due Date: During discussion, February 29 th through March 3 rd Value: 10 points Part 1: Lists Lists are an easy way to hold lots of individual

More information

1. The Normal Distribution, continued

1. The Normal Distribution, continued Math 1125-Introductory Statistics Lecture 16 10/9/06 1. The Normal Distribution, continued Recall that the standard normal distribution is symmetric about z = 0, so the area to the right of zero is 0.5000.

More information

CS Introduction to Computational and Data Science. Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Spring 2017

CS Introduction to Computational and Data Science. Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Spring 2017 CS 133 - Introduction to Computational and Data Science Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Spring 2017 Previous class We have learned the path and file system.

More information

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas Introduction to Python Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas If you have your own PC, download and install a syntax-highlighting text editor and Python

More information

Welcome to the Using Objects lab!

Welcome to the Using Objects lab! Welcome to the Using Objects lab! Learning Outcomes By the end of this lab: 1. Be able to define chapter 3 terms. 2. Describe reference variables and compare with primitive data type variables. 3. Draw

More information

Introduction to Programming

Introduction to Programming Introduction to Programming Python Lab 5: Strings and Output PythonLab5 lecture slides.ppt 30 October 2018 Ping Brennan (p.brennan@bbk.ac.uk) 1 Getting Started Create a new folder in your disk space with

More information

COS 116 The Computational Universe Laboratory 8: Digital Logic II

COS 116 The Computational Universe Laboratory 8: Digital Logic II COS 116 The Computational Universe Laboratory 8: Digital Logic II In this lab you ll learn that, using only AND, OR, and NOT gates, you can build a circuit that can add two numbers. If you get stuck at

More information

CSC105, Introduction to Computer Science I. Introduction. Perl Directions NOTE : It is also a good idea to

CSC105, Introduction to Computer Science I. Introduction. Perl Directions NOTE : It is also a good idea to CSC105, Introduction to Computer Science Lab03: Introducing Perl I. Introduction. [NOTE: This material assumes that you have reviewed Chapters 1, First Steps in Perl and 2, Working With Simple Values in

More information

CS240: Programming in C

CS240: Programming in C CS240: Programming in C Lecture 1: Class overview. Cristina Nita-Rotaru Lecture 1/ Fall 2013 1 WELCOME to CS240 Cristina Nita-Rotaru Lecture 1/ Fall 2013 2 240 Team Instructor: Cristina Nita-Rotaru Special

More information

CSCE 110: Programming I

CSCE 110: Programming I CSCE 110: Programming I Sample Questions for Exam #1 February 17, 2013 Below are sample questions to help you prepare for Exam #1. Make sure you can solve all of these problems by hand. For most of the

More information

Welcome to MCS 360. content expectations. using g++ input and output streams the namespace std. Euclid s algorithm the while and do-while statements

Welcome to MCS 360. content expectations. using g++ input and output streams the namespace std. Euclid s algorithm the while and do-while statements Welcome to MCS 360 1 About the Course content expectations 2 our first C++ program using g++ input and output streams the namespace std 3 Greatest Common Divisor Euclid s algorithm the while and do-while

More information

CS 051 Homework Laboratory #2

CS 051 Homework Laboratory #2 CS 051 Homework Laboratory #2 Dirty Laundry Objective: To gain experience using conditionals. The Scenario. One thing many students have to figure out for the first time when they come to college is how

More information

Boardmaker 5.0 (Macintosh) Creating a Story Response Board. Introduction. Case Study. Learning Objectives

Boardmaker 5.0 (Macintosh) Creating a Story Response Board. Introduction. Case Study. Learning Objectives Boardmaker 5.0 (Macintosh) Creating a Story Response Board Introduction Boardmaker is an excellent program to use for creating resources to support students as they develop literacy skills. Its large electronic

More information

Tips from the experts: How to waste a lot of time on this assignment

Tips from the experts: How to waste a lot of time on this assignment Com S 227 Spring 2018 Assignment 1 100 points Due Date: Friday, September 14, 11:59 pm (midnight) Late deadline (25% penalty): Monday, September 17, 11:59 pm General information This assignment is to be

More information

Lab 19: Excel Formatting, Using Conditional Formatting and Sorting Records

Lab 19: Excel Formatting, Using Conditional Formatting and Sorting Records Lab 19: Excel Formatting, Using Conditional Formatting and Sorting Records () CONTENTS 1 Lab Topic... 2 1.1 In-Lab... 2 1.1.1 In-Lab Materials... 2 1.1.2 In-Lab Instructions... 2 1.2 Out-Lab... 9 1.2.1

More information

CSCI 111 First Midterm Exam Spring Solutions 09.05am 09.55am, Wednesday, March 14, 2018

CSCI 111 First Midterm Exam Spring Solutions 09.05am 09.55am, Wednesday, March 14, 2018 QUEENS COLLEGE Department of Computer Science CSCI 111 First Midterm Exam Spring 2018 03.14.18 Solutions 09.05am 09.55am, Wednesday, March 14, 2018 Problem 1 Write a complete C++ program that asks the

More information

Intermediate Programming, Spring Misha Kazhdan

Intermediate Programming, Spring Misha Kazhdan 600.120 Intermediate Programming, Spring 2017 Misha Kazhdan Outline Unix/Linux command line Basics of the Emacs editor Compiling and running a simple C program Cloning a repository Connecting to ugrad

More information

SIS offline. Getting Started

SIS offline. Getting Started SIS offline We highly recommend using Firefox version 3.0 or newer with the offline SIS. Internet Explorer is specifically not recommended because of its noncompliance with internet standards. Getting

More information

COMP Summer 2015 (A01) Jim (James) Young jimyoung.ca

COMP Summer 2015 (A01) Jim (James) Young jimyoung.ca COMP 1010- Summer 2015 (A01) Jim (James) Young young@cs.umanitoba.ca jimyoung.ca Hello! James (Jim) Young young@cs.umanitoba.ca jimyoung.ca office hours T / Th: 17:00 18:00 EITC-E2-582 (or by appointment,

More information

Laboratory 1: Eclipse and Karel the Robot

Laboratory 1: Eclipse and Karel the Robot Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also

More information

15-110: Principles of Computing, Spring 2018

15-110: Principles of Computing, Spring 2018 15-110: Principles of Computing, Spring 2018 Programming Assignment 11 (PA11) Due: Tuesday, May 1 by 9PM IMPORTANT ANNOUNCEMENT You cant drop this assignment even if it is your lowest PA score. Failure

More information

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems.

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. Plan for the rest of the semester: Programming We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. We saw earlier that computers

More information

Unit 7: Algorithms and Python CS 101, Fall 2018

Unit 7: Algorithms and Python CS 101, Fall 2018 Unit 7: Algorithms and Python CS 101, Fall 2018 Learning Objectives After completing this unit, you should be able to: Identify whether a sequence of steps is an algorithm in the strict sense. Explain

More information

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas

Introduction to Python. Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas Introduction to Python Genome 559: Introduction to Statistical and Computational Genomics Prof. James H. Thomas If you have your own PC, download and install a syntax-highlighting text editor and Python

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1 Notice Class Website http://www.cs.umb.edu/~jane/cs114/ Reading Assignment Chapter 1: Introduction to Java Programming

More information

Pupil Name. Year. Teacher. Target Level. Key Stage 3 Self-Assessment Year 9 Python. Spelling Test No 3. Spelling Test No 2. Spelling Test No 1

Pupil Name. Year. Teacher. Target Level. Key Stage 3 Self-Assessment Year 9 Python. Spelling Test No 3. Spelling Test No 2. Spelling Test No 1 Pupil Name Year Teacher Target Level Spelling Test No 1 Spelling Test No 2 Spelling Test No 3 1) 2) 3) 4) 5) 1) 2) 3) 4) 5) 1) 2) 3) 4) 5) Spelling Test No 4 Spelling Test No 5 Spelling Test No 6 1) 2)

More information

MS Word Basics. Groups within Tabs

MS Word Basics. Groups within Tabs MS Word Basics Instructor: Bev Alderman L e t s G e t S t a r t e d! Open and close MS Word Open Word from the desktop of your computer by Clicking on the Start>All programs>microsoft Office >Word 2010

More information

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, January 20 th, before 11:55 PM Out of 100 points

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, January 20 th, before 11:55 PM Out of 100 points CS 2316 Individual Homework 1 Python Practice Due: Wednesday, January 20 th, before 11:55 PM Out of 100 points Files to submit: 1. HW1.py For Help: - TA Helpdesk Schedule posted on class website. - Email

More information

UPDATING SOCRATES Version Build May 2018

UPDATING SOCRATES Version Build May 2018 UPDATING SOCRATES Version 3.5.8.7 Build 10124 May 2018 10124 Update ALL USERS... 1 MAC USERS... 1 When to run the update... 1 XP USERS... 1 How often to update... 1 Registering to access the client section

More information