×

### Let's log you in.

or

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

×

or

## Week 02

by: Taylor Beddow

7

0

2

# Week 02 1400

Taylor Beddow
Dixie State College

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

×
Unlock Preview

COURSE
CS-1400-01
PROF.
Bob Nielson
TYPE
Class Notes
PAGES
2
WORDS
CONCEPTS
Intro to Computer Science; Computer Science
KARMA
25 ?

## Popular in Computer Programming

This 2 page Class Notes was uploaded by Taylor Beddow on Sunday September 25, 2016. The Class Notes belongs to 1400 at Dixie State College taught by Bob Nielson in Fall 2016. Since its upload, it has received 7 views. For similar materials see CS-1400-01 in Computer Programming at Dixie State College.

×

## Reviews for Week 02

×

×

### 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/25/16
CS-1400 8/29/16 Setting up a section of memory called main when writing def main () Then it is setting up a certain memory with Distance, Speed, Time, and TimeMachine. Repeat  For I in range(100): Print (“I will not cheat!”) # add up all the numbers from 1 – 100 # - Taylor Beddow Def main(): # get the users guess Guess=input(“What is the sum of the numbers from 1-100 ?”) Guess=int(guess) # calculate the answer Total=0 For num in range(101): Total = total + num # compare the answer If guess == total: Print(“You got it Isaac”) Else: Print(“You missed it by a mile.”) Print(“The correct answer is” , total) Main() Def main(): # Print welcome message Print(“Welcome to star trek”) Print() # print the users name Name = input(“What is your name ?”) # Print greeting Captain=”Kirk” If name == Captain Print(“Welcome Captain Kirk”) Command = input(What is your command ?”) If command == “Warp”: Print(“We are out of here”) Else: Print(“I did not get that”) Else: Print(“Welcome cabin boy”, name) Command = input(“Are you going to get the forward deck”) If command == “yes”: Print(“You have been promoted.”) Else: Print(“Now I see why you are a cabin boy.”) # Print good bye message Print(“Thanks for playing star trek.”)

×

×

### 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

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

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