×

### Let's log you in.

or

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

×

or

## Phys

by: Jonathon Whear

30

1

4

# Phys PHYS 298

Jonathon Whear
U of L

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

×
Unlock Preview

Done
COURSE
Physics
PROF.
Raymond Chastain
TYPE
Class Notes
PAGES
4
WORDS
KARMA
25 ?

## Popular in Physics 2

This 4 page Class Notes was uploaded by Jonathon Whear on Wednesday March 2, 2016. The Class Notes belongs to PHYS 298 at University of Louisville taught by Raymond Chastain in Spring 2016. Since its upload, it has received 30 views. For similar materials see Physics in Physics 2 at University of Louisville.

×

## Reviews for Phys

×

×

### 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: 03/02/16
Whear1 J, Zachary Whear CECS-121-01 3 Assignment Feb 8 , 2016 If/else Statements and Looping structures. The “dice challenge was fairly straight forward, I simple generated two random numbers that were limited between 1 and 6. I then had them added together. The star of the show is the if/else statement. It checks is the result is 7 or 11 and if so it displays that the, “Player Wins!.” Otherwise it makes a smartass response. My main trouble with this assignment was the Boolean algebra, I forgot that I need == instead of a single =. However I had a bug I could not get rid of, it displays, “Player Wins!” twice for some reason. I have no idea what could be wrong in my code. You may want to take a look. This might be because my computer saved a different file from a failed attempt, you might want to try and run the code on your computer. Whear2 The second assignment was simple, I set two integers and then created a while loop. The loop checks if the number is less than 100, if this is true it adds 5 to the number, when it is done it prints, “The program is done”. Whear3 The third assignment was my most challenging yet, it required my fullest attention. First I set my variables, then probed the user for numbers. I then put those numbers into the for loop, in which I misspelled many of them (I need a better naming scheme). Picture on next page. Whear4

×

×

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

Jennifer McGill UCSF Med School

#### "Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over \$500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

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."

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