#
#
#
#
CSS 177 - Prelab 1.py
Caitlyn Green
Following Coding Standards and Guidelines
This program accepts 2 integers and outputs 2 integers
import math
# Prompt the uer for the area of circle and are
CS177 Fall 2013 Midterm2 VERSION 02
November 6, 2013
/*
* Last name, First name:
* Your Purdue mail account:
* Your recitation section:
* Signature:
Midterm 1 consists of 25 True/False and multiple ch
CS177 Fall13 - Lab for week: 3
Lab Title: Using functions
Lab created by: Josh Fuerst
Outcomes
In this lab you will learn:
to define a function, and its input arguments, to accomplish a given task,
CS177 Python Programming
Chapter 10
Defining Classes
Adapted from John Zelles
Book Slides
1
Objectives
To appreciate how defining new classes
can provide structure for a complex
program.
To be able
Announcements
Project 5 is on the street. Second part is essay
questions for CoS teaming requirements.
The first part you do as a team
The CoS essay gets individually answered and has
separate subm
Announcements
Reading
Read Chapter 4 (functions)
Project1
Will be posted Friday, September 7
Due Saturday, September 15th 11:58pm
We will post instructions on how to turnin from home
Note: you can
Announcements
Midterm next week Monday
No class next Thursday
Review this Thursday
More than one way to solve a
problem
There is always more than one way to solve a problem.
You can walk differen
# Todo #4
def totalShopping (dic1, dic2, slist):
result = cfw_
total = 0
for i in range (len(slist):
#item exists in both dictionaries
if (slist[i] in dic1 and slist[i] in dic2):
#case #1 both items a
#
#
#
#
#
#
#
#
#
#
CS177 Fall 2012 - Project4
IMPORTANT: The following information MUST be filled!
Team leader:Alaniz, John, [email protected]
Team member 1: Skillman, Latasha, [email protected],
CS 17700
Loops and Lists
Week 5
1
Announcements
Register the iClicker on Blackboard
Project 2 will be due 11:59pm Oct 1st
Midterm will be on Wed Oct 3rd 8:00pm - 9:30pm in
EE129
Textbook part2 is
CS 177
Urllib Library & Recursion
Week 11
1
Announcements
Midterm next week Monday
No class next Thursday
Review this Thursday
2
ANY QUESTIONS?
3
Table of Contents
Urllib Library
Recursion
Expre
CS177 Fall12 - Lab for week: 13
Lab Title: Tuples and Dictionaries
Lab created by: Ruby Tahboub
Outcomes
In this lab you will learn how to make use of Tuples and Dictionaries
The lab assignment is org
Announcements
Project 5 is due Dec. 6.
Second part is essay questions for CoS teaming
requirements.
The first part you do as a team
The CoS essay gets individually answered and has
separate submis
CS 177
Matrices
Week 9
1
Announcements
Project 4: First Team Project
Homework: Pick a team or let us know you need a team
Instructions are on the course pages under projects
Teams should be of siz
CS 17700
Programming with
Multimedia Objects
Week 2
1
Announcements
Attendance: will be taken in every recitation.
iClickers: next week the use of iClickers will be
graded.
Project 1: will be assig
Announcements
Remember to do the survey; link on home page!
Do it today
Project 1 to be assigned end of next week
Details discussed in recitation next week
Class / Recitation slides available on t
CS177 Fall12 - Lab for week: 3
Lab Title: Using functions
Lab created by: Josh Fuerst
Outcomes
In this lab you will learn:
to define a function, and its input arguments, to accomplish a given task,
Announcements
Project 2 due next Monday
Next Tuesday is review session;
Midterm 1 on Wed., EE 129, 8:00 9:30pm
Project 3 to be posted Oct. 3 (next Wed)
Preparing for the Midterm:
Review Chapters
#Exercise 2
import numpy
import pylab
import math
#TODO 1
def SumOfEvens(myList):
total = 0
i=0
l=len(myList)
while (i<l):
if i%2=0:
total += i
i=i+1
print(total)
#TODO 2
def SubSequence(string1):
i =
Announcements
Project 2
Is now posted
Will be due on Oct. 1
Week 7
Midterm on Wed. Oct. 3 in EE 129
Come early, EE is a complicated building
Review session on Oct. 2
Text book part 2 out at Am
CS177 Fall12 - Lab for week: 9
Lab Title: Matrices and Images
Lab created by: Nadya Ortiz
Outcomes
In this lab you will practice the concept of matrices and you will work with images. More
specificall
import math # DO NOT MODIFY THIS STATEMENT!
# TODO 1
# Write the function ascii_output
# This function should present the input data in an easy to understand manner
# Something like this:
#Angles:
#
A
CS177 Fall12 - Lab for week: 7
Lab Title: Lists, Strings and Slicing
Lab created by: Nadya Ortiz
Outcomes
In this lab you will review the concept of List, how to create them, how to access them and fo
CS177 Fall12 - Lab for week: 6
Lab Title: Lists, Strings and Plotting
Lab created by: Ruby Tahboub
Outcomes
In this lab you will learn how to make use of Lists, Strings and 2D Plotting libraries: nump
#
#
#
#
The great commond divisor of two numbers m and n is equal to:
if m or n is equal to 1, then the result is 1
if m is equal to 0, then return n; if n is 0, then return m
in other cases, then gcd
#Lab 11
#Exercise 2
#TODO 1
def recursiveMul(m,n):
if m<0:
return print("the integer m MUST be nonnegative.")
if m=0:
return 0
return recursiveMul(m-1,n)+n
#TODO 2
def findMin(currNode):
if type(currN
SETUP INSTRUCTIONS
Do the steps Step 1 Step 6 described in the following.
Step 1
Login in Windows by using your CS Windows account (not the one of ITaP!) and
password.
If you have any problem, ask yo
History 105/GSLA 101: SURVEY OF GLOBAL HISTORY/GLOBAL AWARENESS
Spring 2017
Dr. Tithi Bhattacharya
PROFESSOR: Dr. Tithi Bhattacharya
Office: University Hall 309
Office Hours: Tuesday and Thursday: 10: