×

### Let's log you in.

or

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

×

### Create a StudySoup account

#### Be part of our community, it's free to join!

or

##### By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

## CSci 160

by: Zachary Petron

16

1

4

# CSci 160 CSCI 160

Zachary Petron
UND
GPA 3.88

### Preview These Notes for FREE

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

×
Unlock Preview

### Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

## About this Document

A lab to create a rock paper sizzors game.
COURSE
Computer Science I
PROF.
Tom Stokke
TYPE
Class Notes
PAGES
4
WORDS
CONCEPTS
processing, /, java
KARMA
25 ?

## Popular in Computer Science and Engineering

This 4 page Class Notes was uploaded by Zachary Petron on Saturday April 23, 2016. The Class Notes belongs to CSCI 160 at University of North Dakota taught by Tom Stokke in Spring 2016. Since its upload, it has received 16 views. For similar materials see Computer Science I in Computer Science and Engineering at University of North Dakota.

×

## Reviews for CSci 160

×

×

### 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: 04/23/16
CS160 Computer Science Lab 10 Objectives Work with loops Work with functions Work with random Work with Arrays Overview Write a program that plays hangman. Required Functionality (hey this looks like psuedocode!) • •  Must use at least 2 functions (including draw) • •  Allow user to select difficulty (easy (9), medium (7), hard (5)) • •  At beginning of game, choose randomly from a premade array of 20 words to decide what word the person will guess. • •  Prompt the user to enter a letter • •  After each letter input, show the following: o Incorrectly guessed letters o Correctly guessed letters (where they are in the word) o Guesses remaining o Feedback indicating if they guessed correctly o If the user runs out of lives, show the correct word o Challenge: Draw the hanged man each step as they guess wrong letters Hint o To keep track of the letters of the word, use an array of letters( and the type is char) so it will be something like char letters [] = new char[length]; rather than trying to maintain a string. Sample Output CS160 Computer Science Lab 10 Objectives Work with loops Work with functions Work with random Work with Arrays Overview Write a program that plays hangman. Required Functionality (hey this looks like psuedocode!) • •  Must use at least 2 functions (including draw) • •  Allow user to select difficulty (easy (9), medium (7), hard (5)) • •  At beginning of game, choose randomly from a premade array of 20 words to decide what word the person will guess. • •  Prompt the user to enter a letter • •  After each letter input, show the following: o Incorrectly guessed letters o Correctly guessed letters (where they are in the word) o Guesses remaining o Feedback indicating if they guessed correctly o If the user runs out of lives, show the correct word o Challenge: Draw the hanged man each step as they guess wrong letters Hint o To keep track of the letters of the word, use an array of letters( and the type is char) so it will be something like char letters [] = new char[length]; rather than trying to maintain a string. Sample Output

×

×

### BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.

×

### You're already Subscribed!

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

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

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.