×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

## IT 210

by: Ahmed Notetaker

8

0

2

# IT 210 210

Ahmed Notetaker
Minnesota State University, Mankato
GPA 3.1

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

This is the notes from the Friday of week 1
COURSE
Fundamentals of Programming
PROF.
Salivia, Guarionex
TYPE
Class Notes
PAGES
2
WORDS
CONCEPTS
information technology
KARMA
25 ?

## Popular in Information technology

This 2 page Class Notes was uploaded by Ahmed Notetaker on Thursday September 22, 2016. The Class Notes belongs to 210 at Minnesota State University - Mankato taught by Salivia, Guarionex in Fall 2016. Since its upload, it has received 8 views. For similar materials see Fundamentals of Programming in Information technology at Minnesota State University - Mankato.

×

## Reviews for IT 210

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/22/16
WEEK 1 (FRIDAY) IT 210 #FUNCTIONS def calculateHandshakes(numPeople):     n = (numPeople * (numPeople ­ 1)) / 2     return n numOfHandshakes = calculateHandshakes(100) print(numOfHandshakes) #Example: convert miles to inches def milesToInches(miles):     feet = 5280     inches = 12     n = miles * feet * inches     return n inches = milesToInches(345) print(inches) #def milesToInches(miles): #    return miles * 5280 * 12 INCHES = inches // 12 REMAINDER = inches % 12 print(INCHES) print(REMAINDER) def milesToInches_Feet(miles):     feet = 5280     inches = 12     i = miles * feet * inches     f = int(i // 12)     i = i % 12     print(str(miles) + " miles are " + str(f) + " feet and " + str(i) + " inches ") milesToInches_Feet(347.589999) #Iterators for i in range(10):     print(i) #example 1 x = 0 for i in range(31):     x = x + i print(x) #example 2: Factorial def factorial(n):     x = 1     for i in range(1, n + 1):         x = x * i     return x fac_10 = factorial(10) print(fac_10) #MODULES import turtle #wn = turtle.Screen() #sven = turtle.Turtle() # sven.forward(100) # print(str(sven.position())) # sven.up() # sven.goto(­100, ­200) # sven.down() # sven.goto(­100, 200) # wn.exitonclick() def drawSquare(t, sideLength):     for i in range(4):         t.forward(sideLength)         t.right(90)  #degrees def drawRectangle(t, sideLength1, sideLength2):     for i in range(2):         t.forward(sideLength1)         t.right(90)  #degrees         t.forward(sideLength2)         t.right(90)  # degrees #RANGE FUNCTION #range(stop): sequence of numbers from 0 to stop ­ 1 #range(start, stop): sequence of numbers from start to stop ­ 1 #range(start, stop, step): sequence of numbers from start to stop ­ 1 counting by step def drawSpiral(aTurtle, maxSide):     delta = 5     for sideLength in range(1, maxSide + 1, delta):         aTurtle.forward(sideLength)         aTurtle.right(90) wn = turtle.Screen() sven = turtle.Turtle() #drawSquare(sven, 10) #drawRectangle(sven, 150, 100) drawSpiral(sven, 300) wn.exitonclick()

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Steve Martinelli UC Los Angeles

#### "There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Allison Fischer University of Alabama

#### "I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over \$600 per month. I LOVE StudySoup!"

Jim McGreen Ohio University

#### "Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

#### "It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com