Krista Sachse 4/5/08
Writing The Essay Professor Victoria Olsen
Progression #3: Your Writer
"Household Words," p. 202-203:
But we manage, those of us who are lucky enough, to walk on by. We live with pronounced class difference in a nation that was
def convert(s):
length=len(s)
n=0
ans = '
for c in s:
if n = 0:
ans = ans + c
ans = ans + '.'
n = 1
else:
ans = ans + c
print(ans,'X 10^', (length-1)
def main():
u=input('type your string please: \n')
print('you typed: \n', u)
print('in scientific notatio
s=input('type your string please \n')
length=len(s)
n=0
ans = '
for c in s:
if n = 0:
ans = ans + c
ans = ans + '.'
n=1
else:
ans = ans + c
print(s)
print(ans,'X 10^', (length-1), end = ')
def subtract(s):
s = str(s)
big = max(s)
small = min(s)
sum = 0
for c in s:
sum = sum + int(c)
mid = sum - int(big) - int(small)
ascend = small + str(mid) + big
print(ascend)
descend = big + str(mid)+ small
print(descend)
subtract = int(descend) - int(asc
2.1 Geometric Progressions
For Fred Greenleafs QR
Textbook
Compiled by Sam Marateck 2009
1
Examples of geometric progressions
A geometric progression is a sequence of
numbers in which a given number is a constant
ratio, lets say a, times the previous num
Combinations & Counting II
Samuel Marateck 2009
1
How many 4-letter words can we form from
the letters ABCD w/o replacements?
2
How many 4-letter words can we form from
the letters ABCD?
This is an example of an ordered list without
replacements.
3
How ma
Combination Symbols
A supplement to Greenleafs QR Text
Compiled by Samuel Marateck 2009
1
How many 4-card hands consisting of
1 king and 3 queens can be chosen
from a deck?
2
How many 4-card hands consisting of
1 king and 3 queens can be chosen
from a dec
Counting Problems
From Fred Greenleafs QR book
Compiled by Samuel Marateck
1
P(success) = # of successful outcomes
# of possible outcomes
2
Given an urn with 20 marbles 8 of which are
green, what is the probability of choosing
a green one?
3
P(green) = #
Some more probability
Samuel Marateck 2009
1
Another way of calculating card probabilities.
Whats the probability of choosing a hand of
cards with three aces?
2
Whats the probability of choosing a hand of
cards with three aces? Lets assume that the
order
Some trigonometry problems
From Fred Greenleafs QR text
Samuel Marateck
1
Problem 1
Because angular measure is used to
calculate arc length, angles are measured
In radians. There are 2 radians in a circle
since the circumference of a unit circle is
2 . Th
Functions
Samuel Marateck 2010
1
A function is a set of statements that can be
referred by the function name. To start
writing a function.
1. In the File menu in the shell choose New
Window.
2. In the new window start by writing the header
def name():
whe
String processing
Samuel Marteck 2010
1
A character in a string can be accessed by
indicating its subscript, also called index .
For instance, how do you get the c in
s =ac453 ?
2
character a
c
4
5
3
index
1
2
3
4
0
3
How do you get the c in s =ac453 ?
S[
Chapter 4
The while loop and boolean
operators
Samuel Marateck 2010
1
Boolean operators are used in boolean
expressions and operate on other boolean
expressions. They are the and, or and not.
For instance:
X>3 and y<=4
X>3 or y<=4
not(X>3 and y<=4)
2
If a
Python
Chapter 3
Reading strings and printing.
Samuel Marateck
1
To write and run a program:
1. On the shells file menu click
New Window
2. Type your program.
3. Use a # to begin a comment.
4. Use the Edit window to edit your program.
5. Save your progra
Python
Chapter 4
Branching statements and loops
Samuel Marateck 2010
1
Python
Chapter 4
Branching statements and loops
Samuel Marateck 2010
2
The type of a variable is determined by what
is defined by the type of the literal assigned
to it. Example:
val
Python
Chapter 2
Samuel Marateck, 2010
1
After you install the compiler, an icon
labeled IDLE (Python GUI) will appear on
the screen. If you click it, a window will
appear on the screen with some copyright
information. This window is called the shell.
ID
#Homework Assignment 1
number = int(input("Type a number please\n")
firstOne = number/100
secondOne = number%100
sum = firstOne+secondOne
print('The number is \n', number, 'The first half is ', firstOne, 'The second
half is ', secondOne, 'The sum of the f
#Selena Chen
#Homework Assignment 7
def main():
num = 20
prod = 1
print("Number \t Probibility of NO Coincidence \t Probability of
Coincidence")
for j in range (1,24):
prod = abs(prod * (num/20)
num = num - 1
end = 1 - prod
if (j > 0 and j < 4) or (j > 20
With the sixth largest private fortune in the world, Charles Foster Kane was always in
control. Even growing up as a child, he assumed a position of dominance in most of his
relationships; people worked for him, he did not work for others. Sure, he was un
Jon, the protagonist in George Saunders' "Jon", has spent the majority of his life as an
Assessing Boy, as someone who is In. Everything has been provided for him: a place to sleep,
clothes to wear, food to eat, and of course, the addictive Aurabon that l
Karthik Ramakrishnan
In Persuasion Nation Discussion Plan
Opening Question: In each story, what is the initial sign or moment that the protagonist is
encountering a personal identity struggle?
for "Jon", possible discussion of choice between staying In o
Karthik Ramakrishnan
Citizen Kane Discussion Plan
Opening Question: We already discussed how identity is fluid and ever-changing. I think we can
all agree that Charles Kane's identity is not constant. How did his identity change throughout the
course of h
Alex Zhong
In Bartelby the Scrivener, we see one person not conforming to society's expectations on
what do in society. However, for me, growing up in an Asian society, I was highly expected to
follow social conventions and social norms. I was expected to
Karthik Ramakrishnan
In the face of powerful institutional opposition, I would employ an appeal to pathos
similar to what Preston Tucker used in the courtroom to win over the jury and prove his
innocence. In my opinion, the most successful way to fight be
-the butler had to leave his position at the silver service becuase his nose was affected
-daisy thinks the best thing a girl can be in the world is a beautifull little fool
-mr.mckee is a photographer with feminine features
-catherine lies by saying that
Karthik Ramakrishnan
Professor Wosnitzer
Commerce and Culture
8 September 2012
I am defined by my desire to do everything and succeed at everything. Raised by parents
who stressed aptitude in various skill sets, I am driven to excel in as many areas of li
Karthik Ramakrishnan
Professor Wosnitzer
Commerce and Culture
14 September 2012
As a student studying business, I will have to become accustomed to balancing family
and work. Long hours are almost a certainty after I graduate college, so I will need to ma
Karthik Ramakrishnan
At 6'6", 207 pounds, Andre Iguodala is a human freight train. As a passionate NBA fan, I
have watched him, the leader of the Philadelphia 76ers, countless times on television. My
impression of him, due to his intimidating stature and