Week 5

Monday

Bell Ringer

Copy your 21 game - the form and project into a new folder (blackjack)

Get the images of the cards into the same folder.

Objective

  • Writing a procedure and funtion in Visual basic
  • Passing parameters

Agenda

  • Bell Ringer
  • Adjusting the form
  • Making a card appear - displaying images
  • Writing the deal card procedure and the generate card function
  • Closure

Assignments:

Revise 21 game

Procedures

  • Deal card
  • Start game
  • update label

Functions

  • generate card
  • Bonus: Check for aces
 

Tuesday

Bell Ringer

Get the 21 game to handle Face cards

Objective

  • Writing a procedure and funtion in Visual basic
  • Passing parameters

Agenda

  • Bell Ringer
  • Face cards to the balckjack game
  • Bonus questions -
    • Keeping track of wins - 5 points
    • Betting 10 points
    • Aces 10 points
  • Closure

Assignments:

Revise 21 game

Procedures

  • Deal card
  • ShowScore
  • Reset game

Functions

  • generateCard
  • Check for aces

Chapter 7 exercises - 2,7,8

 

Wednesday

Bell Ringer

Writing a procedure and a function

Objectives

    • Writing procedures and functions
    • Passing parameters Byval and Byref
    • Calling a procedure
    • Calling a function

Agenda

  • Bell Ringer
  • Writing a procedure
  • Calling a procedure
  • Writing a function
  • Using a function
  • Adding images
  • Adjust the 21 game
  • Closure

Assignments:

 

Thursday

Bell Ringer

Get the ch2 folder from the vbGames folder on the K drive

Objectives

    • Create a control array
    • Use a for next loop to assign properties to a control array

Agenda

  • Bell Ringer
  • Mix and match cartoons booklet
  • Closure

Assignments:

Finish Chapter 7 exercises - 2,7,8

Friday

Bell Ringer

Adjust the Mix and match cartoon program so it has 3 options for each image control array.

You need to make the new images- Create them in FireWorks, make them 100 by 100 and save them as gif or jpg. Make sure you save in the ch2 folder

Objectives

  • Arrays
  • Meaningful array index
  • Using control arrays

Agenda

  • Bell Ringer
  • Chapter 9 practices
  • Closure

Assignments:

Shell game and tic tac toe in practices

 

Back to Computer 4 main page

Back to SHS main page