×

### Let's log you in.

or

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

×

or

## Week 1-2 Notes

by: josephrauchwerger

4

0

2

# Week 1-2 Notes CSCE 1010

josephrauchwerger
UNT

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

×
Unlock Preview

Not much to cover here, but still a few useful notes and definitions for those who need it!
COURSE
Discovering Computer Science
PROF.
Philip Sweany
TYPE
Class Notes
PAGES
2
WORDS
CONCEPTS
Computer, Science, Introduction, discovering
KARMA
25 ?

## Popular in Computer Science and Engineering

This 2 page Class Notes was uploaded by josephrauchwerger on Tuesday September 20, 2016. The Class Notes belongs to CSCE 1010 at University of North Texas taught by Philip Sweany in Fall 2016. Since its upload, it has received 4 views. For similar materials see Discovering Computer Science in Computer Science and Engineering at University of North Texas.

×

## Reviews for Week 1-2 Notes

×

×

### 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/20/16
9/2/16 Abstraction: Reduces information and detail to facilitate focus on relevant concepts. - Breaking things down to much simpler terms, such as, instead of knowing everything about a car, all the ins and out, people just know how to press the gas, brake, and change gears in order to operate the vehicle. ‘Memory Hierarchy’ 9/9/16 Binary powers of 10 0101 = 0 * 1000 (10 ) 1 * 100 (10 ) 1 0 * 10 (10 ) 0 1 * 1 (10 ) 9/12/16 Algorithm – An algorithm is a list of steps to solve a problem written in “plain English”. The algorithm’s steps should be written out and numbered in the order in which they are to be executed. Algorithms should be as extensive as necessary to allow one to complete the task. Your algorithm is not only going to tell your “program” what to do, but how to do it. Example 1: Walking 1. Leave classroom 2. Turn right out of school building 3. Walk 1.2 miles 4. Turn right on street th 5. Go to 4 house Example 2: Take the Bus 1. Go to the bus area 2. Get in the right bus 3. Go to house Pick a number: 1. Set guesses = 0 2. Set high = 1000 3. Set low = 1 4. Make Next_Guess equal to (high+low)/2 (ignore any fractional part of the division) 5. Add 1 to the current value of guesses 6. If guesses > 10 You Lose! (quit at this point) 7. Announce (to the black box) the value of Next_Guess 8. “Listen” to black box 9. If black box says “Too Low”, reset low to be Next_Guess +1 and return to step 4 10.If black box says “Too High”, reset high to be Next_Guess -1 and return to step 4 11.If black box says “Correct”, You Win! Write an algorithm for the “black box”. Ask the user if they want to play a game Choose a number, range of 1-1000 Get input from the guesser Tell them if the guess is too high/low/correct Keep track of the guesses

×

×

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

Janice Dongeun University of Washington

#### "I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Steve Martinelli UC Los Angeles

Forbes

#### "Their 'Elite Notetakers' are making over \$1,200/month in sales by creating high quality content that helps their classmates in a time of need."

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