Archive for the ‘Labs’ Category.

Lab 10: Yahtzee, part II (Updated)

Objectives:

Lab 10: Yahtzee, part I

Objectives

Lab 9: Arrays and Iterators

Objectives

  • Practice the basics of array access and manipulation
  • Use arrays to hold an indeterminate amount of data
  • Explain the semantics of the array collect, select, reject, and inject iterators
  • Use iterators and blocks to examine array contents
  • Use iterators and blocks as an alternative to loops

    Continue reading ‘Lab 9: Arrays and Iterators’ »

Lab 8 due dates

As announced during lecture today:

  • Lab 8, exercise 1 (the improved guessing game) is due this Friday in lab and is now worth double the points of a regular lab exercise (24 points).
  • The due date for lab 8, exercise 2 (Mastermind) has been postponed to next Friday, and the exercise will be worth triple the regular points (36 points).

Students that wish to turn in exercise 2 early may do so, but the point worth of the exercise will not change.

Lab 8: Branches and Loops, Part II (Updated)

Objectives

Lab 7: Branches and Loops, Part I

Objectives

Lab 6: True or False?

Objectives

Lab 5: Exploring Objects and Methods

Objectives

Lab 4: Mad Libs

Objectives

  • Use gets to obtain user input
  • Use variables to store and manipulate user input

Continue reading ‘Lab 4: Mad Libs’ »

Lab 3: Variables

Objectives

  • Know how and when to use variables
  • Use variables to limit repetition in programs
  • Use variables containing strings and numbers

Continue reading ‘Lab 3: Variables’ »