Marking Period 3

Spring Break Week in
Click for Instructions
Click on the date to open the details.
Click date again to close the details.
Day Date   Discussion
Game Design Links & Sources Page & NJIT rules
ocvtsCompSci.blogspot.com - Internet blog for us to share game design ideas
Field Trips - scheduled for Computer Science students
1 01/28/08 Monday - Create a Stamp & "vbMakeChange"
  1. Classroom Discussion -
    1. Ocean County Advisory Commission on the Status of Women
      • National Women's History Month theme is "Women's Art, Women's Vision"
      • Honor the originality, beauty, imagination, and multiple dimensions of women's lives
      • "Create a Stamp" contest by 03/01/08
      • Submit 1 "creative stamp" no larger than 30" x 36"
      • Entry must include completed entry form & original stamp
      • Stamps will be judged on impact, appropriateness, & overall creativity
      • Stamps become the property of the Commission & may be published
    2. How to make change
  2. Lab Assignment -
    1. Work on the "Create a Stamp" contest
    2. Create a Visual Basic 6 program "vbMakeChange" to determine how much change is due in what denominations give a total sale price & an amount tendered:
      1. Open VB6
      2. Create a new executable project named "vbMakeChange"
      3. Name the form "frmMakeChange"
      4. Add textbox objects for "txtTotal" & "txtTendered"
      5. Add textbox objects for "txtB20", "txtB10", "txtB5", "txtB1", "txtC25", "txtC10", "txtC5", & "txtC1"
      6. Add label objects to identify all textboxes
      7. Add command button objects for "cmdMake" & "cmdExit"
      8. Code the exit button
      9. Variables:
        Dim b20, b10, b5, b1, c25, c10, c5, c1 As Integer
        'paper bills 20, 10, 5, 1 & coins 25, 10, 5, 1
        Dim sngTotal, sngTendered, sngChange As Single
        'Total sale price, amount Tendered, Change due
        
      10. Pseudocode for "cmdMake":
        amount in txtTotal must be numeric
        amount in txtTendered must be numeric
        get sngTotal as a real number
        get sngTendered as a real number
        sngTendered must be larger than sngTotal
        sngChange is the difference between sngTendered & sngTotal
        b20 is the integer portion of sngChange divided by 20
        recalculate sngChange as the difference between sngChange & 
          the product of b20 times 20
        repeat for each subsequent variable
          remembering that a quarter is really 0.25 dollars
          remembering that a dime is really 0.1 dollars
          remembering that a nickel is really 0.05 dollars
          remembering that a penny is really 0.01 dollars
        display all variables into the correct textbox object
        
      11. Test with a bunch of different values

2 01/29/08 Tuesday - Create a Stamp & Create a CD Label & Make Executable Files
  1. Classroom Discussion -
  2. Lab Assignment -
    1. Ocean County Advisory Commission on the Status of Women:
      • National Women's History Month theme is "Women's Art, Women's Vision"
      • "Create a Stamp" to honor the originality, beauty, imagination, and multiple dimensions of women's lives
      • Due 03/14/08
    2. Create a CD label for the SkillsUSA:
      • Free CD to advertise for our class
      • Free games & web pages
      • Student-created
      • Ocean County Vocational Technical School
      • Toms River Center 2007-2008
      • Computer Science Class
    3. Add your best programs to the SkillsUSA-2007 folder:
      • Pick your best 1 or 2 programs
      • Create an executable file
      • Copy the file & any associated files (images or databases) to "Q:/SkillsUSA-2007-2008/"
      • You may have to rename your executable file or the folder
      • DO NOT OVERWRITE any existing files

3 01/30/08 Wednesday - Create a Stamp & Create a CD Label & Create CDs of our Programs
  1. Classroom Discussion -
  2. Lab Assignment -
    1. Ocean County Advisory Commission on the Status of Women:
      • National Women's History Month theme is "Women's Art, Women's Vision"
      • "Create a Stamp" to honor the originality, beauty, imagination, and multiple dimensions of women's lives
      • Due 03/14/08
    2. Create a CD label for the SkillsUSA:
      • Free CD to advertise for our class
      • Free games & web pages
      • Student-created
      • Ocean County Vocational Technical School
      • Toms River Center 2007-2008
      • Computer Science Class
    3. I'll print the labels
    4. Write a couple of blank CDs with the files from the "Q:/SkillsUSA-2007-2008/" folder
    5. Test one to see that you can open & run the programs

4 01/31/08 Thursday - WebQuest: Internet Ethics
  1. Classroom Discussion -
  2. Lab Assignment -
    1. Read & Learn about Internet Ethics:
      1. Internet Ethics WebQuest
    2. You may work in pairs (two people per team)
    3. Create an 8-page (or more) Microsoft PowerPoint to explain what you've learned:
      1. Introduction - Title, Your Name(s), Today's Date
      2. Issues - Internet Ethics
      3. Arguments for free movie/music sharing
      4. Arguments atainst free movie/music sharing
      5. Opinions - Yours & others
      6. Other pertinent information
      7. Conclusion - Free movie/music sharing should or should not be legal because...
      8. Sources - Where you found most of your information
    4. Use images from the Internet to liven up your presentation
    5. I will ask some students to present their presentation to the class next week

5 02/01/08 Friday - National "Wear Red" Day & WebQuest: Internet Ethics
  1. Classroom Discussion -
  2. Lab Assignment -
    1. Read & Learn about Internet Ethics:
      1. Internet Ethics WebQuest
    2. You may work in pairs (two people per team)
    3. Complete an 8-page (or more) Microsoft PowerPoint to explain what you've learned:
      1. Introduction - Title, Your Name(s), Today's Date
      2. Issues - Internet Ethics
      3. Arguments for free movie/music sharing
      4. Arguments atainst free movie/music sharing
      5. Opinions - Yours & others
      6. Other pertinent information
      7. Conclusion - Free movie/music sharing should or should not be legal because...
      8. Sources - Where you found most of your information
    4. Use images from the Internet to liven up your presentation
    5. I will ask some students to present their presentation to the class next week

02/02/08 Saturday - SkillsUSA Contest & Open House, Brick Center, 9am-1pm

6 02/04/08 Monday - Game Design & Microsoft Visual Studio C++ IDE & C++ "helloWorld"
  1. Classroom Discussion -
    1. Who is planning on going on to college? - Financial Aid Workshop Scheduled - Tuesday, 02/12/08, 9am & 11am - Signup with Mr. Clarke
    2. Computer Video Game Design:
      1. wikipedia.org - What is a Game Designer?
      2. fabjob.com - Become a Video Game Designer
      3. wikihow.com - How to Design a Video Game
      4. dummies.com - Designing Video Games
      5. vancouver.wsu.edu - The Art of Computer Game Design
      6. designersnotebook.com - The Philosophical Roots of Computer Game Design
      7. next-gen.biz - 50 Greatest Game Design Innovations
      8. gamecareerguide.com - On Game Design: A History of Video Games
      1. Online Tutorial - cplusplus.com - Instructions
      2. Online Tutorial - cplusplus.com - Structure
  2. Lab Assignment -
    1. Discuss what it means to be a Computer Video Game Designer
    2. Open & review the main parts of the Microsoft Visual Studio C++ Integrated Design Environment
    3. Create a C++ program "helloWorld" following the steps in the tutorial

7 02/05/08 Tuesday - Science & Game Design & C++ "displayOutput"
  1. Classroom Discussion -
    1. Science - How Satellites Work - video
    2. google.com/books - SAMS Teach Yourself Game Programming in 24 Hours
    3. Computer Video Game Design:
      1. dummies.com - Designing Video Games
      2. vancouver.wsu.edu - The Art of Computer Game Design
      3. designersnotebook.com - The Philosophical Roots of Computer Game Design
      4. next-gen.biz - 50 Greatest Game Design Innovations
      5. gamecareerguide.com - On Game Design: A History of Video Games
    4. C++:
      1. Online Tutorial - cplusplus.com - Variables
      2. Online Tutorial - cplusplus.com - Constants
  2. Lab Assignment -
    1. View the satellites video
    2. Discuss the steps to computer video game design
    3. Create a C++ program "variableDemo" following the steps in the tutorial

8 02/06/08 Wednesday - Career & Game Design & C++ "helloWorld"
  1. Classroom Discussion -
    1. Career - Discuss a job title: Computer Video Game Designer:
      1. igda.org - Preparing for your Career in Games
      2. allartschools.com - Game Design School and Career Resource Center
      3. gignews.com - Working So Others Can Play
      4. jobmonkey.com - Video Game Design Jobs
      5. nytimes.com - What Do Women Game Designers Want?
      6. ocean.edu - Computer Science--Game Development/Design Program
    2. Computer Video Game Design:
      1. dummies.com - Designing Video Games
      2. vancouver.wsu.edu - The Art of Computer Game Design
      3. designersnotebook.com - The Philosophical Roots of Computer Game Design
      4. next-gen.biz - 50 Greatest Game Design Innovations
      5. gamecareerguide.com - On Game Design: A History of Video Games
    3. C++:
      1. Online Tutorial - cplusplus.com - Operators
  2. Lab Assignment -
    1. Discuss the job title: Computer Video Game Designer
    2. Discuss the steps to computer video game design
    3. Create a C++ program "operatorDemo" following the steps in the tutorial

9 02/07/08 Thursday - English & Game Design & C++ "helloWorld"
  1. Classroom Discussion -
    1. ! English - Ms. Gerick is out
    2. Computer Video Game Design:
      1. dummies.com - Designing Video Games
      2. vancouver.wsu.edu - The Art of Computer Game Design
      3. designersnotebook.com - The Philosophical Roots of Computer Game Design
      4. next-gen.biz - 50 Greatest Game Design Innovations
      5. gamecareerguide.com - On Game Design: A History of Video Games
    3. C++:
      1. Online Tutorial - cplusplus.com - Basic Input/Output
      2. Microsoft Documented Problem with "getline()" - drexel.edu - Visual C++ 6.0 getline() Fixer
      3. Microsoft Documented Problem with "getline()" - microsoft.com - The getline template function reads an extra character after encountering the delimiter (Please don't try the fix suggested by Microsoft on the school's computers)
  2. Lab Assignment -
    1. Discuss the steps to computer video game design
    2. Create a C++ program "ioDemo" following the steps in the tutorial
    3. On-your-own: Create a C++ program "temperature":
      • Problem statement: Read a fahrenheit temperature & convert & display the equivalent centigrade tempature
      • Ideation:
        • What variables will you need?
        • What will you name them?
        • What data type are your variables?
        • How will you find the proper conversion equation?
      • Variables:
        f // for the fahrenheit number input from the user
        c // for the centigrade number result of a conversion
        
      • Pseudocode:
        Tell the user to enter a fahrenheit temperature number
        Read the number into the variable f
        Convert from f to c using the conversion equation: (f - 32) / 9 * 5
        Display the fahrenheit temperature (in case the user has forgotten)
        Display the centigrade temperature (because the user wanted it)
        Pause the output so the user can read the results
        
      • Compile & fix any errors
      • Test with numbers you can confirm:
        FahrenheitCentigrade
        320
        212100
        0-17.7778
        -40-40
        6820
        7725
        8630
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder

02/07/08 Thursday - OCVTS Open House, Toms River Center, 7pm-8:30pm
  • Voluntary
  • 7:00 p.m. to 8:30 p.m.
  • Demonstrations of what we're learning & doing
  • Web sites & PC programming
  • Games & Prizes
  • Fun for all ages
  • Extra-credit available
  • Not interested? Stop by & see what other students in other classes in Toms River are doing
10 02/08/08 Friday - SkillsUSA PDP Blue Book & Game Design & C++ Quiz 1
  1. Classroom Discussion -
    1. C++ Quiz 1. Click the link & follow the instructions. You only get one chance - this is not "try until you score 100". Open notes, open internet, open VB IDE (you may try out your answer in a program before you submit it), you may ask me for clarification, you may NOT ask me for the answers, likewise you may NOT ask another student
    2. SkillsUSA - Complete a chapter from the PDP Blue BuuK:
      • 1st Year Students: Level 1.1 Self-Assessment & Learning Styles, pages 7 - 13
      • 2nd Year Students: Level 2.2 Identify Stress Sources, pages 8 - 11
    3. Computer Video Game Design:
      1. dummies.com - Designing Video Games
      2. vancouver.wsu.edu - The Art of Computer Game Design
      3. designersnotebook.com - The Philosophical Roots of Computer Game Design
      4. next-gen.biz - 50 Greatest Game Design Innovations
      5. gamecareerguide.com - On Game Design: A History of Video Games
  2. Lab Assignment -
    1. C++ Quiz 1. Click the link & follow the instructions. You only get one chance - this is not "try until you score 100". Open notes, open internet, open VB IDE (you may try out your answer in a program before you submit it), you may ask me for clarification, you may NOT ask me for the answers, likewise you may NOT ask another student
    2. SkillsUSA - Complete a chapter from the PDP Blue BuuK:
      • 1st Year Students: Level 1.1 Self-Assessment & Learning Styles, pages 7 - 13
      • 2nd Year Students: Level 2.2 Identify Stress Sources, pages 8 - 11
    3. Work the Women's History Month stamp, due Wednesday, 02/13/08
    4. Discuss the computer video game development ideas

11 02/11/08 Monday - Game Design & C++ "temperature2"
  1. Classroom Discussion -
    1. Computer Video Game Design:
      1. dummies.com - Designing Video Games
      2. vancouver.wsu.edu - The Art of Computer Game Design
      3. designersnotebook.com - The Philosophical Roots of Computer Game Design
      4. next-gen.biz - 50 Greatest Game Design Innovations
      5. gamecareerguide.com - On Game Design: A History of Video Games
    2. How to Write a Computer Game Story:
      1. isotx.com - Writing a Video Game Script
      2. hollywoodreporter.com - Video games' write stuff
      3. bit-tech.net - How to Write an FPS
      4. bit-tech.net - How to write...an Adventure Game
      5. bit-tech.net - How to write…a Real-Time Strategy game
      6. writers.net - How to Write Scripts for Computer Games
      7. articles-hub.com - How to Write a Video Game Script
      8. sloperama.com - Lesson #32: Writing For Games
    3. C++:
      1. Online Tutorial - cplusplus.com - Control Structures: if else
  2. Lab Assignment -
    1. Work on the Women's History Month stamp
    2. Discuss the steps to computer video game design
    3. Begin writing the story
    4. Create a C++ program "ifDemo" following the steps in the tutorial
    5. On-your-own: Create a C++ program "temperature2":
      • Problem statement: Read a fahrenheit temperature or centigrade & convert & display the equivalent centigrade or fahrenheit tempature
      • Ideation:
        • How will you determine what the user wants (fahrenheit to centigrade or centigrade to fahrenheit)?
        • What variables will you need?
        • What will you name them?
        • What data type are your variables?
        • How will you find the proper conversion equation?
      • Variables:
        d // for character "F" (fahrenheit to centigrade) or "C" (centigrade to fahrenheit)
        in // for the number input from the user
        out // for the number result of a conversion
        
      • Pseudocode:
        Ask the user convert from [F]ahrenheit to Centigrade or [C]entigrade to Fahrenheit
        Get the user response into variable "d"
        Tell the user to enter a fahrenheit temperature number
        Read the number into the variable "in"
        Use a decision statement to convert using the proper function:
        	From F to C use: out = (in - 32) * 5 / 9
        	From C to F use: out = (in * 9 / 5) + 32
        Display the input temperature (in case the user has forgotten)
        Display the output temperature (because the user wanted it)
        Pause the output so the user can read the results
        
      • Compile & fix any errors
      • Test with numbers you can confirm:
        FahrenheitCentigrade
        320
        212100
        0-17.7778
        -40-40
        6820
        7725
        8630
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder

12 02/12/08 Tuesday - Science & Game Design & C++ "salary"
  1. Classroom Discussion -
    1. Science:
    2. Computer Video Game Design:
      1. dummies.com - Designing Video Games
      2. vancouver.wsu.edu - The Art of Computer Game Design
      3. designersnotebook.com - The Philosophical Roots of Computer Game Design
      4. next-gen.biz - 50 Greatest Game Design Innovations
      5. gamecareerguide.com - On Game Design: A History of Video Games
    3. C++:
      1. Online Tutorial - cplusplus.com - Control Structures: nested if else
  2. Lab Assignment -
    1. Work on the Women's History Month stamp
    2. Discuss the steps to computer video game design
    3. Continue writing the story of the game
    4. Begin creating a storyboard of the game
    5. Modify a C++ program "ifDemo" following the steps in the tutorial
    6. On-your-own: Create a C++ program "salary":
      • Problem statement: Read the hours worked & pay rate & calculate & display the weekly salary gross pay, taxes, & net pay. Calculate overtime as time-and-a-half for any hours over 40
      • Ideation:
        • How will you get the hours worked & pay rate?
        • What variables will you need?
        • What will you name them?
        • What data type are your variables?
        • Calculate gross pay as hours worked times pay rate
        • How will you calculate any overtime pay?
        • Estimate taxes as 20% of gross pay
        • Determine net pay as the difference between gross pay & taxes
      • Variables:
        hw // hoursWorked
        pr // payRate
        gp // grossPay
        tx // taxes
        np // netPay
        
      • Pseudocode:
        Get the hours worked from the user
        Get the pay rate from the user
        Calculate the gross pay - be sure to include any overtime earned
        Calculate taxes
        Calculate net pay
        Display all input & output variables with identifying information ("Hours Worked: 40", etc.)
        Pause the output so the user can read the results
        
      • Compile & fix any errors
      • Test with numbers you can confirm:
        Hours WorkedPay RateGross PayTaxesNet Pay
        301030060240
        401040080320
        5010550110440
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder

13 02/13/08 Wednesday - Career & Game Design & C++ "grades"
  1. Classroom Discussion -
    1. Career - Discuss a job title: Computer Video Game Designer:
      1. igda.org - Preparing for your Career in Games
      2. allartschools.com - Game Design School and Career Resource Center
      3. gignews.com - Working So Others Can Play
      4. jobmonkey.com - Video Game Design Jobs
      5. nytimes.com - What Do Women Game Designers Want?
      6. ocean.edu - Computer Science--Game Development/Design Program
    2. Computer Video Game Design:
      1. dummies.com - Designing Video Games
      2. vancouver.wsu.edu - The Art of Computer Game Design
      3. designersnotebook.com - The Philosophical Roots of Computer Game Design
      4. next-gen.biz - 50 Greatest Game Design Innovations
      5. gamecareerguide.com - On Game Design: A History of Video Games
    3. C++:
      1. Online Tutorial - cplusplus.com - Control Structures: switch case
  2. Lab Assignment -
    1. Complete & hand-in ("Z:/toBeGraded/stamp.jpg")the Women's History Month stamp
    2. Discuss the steps to computer video game design
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game
    5. Modify a C++ program "ifDemo" following the steps in the tutorial
    6. On-your-own: Create a C++ program "grades":
      • Problem statement: Read a number grade between 55 & 100, determine & display the letter grade, determine & display the GPA
      • Ideation:
        • How will you get the number grade?
        • Use the OCVTS grading scale:
          • 93-100 = 'A' = 4.0
          • 85- 92 = 'B' = 3.0
          • 75- 84 = 'C' = 2.0
          • 70- 74 = 'D' = 1.0
          • 55- 69 = 'F' = 0.0
        • What variables will you need?
        • What will you name them?
        • What data type are your variables?
        • Use a nested if else statement to convert from number grade to letter grade
        • Use a switch case statement to convert from letter grade to GPA
      • Variables:
        num // number grade input
        lett // letter grade for output calculated
        gpa // number grade for output calculated
        
      • Pseudocode:
        Get the number grade from the user
        Calculate the letter grade
        Calculate the GPA
        Display the number grade that the user input, the calculated letter grade, the calculated GPA
        Pause the output so the user can read the results
        
      • Compile & fix any errors
      • Test with numbers you can confirm:
        Number GradeLetter GradeGPA
        99'A'4.0
        88'B'3.0
        77'C'2.0
        72'D'1.0
        66'F'0.0
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder

14 02/14/08 Thursday - Math & Game Design & C++ Quiz 2 & C++ "valentine"
  1. Classroom Discussion -
    1. Review C++ Decisions:
    2. Math - Ms Verde may stop by
  2. Lab Assignment -
    1. C++ Quiz 2. Click the link & follow the instructions. You only get one chance - this is not "try until you score 100". Open notes, open internet, open VB IDE (you may try out your answer in a program before you submit it), you may ask me for clarification, you may NOT ask me for the answers, likewise you may NOT ask another student
    2. On-your-own: Create a C++ program "valentine" to display a Valentine's Day quote based on a number the user selects:
      • Problem statement: Read a user-entered number between 1 & 5, display a different quote for each number
      • YOU MUST USE A SWITCH CASE STATEMENT
      • YOU MUST USE COMMENTS AT THE TOP WITH YOUR NAME & DATE & PROGRAM NAME
      • Ideation:
        • How will you get the number?
        • What variables will you need?
        • What will you name them?
        • What data type are your variables?
        • Use a switch case statement to display the appropriate quote
      • Variables:
        num // number grade input as int
        
      • Pseudocode:
        Get the number from the user
        Check that the number is between 1 and 5
        Display an error message if less than 1 or greater than 5
        Use a switch statement to determine which Valintine's Day quote to display
        Pause the output so the user can read the results
        
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

02/15/08 Friday - Presidents' Holiday - No School

02/18/08 Monday - Presidents' Holiday - No School
15 02/19/08 Tuesday - Science & Game Design & C++ "stars1"
  1. Classroom Discussion -
    1. Science:
    2. C++ Loops:
  2. Lab Assignment -
    1. Practice from the online tutorial webpage
    2. On-your-own: Create a C++ program "stars1" to use loops to draw shapes:
      • Problem statement: The user will enter a number between 5 & 15 & the computer will draw lines, boxes, & triangles using loops & the *asterix* character
      • Ideation:
        • What variables will you need?
        • How will you control that the user enters only numbers between 5 & 15?
        • How will you use loops to draw a single * character multiple times?
      • Variables:
        int col = 0; // to control how many stars in each row
        int row = 0; // to control how many rows of stars
        int howMany = 5; // to specify how many the user wants
        char again = 'Y'; // to specify if the user wants to go again
        
      • Pseudocode:
        Main loop
        create the int main function
        
        Main loop
        while char variable again equals uppercase Y or lowercase y
        clear the screen of any existing content
        ask the user how many stars between 5 & 15
        get the user response into int variable howMany
        
        Input control loop
        while howMany is not between 5 & 15
        	remind the user to enter a number between 5 & 15
        	get the user response
        
        1st Shape
        tell the user line of stars
        set col = 0
        while col < howMany
        	output a single star
        	increment col
        output two end-of-line
        
        2nd Shape
        tell the user box of stars
        set row = 0
        while row < howMany
        	set col = 0
        	while col < howMany
        		output a single star
        		increment col
        	output one end-of-line
        	increment row
        output two end-of-line
        
        3rd Shape
        tell the user right triangle of stars
        set row = 0
        while row < howMany
        	set col = 0
        	while col < row
        		output a single star
        		increment col
        	output one end-of-line
        	increment row
        output two end-of-line
        
        4th Shape
        tell the user upside down right triangle of stars
        ** extra credit **
        
        5th Shape
        tell the user backwards right triangle of stars
        set row = 0
        while row < howMany
        	set col = 0
        	while col < howMany - row - 1
        		output a single blank space
        		increment col
        	set col = 0
        	while col < row + 1
        		output a single star
        		increment col
        	output one end-of-line
        	increment row
        output two end-of-line
        
        6th Shape
        tell the user upside down & backwards right triangle of stars
        ** extra credit **
        
        7th Shape
        tell the user isosceles triangle of stars
        set row = 0
        while row < howMany
        	set col = 0
        	while col < howMany - row - 1
        		output a single blank space
        		increment col
        	set col = 0
        	while col < row * 2 + 1
        		output a single star
        		increment col
        	output one end-of-line
        	increment row
        output two end-of-line
        
        8th Shape
        tell the user upside down isosceles triangle of stars
        set row = howMany
        while row > 0
        	set col = 0
        	while col < howMany - row
        		output a single blank space
        		increment col
        	set col = 0
        	while col < row * 2 - 1
        		output a single star
        		increment col
        	output one end-of-line
        	increment row
        output two end-of-line
        
        9th Shape
        tell the user diamond of stars
        ** extra credit **
        
        End of main loop
        ask the user again?
        get the user response into char variable again
        
        End of main function
        return 0
        
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

16 02/20/08 Wednesday - Career & Game Design & C++ "stars2"
  1. Classroom Discussion -
    1. Yes, I did
    2. Completer correct spelling of names form for Tracey
    3. Career:
      1. Unrelated Class Observation - Visit with Health & Fitness class to observe what they do & what skills set they need to do it - complete a 10 question skills survey
      2. Interview with a Computer Video Game Designer - google.com - 22 million pages found
      3. Research & write a one page, single spaced report on a career in the computer video game industry
      4. Write your report as if you had interviewed someone currently working as a computer video designer
      5. Due dates:
        • Rough idea draft due Wednesday, 03/05/08, I will approve your idea or suggest changes
        • First draft due Wednesday, 03/12/08, I will proofread & return
        • Second draft due Wednesday, 03/19/08, I will proofread & return
        • Final draft due Wednesday, 03/26/08, I will proofread & return
        • Final version due Wednesday, 04/02/08, at the end of marking period 3
    4. C++ Loops:
  2. Lab Assignment -
    1. Practice from the online tutorial webpage
    2. Continue writing the C++ "stars" program
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

17 02/21/08 Thursday - English & Game Design & C++ "stars3"
  1. Classroom Discussion -
    1. Unrelated Class Observation - Health & Fitness class will visit with us to observe what we do & what skills set we need to do it - they will complete a 10 question skills survey
    2. English - Ms. Gerick will work with 11th grader students for HSPA practice
    3. C++ Loops:
  2. Lab Assignment -
    1. Practice from the online tutorial webpage
    2. Continue writing the C++ "stars" program
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

18 02/22/08 Friday - Game Design & C++ Quiz 3 - School Closed due to Snow - Have a Great Weekend!
  1. Classroom Discussion -
    1. C++ Loops:
  2. Lab Assignment -
    1. C++ Quiz 3. Click the link & follow the instructions. You only get one chance - this is not "try until you score 100". Open notes, open internet, open VB IDE (you may try out your answer in a program before you submit it), you may ask me for clarification, you may NOT ask me for the answers, likewise you may NOT ask another student
    2. On-your-own: Create a C++ program "" to :
      • Problem statement:
      • Ideation:
        • What variables will you need?
      • Variables:
        
        		  
      • Pseudocode:
        
        		  
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

19 02/25/08 Monday - Game Design & C++ "stars"
  1. Classroom Discussion -
    1. C++ Loops:
      • Online Tutorial - cplusplus.com - Do While & For Loop Structures
    2. A simple yet effective loop to continue a program until the user decides to quit:
      char again = 'Y';
      while (again == 'Y' || again == 'y')
      {
      	// your code goes here
      	// before the end of the loop
      	// ask if the user wants to run the program again
      	cout << "Again? (Y/N) ";
      	cin >> again;
      }
      
  2. Lab Assignment -
    1. Practice from the online tutorial webpage
    2. Continue writing the C++ "stars" program using do while & for loops
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game
    5. Start finishing the Women's History Month Stamp

20 02/26/08 Tuesday - Science & Game Design & C++ Review & C++ Quiz 3
  1. Classroom Discussion -
    1. Science:
    2. C++ Loops Review:
      • Online Tutorial - cplusplus.com - Do While & For Loop Structures
  2. Lab Assignment -
    1. C++ Quiz 3. Click the link & follow the instructions. You only get one chance - this is not "try until you score 100". Open notes, open internet, open VB IDE (you may try out your answer in a program before you submit it), you may ask me for clarification, you may NOT ask me for the answers, likewise you may NOT ask another student
    2. On-your-own: Create a C++ program "summer" to sum numbers:
      • Problem statement: Continue reading numbers from the user, sum all the numbers, until the user enters a single zero (0), then display the sum to the user
      • Ideation:
        • What variables will you need?
        • What will you tell the user to do?
        • How will you control the loop?
        • How will you keep track of all the input numbers?
        • Do you really need to keep track of all the input numbers?
        • How will you display the answer to the user?
      • Variables:
        // time to start creating your own variables
        
      • Pseudocode:
        // time to start writing your own pseudocode
        
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game
    5. Start finishing the Women's History Month Stamp

21 02/27/08 Wednesday - Career & Game Design & C++
  1. Classroom Discussion -
    1. Career:
      1. Interview with a Computer Video Game Designer - google.com - 22 million pages found
      2. Research & write a one page, single spaced report on a career in the computer video game industry
      3. Write your report as if you had interviewed someone currently working as a computer video designer
      4. Due dates:
        • Rough idea draft due Wednesday, 03/05/08, I will approve your idea or suggest changes
        • First draft due Wednesday, 03/12/08, I will proofread & return
        • Second draft due Wednesday, 03/19/08, I will proofread & return
        • Final draft due Wednesday, 03/26/08, I will proofread & return
        • Final version due Wednesday, 04/02/08, at the end of marking period 3
    2. C++ Functions:
    3. Another simple yet effective loop to continue a program until the user enters zero (0):
      int i = 0, j = 5, s = 0;
      while (j != 0)
      {
      	// your code goes here
      	// the program continues until the user enters a zero (0)
      }
      return 0;
      
  2. Lab Assignment -
    1. On-your-own: Create a C++ program "digits" using a programmer-defined function:
      • Problem statement:
        1. The user will enter a single character
        2. The program will call a programmer-defined function to determine if the character is a single digit number between 0 & 9
        3. If it is, the function will return a 1
        4. If it is not, the function will return a 0
      • Ideation:
        • What variables will your main function need?
        • What will you call your programmer-defined function?
        • What variables will your function need?
        • How will you determine if the user entry is a digit?
        • How will you display the result to the user?
      • Variables:
        // time to start creating your own variables
        
      • Pseudocode:
        // time to start writing your own pseudocode
        
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    2. Continue writing the story of the game
    3. Continue creating a storyboard of the game
    4. Start finishing the Women's History Month Stamp

22 02/28/08 Thursday - Math & Game Design & C++
  1. Classroom Discussion -
    1. Math - Ms. Verde will visit with more fuzzy logic (0.90)
    2. C++ Functions:
      • Online Tutorial - cplusplus.com - Functions I
      • Simple C++ Function Rules:
        RuleExample
        Function names are identifiers & follow the same four (4) rules as variable names:
        1. Must start with a letter
        2. May contain letters & numbers
        3. May NOT contain special characters or spaces
        4. May contain an underline character
        5. Should make sense
        int getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Functions that return a value have a data typeint getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Functions that DO NOT return a value are voidvoid printStuff (double h)
        { cout << "Hours Worked: " << h; }
        Functions must have open & close parentheses after the function nameint getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Functions probably have more than one statementint getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Therefore functions probably have open & close curly braces after the parenthesesint getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Functions may have locally-scope parameter variables inside the open & close parenthesesint getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Functions may declare & use locally-scoped variablesint getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Function locally-scoped variables are only valid while the function is in operationint getGrossPay (double h, double p)
        { double g = h & p; return g; }
        Functions may read data stored in globally-scoped variablesint getGrossPay ()
        { double g = hw & pr; return g; }
        It is BAD FORM to change a globally-scoped variable inside a function & may even cause variable value problemsvoid getGrossPay (double h, double p)
        {   gp = h & p  ; }
        It is better to have the function return a value that changes the globally-scoped variablegp = getGrossPay(hw, pr);
        When the function ends, the Random-Access-Memory used by the locally-scoped variables is released back to the operating system allowing other programs to run making for a more effecient system & happier users
        Have a Nice Day!
  2. Lab Assignment -
    1. On-your-own: Create a C++ program "numbers" using a programmer-defined function:
      • Problem statement:
        1. The user will enter a single character
        2. The program will call a programmer-defined function to determine if the character is a single digit number between 0 & 9
        3. If it is, the function will return the text name of the digit ('1' = "one", '2' = "two", etc.)
        4. If it is not, the function will return "Not a number"
      • Ideation:
        • What variables will your main function need?
        • What will you call your programmer-defined function?
        • What variables will your function need?
        • How will you determine if the user entry is a digit?
        • How will you display the result to the user?
      • Variables:
        // time to start creating your own variables
        
      • Pseudocode:
        // time to start writing your own pseudocode
        
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    2. Continue writing the story of the game
    3. Continue creating a storyboard of the game
    4. Start finishing the Women's History Month Stamp

23 02/29/08 Friday - SkillsUSA & Game Design & C++ Quiz 4 - "Leaping Lizards, Sandy"
  1. Classroom Discussion -
    1. SkillsUSA - Work a chapter in the PDP blue book
    2. C++ Functions Review:
  2. Lab Assignment -
    1. C++ Quiz 4. Click the link & follow the instructions. You only get one chance - this is not "try until you score 100". Open notes, open internet, open VB IDE (you may try out your answer in a program before you submit it), you may ask me for clarification, you may NOT ask me for the answers, likewise you may NOT ask another student
    2. On-your-own: Create a C++ program "fibonacci" to display the famous sequence of numbers:
      • Problem statement:
        1. The user will enter a number between 1 & 44
        2. The program will display that many digits in the fibonacci sequence
        3. Google "fibonacci" if you don't know how it works
        4. The program will end when the user enters a zero (0)
        5. Ideation:
          • What variables will you need?
          • How will you control input between 0 & 44 (not a negative number, not greater than 44)?
          • How will you determine the next number in the Fibonacci sequence?
          • How will you control when the program ends?
        6. Variables:
          // time to start creating your own variables
          
        7. Pseudocode:
          // time to start writing your own pseudocode
          
        8. Compile & fix any errors
        9. Save to your "Z:/C++/" folder
        10. Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game
    5. Start finishing the Women's History Month Stamp

24 03/03/08 Monday - Web Practice & Game Development
  1. Classroom Discussion - None
  2. Lab Assignment - None
  3. Work on 04/19/08 NJIT Game Development
  4. Practice for 03/19/08 NJIT Web Design Competition

25 03/04/08 Tuesday - Web Practice & Game Development
  1. Classroom Discussion - None
  2. Lab Assignment - None
  3. Juniors taking state HSPA
  4. Practice for 03/19/08 NJIT Web Design Competition

26 03/05/08 Wednesday - Web Practice & Game Development
  1. Classroom Discussion - None
  2. Lab Assignment - None
  3. Juniors taking state HSPA
  4. Practice for 03/19/08 NJIT Web Design Competition

27 03/06/08 Thursday - Web Practice & Game Development
  1. Classroom Discussion - None
  2. Lab Assignment - None
  3. Juniors taking state HSPA
  4. Practice for 03/19/08 NJIT Web Design Competition

28 03/07/08 Friday - Web Practice & Game Development
  1. Classroom Discussion - None
  2. Lab Assignment - None
  3. Work on 04/19/08 NJIT Game Development
  4. Practice for 03/19/08 NJIT Web Design Competition

03/09/08 Sunday - Daylight Saving Time Begins - 1:59 am skips an hour & becomes 3:00 am
29 03/10/08 Monday - Mr. Clarke out - Substitute lesson
  1. Classroom Discussion - None
  2. Lab Assignment -
    1. Create a Microsoft PowerPoint presentation discribing your "Ten Favorite Things"

30 03/11/08 Tuesday - Science & Game Development & C++
  1. Classroom Discussion -
    1. Science:
      • howStuffWorks.com - Roller Coaster
      • Roller Coaster Videos from YouTube"
        • Discovery Channel's Build it Bigger Roller Coaster
        • Griffin - Worlds Tallest Floorless Roller Coaster
        • How Roller Coasters Work
        • X - World's First eXtreme Fourth Dimension Roller Coaster
        • Real Train Roller Coaster (Not Really)
      • Other Sources:
    2. C++:
      • Online Tutorial - cplusplus.com - Functions 2 - Arguments passed by value and by reference
      • Online Tutorial - cplusplus.com - Functions 2 - Default values in parameters
    3. Added some "How to..." links to the gameDesignLinks page
  2. Lab Assignment -
    1. Practice C++ functions from web site
    2. Create a C++ program "numberGuess" to play the game:
      • Problem statement:
        1. The computer will "think" of a number between 1 & 100 (inclusive) without telling the player
        2. The player has seven (7) tries to guess the number
        3. The computer will ask the player to enter a guess
        4. The computer will determine the relationship between the player guess & the computer number:
          • If the player guess is lower than the computer number, the computer will display "Your guess of ## is too low"
          • If the player guess is higher than the computer number, the computer will display "Your guess of ## is too high"
          • If the player guess matches the computer number, the computer will display "Your guess is correct, my number was ##"
          • Use functions() to determine the relationship & display output
        5. The computer will keep track of how many guesses the player has used
        6. The computer will not allow the player to guess more than seven (7) times
        7. After seven (7) guesses or a match, the computer will ask "Play Again (Y/N)?"
        8. Ideation:
          • What variables will you need?
          • How will you control input?
        9. cPlusPlus.com - rand()
        10. Variables:
          int lowNum = 1, highNum = 100;
          int howMany = 1, guess = 0, number = 0;
          char again = 'Y';
          
        11. Pseudocode:
          function tooHigh(local variable int g, local variable int h)
          {
          	display the user guess
          	display "Your guess of is too high"
          	add 1 to h
          	return h
          }
          function tooLow(local variable int g, local variable int h)
          {
          	display the user guess
          	display "Your guess of is too low"
          	add 1 to h
          	return h
          }
          function foundMatch(local variable int g, local variable int h)
          {
          	display the user guess
          	display "Yes!!! Your guessed my number"
          	return 111
          }
          void main(void)
          {
          	local variables int howMany, guess, number
          	local variable char again = 'Y'
          	loop while again equals 'Y' or 'y'
          	{
          		clear the screen
          		set local variable howMany to 1
          		set local variable number to a random number between 1 & 100
          		display the random number during testing
          		loop while howMany is smaller than 8
          		{
          			display "Enter Guess (1 - 100): "
          			get user guess into local variable guess
          			if guess is greater than number run function tooHigh(guess,howMany) save the return to local variable howMany
          			else if guess is less than number run function tooLow(guess,howMany) save the return to local variable howMany
          			else run function foundMatch(guess,howMany) save the return to local variable howMany
          		}
          		display "Again (Y/N)? "
          		get the user answer into local variable again;
          	}
          }
          
        12. Compile & fix any errors
        13. Save to your "Z:/C++/" folder
        14. Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

31 03/12/08 Wednesday - Career & Game Development & C++
  1. Classroom Discussion -
    1. Career:
      1. Interview with a Computer Video Game Designer - google.com - 22 million pages found
      2. Research & write a one page, single spaced report on a career in the computer video game industry
      3. Write your report as if you had interviewed someone currently working as a computer video designer
      4. Due dates:
        • First draft due today, 03/12/08, I will proofread & return
        • Second draft due Wednesday, 03/19/08, I will proofread & return
        • Final draft due Wednesday, 03/26/08, I will proofread & return
        • Final version due Wednesday, 04/02/08, at the end of marking period 3
    2. C++:
  2. Lab Assignment -
    1. Practice C++ functions from web site
    2. Create a C++ program "ttt" to play the game of tic-tac-toe between two players:
      • Problem statement:
        1. The computer will draw a blank game board
        2. Player1 & player2 will alternate select a position to play
        3. After each play, the computer will determine if there is a winner or a tie game
        4. If there is a winner, the computer will not allow any more plays
        5. After a winner or a tie game, the computer will ask "Play Again (Y/N)?"
      • Ideation:
        • What variables will you need?
        • How will you control input?
        • How will you track which player plays next?
        • How will you determine a winner?
      • Variables:
        //global variables:
        char t[10], again = 'Y', xory = 'x';
        int i, p;
        bool w = false;
        
      • Pseudocode:
        //function to clear the array variable t[]
        for 1 to 9 set t[i] to ' '
        //function to draw the board
        clear the screen
        draw the board
        //function to get the next play
        display player's turn
        get the play as a number between 1-9
        while the play position is not blank
            get the play as a number between 1-9
        set the array variable t[play] equal to the player
        switch player
        //function to check for a winner
        check each possible winning condition
        if find a winning condition
            set winner equal to true
            set i equal to a high number
        //function main()
        while again is 'Y' or 'y'
            clear screen
            set winner equal to false
            clear the array variable t[]
            draw the board
            for i = 1 to 9
                get the next play
                draw the board
                check for a winner
            if no winner
                display "tie game"
            ask "again (Y/N)"
            get again
        
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

32 03/13/08 Thursday - Math & Game Development & C++
  1. Classroom Discussion -
    1. C++:
    2. Math - Ms. Verde will visit & discuss divisibility tests
  2. Lab Assignment -
    1. Practice C++ functions from web site
    2. Complete yesterday's C++ program "ttt" the tic-tac-toe game:
      • Finish any unfinished functions
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game

33 03/14/08 Friday - SkillsUSA & Game Development & C++ Quiz 5
  1. Classroom Discussion -
    1. Bullying & Harrassment Training for all students & teachers - 8am-9am & 11am-12pm
    2. SkillsUSA - Work a chapter in the PDP blue book
    3. C++ Review:
    4. Math Review: 121,000 google.com pages on number divisibility rules
  2. Lab Assignment -
    1. C++ Quiz 5. Click the link & follow the instructions. You only get one chance - this is not "try until you score 100". Open notes, open internet, open VB IDE (you may try out your answer in a program before you submit it), you may ask me for clarification, you may NOT ask me for the answers, likewise you may NOT ask another student
    2. On-your-own: Create a C++ program "numberDivisibility" to easily test if one number can be evenly divided by another:
      • Problem statement:
        1. The user will enter two (2) integer numbers
        2. The first number will be a positive whole number
        3. The second number will be a positive whole number between 1 & 12 (inclusive)
        4. The computer will determine if the first number is evenly divisible by the second
        5. The computer will display the answer
      • Ideation:
        • Divisibility Rules easily test if one number can be evenly divided by another
        • "Divisible By" means "If you divide one number by another, is the result a whole number?"
        • Example, 1324 is divisible by 4, because the last two digits are divisible by 4
        • Example, 1324 is NOT divisible by 5, because the last digit is neither 5 nor 0
        • Use the complete set of rules Ms. Verde supplied & you practiced with yesterday
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. I'd like to finish the tic-tac-toe game, if time allows
    4. Continue writing the story of the game
    5. Continue creating a storyboard of the game

34 03/17/08 Monday - Game Development & C++ & Battleship
  1. Classroom Discussion -
    1. C++ Pointers: Pointers Main Points
      • Pointers are variables that point to an area in memory
      • You define a pointer by adding an asterisk (*) in front of the variable name (i.e. int *pNumber)
      • You can get the address of any variable by adding an ampersand (&) in front of it (i.e. pNumber = &my_number)
      • The asterisk, (unless in a declaration such as int *number), should be read as 'the memory location pointed to by'
      • The ampersand, (unless in a declaration such as int &number), should be read 'the address of'
      • Pointers MUST be of the same type as the variables you want them to point to, so int *number will not point to a MyClass
      • You can pass pointers to functions
  2. Lab Assignment -
    1. Practice C++ functions from web site
    2. Create a C++ program "battleship" to play the game:
      • Problem statement:
        1. Two player (Human vs. Computer)
        2. Two side-by-side 11-by-11 gameboards
        3. Gameboard is arranged in 11 numerical rows & 11 alphabetic columns
        4. You set your ships on the left board
        5. The computer ships are placed randomly on the right side board
        6. Ships are places horizontally or vertically
        7. You see your own ship placement
        8. You don't see the computer ship placement
        9. Five sizes/types of ship:
          • Aircraft Carrier - 5 spaces - "AAAAA"
          • Battleship - 4 spaces - "BBBB"
          • Cruiser - 3 spaces - "CCC"
          • Submarine - 3 spaces - "SSS"
          • Destroyer - 2 spaces - "DD"
        10. Player & computer take turns "shooting" at the other's ships
        11. Shooting occurs alphanumeric by Col (A-K) & Row (1-11)
        12. A player hit on a computer ship displays as the letter of the ship type
        13. A computer hit on a player ship displays as an "X"
        14. Game play ends when either player or computer destroys every part of every opposition ship
        15. Ask the user "Play Again (Y/N)? "
      • Ideation:
      • Variables:
        int i, r, c, z, startRow = 0, endRow = 0;
        // r is row, c is col, z is board position [1-121]
        char pBoard[122], cBoard[122], yorn = 'Y', d = ' ';
        char startCol = ' ', sType = ' ', endCol = ' ';
        // d is direction
        string shipType = "";
        
      • Pseudocode:
        
        		  
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    3. Continue writing the story of the game
    4. Continue creating a storyboard of the game
    5. Continue learning video game development

35 03/18/08 Tuesday - Science Marble Roller Coasters & Game Development & C++ & Battleship
  1. Classroom Discussion -
    1. Science -
      • Videos of marble roller coasters
      • woodGears.ca - Homepage for wooden marble machine
    2. C++ -
  2. Lab Assignment -
    1. Continue the C++ Battleship Game:
      • Declare two (2) additional functions (above the main()):
        void getPlayerBoard();
        bool getShip(int ship);
        
      • Add a call to getPlayerBoard() to main():
        getPlayerBoard();
        
      • Pseudocode to define function getPlayerBoard() (below the main()):
        declare a local bool variable shipNotDone set equal to true
        loop while shipNotDone equals true
          set shipNotDone = getShip(5); // get Aircraft Carrier
        reset bool variable shipNotDone equal to true
        loop while shipNotDone equals true
          set shipNotDone = getShip(4); // get Battleship
        reset bool variable shipNotDone equal to true
        loop while shipNotDone equals true
          set shipNotDone = getShip(3); // get Cruiser
        reset bool variable shipNotDone equal to true
        loop while shipNotDone equals true
          set shipNotDone = getShip(2); // get Submarine
        reset bool variable shipNotDone equal to true
        loop while shipNotDone equals true
          set shipNotDone = getShip(1); // get Destroyer
        
      • Pseudocode to define function getShip() (below the main()):
        //create a new local bool variable validShip set equal to true
        //clear variables
        clear char variable "d" (set to blank)
        clear char variable "startCol" (set to blank)
        clear int variable "startRow" (set to 0)
        //get ship type
        use a switch case statement starting with int variable "ship"
          to set string variable "shipType" to the name of the ship
          also set char variable "sType" to the letter of the ship
            case 5: shipType = "Aircraft Carrier"; sType = 'A'; break;
            "shipType": 4 is "Battleship", 3 is "Cruiser", 2 is "Submarine",
            "sType": 4 is 'B', 3 is 'C', 2 is 'S',
            case 1: shipType = "Destroyer"; sType = 'D'; break;
        //get ship direction
        use a while loop to get char variable "d" as either 'H' or 'V'
          tell the user to enter direction Horizontal or Vertical
          use cin to get char variable "d"
          repeat until the user enters either 'H' or 'V'
        //set ship horizontal
        if char variable "d" equals 'H':
          use a switch case statement starting with int variable "ship"
            to set char variable "endCol" to the last possible column
            in which the ship type being entered can start
            case 5: endCol = 'G'; break;
            4 is 'H', 3 is 'I', 2 is 'I',
            case 1: endCol = 'J'; break;
          use a while loop to get char variable "startCol" as a letter
            tell the user to enter a starting column 'A' through "endCol"
            use cin to get char variable "startCol"
            repeat until the user enters a char 'A' through "endcol"
          use a while loop to get int variable "startRow"
            tell the user to enter a starting row 1 through 11
            use cin to get int variable "startRow"
            repeat until the user enters a number 1 to 11
        //set ship vertical
        else if char variable "d" equals 'V':
          use a switch case statement starting with int variable "ship"
            to set int variable "endRow" to the last possible column
            in which the ship type being entered can start
            case 5: endRow = 7; break;
            4 is 8, 3 is 9, 2 is 9,
            case 1: endRow = 10; break;
          use a while loop to get char variable "startCol" as a letter
            tell the user to enter a starting column 'A' through 'K'
            use cin to get char variable "startCol"
            repeat until the user enters a char 'A' through "endcol"
          use a while loop to get int variable "startRow"
            tell the user to enter a starting row 1 through "endRow"
            use cin to get int variable "startRow"
            repeat until the user enters a number 1 to "endRow"
        end if
        //set starting column
        use a switch case statement starting with int variable "startCol"
          to set int variable c to the last possible column
          in which the ship type being entered can start:
            case 'A': c is 1; break;
            ...
            case 'K': c is 11; break;
        //set starting row
        set int variable "r" equal to int variable "startRow"
        calculate int variable "z" as equal to (r-1) times 11 plus c
        if int variable "ship" equals 2 change "ship" to 3
        if int variable "ship" equals 1 change "ship" to 2
        if char variable "d" equals 'H'
          use a loop to check all elements of char array variable "pBoard[z]"
            if the pBoard[z] element is not a dot '.'
              set validShip equal to false
              increment z (horizontal is add 1)
            end if
          end loop
          recalculate int variable "z" as equal to (r-1) times 11 plus c
          if validShip is still equal to true
            use a loop to change the correct elements of char array variable "pBoard[z]"
              to the char variable "sType"
              correctly increment int variable "Z" (horizontal is add 1)
            end loop
          end if
        else if char variable "D" equals 'V'
          use a loop to check all elements of char array variable "pBoard[z]"
            if the pBoard[z] element is not a dot '.'
              set validShip equal to false
              increment z (vertical is add 11)
            end if
          end loop
          recalculate int variable "z" as equal to (r-1) times 11 plus c
          if validShip is still equal to true
            use a loop to change the correct elements of char array variable "pBoard[z]"
              to the char variable "sType"
              correctly increment int variable "Z" (vertical is add 11)
            end loop
          end if
        end if
        call drawBoard()
        
      • Compile & fix any errors
      • Save to your "Z:/C++/" folder
      • Save a copy to your "Z/toBeGraded/" folder
    2. Continue writing the story of the game
    3. Continue creating a storyboard of the game
    4. Continue learning video game development

03/19/08 Wednesday - NJIT Web Design Competition - 7:30 am to 5:00 pm
36 03/19/08 Wednesday - Substitute & Game Design or History of Internet PowerPoint
  1. Classroom Discussion -
    1. Career:
      1. Interview with a Computer Video Game Designer - google.com - 22 million pages found
      2. Research & write a one page, single spaced report on a career in the computer video game industry
      3. Write your report as if you had interviewed someone currently working as a computer video designer
      4. Due dates:
        • Second draft due tomorrow, 03/20/08, I will proofread & return
        • Final draft due Wednesday, 03/26/08, I will proofread & return
        • Final version due Wednesday, 04/02/08, at the end of marking period 3
  2. Lab Assignment -
    1. Create a Microsoft PowerPoint presentation covering the history of the Internet:
      • Use the Internet to find sources covering the history of the Internet
      • Create a presentation with your findings
      • Tutorial - fgcu.edu - Microsoft PowerPoint
    2. Continue writing the story of the game
    3. Continue creating a storyboard of the game
    4. Continue learning video game development

37 03/20/08 Thursday - English & Game Development & C++ & Battleship
  1. Classroom Discussion -
    1. English - Ms. Gerick & first draft of résumé
  2. Lab Assignment -
    1. Continue the C++ Battleship Game:
      • Complete any incomplete steps from Tuesday
    2. Continue learning video game development

03/21/08 Friday - Easter Weekend Holiday - No School

03/24/08 Monday - Easter Weekend Holiday - No School
03/24/08 Monday through Friday - Manchester & Southern Regional - No School
03/24/08 Tuesday through Friday - Morning Pledge & Announcement - Any Volunteers???
38 03/25/08 Tuesday - Morning Pledge & Science & C++ Classes & Battleship & Game Design
  1. Classroom Discussion -
    1. Science -
    2. C++ -
  2. Lab Assignment -
    1. Continue the C++ Battleship Game:
      • What's done for [H]orizontal must be done for [V]ertical
    2. Continue learning video game development

39 03/26/08 Wednesday - Morning Pledge & Career & C++ Classes & Battleship & Game Design
  1. Classroom Discussion -
    1. Career:
      1. Interview with a Computer Video Game Designer - google.com - 22 million pages found
      2. Research & write a one page, single spaced report on a career in the computer video game industry
      3. Write your report as if you had interviewed someone currently working as a computer video designer
      4. Due dates:
        • Final draft due today, 03/26/08, I will proofread & return
        • Final version due Wednesday, 04/02/08, at the end of marking period 3
    2. C++ -
  2. Lab Assignment -
    1. Continue the C++ Battleship Game:
      • Write code so the computer places ships on the board
      • Testing: write so you see the positions of the computer ships
      • After testing: don't show the computer ships
    2. Continue learning video game development

40 03/27/08 Thursday - Morning Pledge & Math & C++ Classes & Battleship & Game Design
  1. Classroom Discussion -
    1. Math - Ms. Verde & Sudoku:
    2. C++ -
  2. Lab Assignment -
    1. Continue the C++ Battleship Game:
      • Write code so you shoot at the computer ships
      • Testing: write so you see the positions of the computer ships
      • After testing: don't show the computer ships
    2. Continue learning video game development

41 03/28/08 Friday - Morning Pledge & SkillsUSA & Game Design
  1. Classroom Discussion -
    1. SkillsUSA - Complete another section in the PCP Blue Book
    2. C++ -
  2. Lab Assignment -
    1. Continue the C++ Battleship Game:
      • Write code so the computer shoots at your ships
      • Testing: write so you see the positions of the computer ships
      • After testing: don't show the computer ships
    2. Continue learning video game development

42 03/31/08 Monday - C++ Classes & Game Development
  1. Classroom Discussion -
    1. C++ -
  2. Lab Assignment -
    1. Create a program to read Lincoln's Gettysburg Address from a text file & write a "leetized" version to an output text file:
      1. Open Microsoft Visual C++ & create a new C++ win32 console application called "gettysburg"
      2. Create a new C++ source file called "main"
      3. Copy & Paste the CRectangle source from the C++ tutorial:
      4. #include <iostream>
        using namespace std;
        class CRectangle
        {
        	int x, y;
          public:
        	void set_values (int,int);
        	int area () {return (x*y);}
        };
        void CRectangle::set_values (int a, int b)
        {
        	x = a;
        	y = b;
        }
        
        void main ()
        {
        	CRectangle rect;
        	rect.set_values (3,4);
        	cout << "area: " << rect.area();
        }
        
      5. Test it -- 3 * 4 should return 12
      6. Modify to change from a two-dimensional rectangle to a three-dimensional carton
        #include <iostream>
        using namespace std;
        class CRectangle
        {
        	int x, y, z;
          public:
        	void set_values (int, int, int);
        	int area () {return (x * y * z);}
        };
        void CRectangle::set_values (int a, int b, int c)
        {
        	x = a;
        	y = b;
        	z = c;
        }
        
        void main ()
        {
        	CRectangle rect;
        	rect.set_values (3,4,5);
        	cout << "area: " << rect.area();
        }
        
      7. Test it -- 3 * 4 * 5 should return 60
      8. Compile & fix any errors
      9. Save to your "Z:/C++/" folder
      10. Save a copy to your "Z/toBeGraded/" folder
    2. Continue learning video game development

43 04/01/08 Tuesday - Science & C++ Classes & Game Development
  1. Classroom Discussion -
    1. Science -
      • howStuffWorks.com - Facial Recognition
      • Random videos about computer facial recognition
    2. C++ -
  2. Lab Assignment -
    1. Modify the carton program from yesterday to read from an input text file & write to an output text file:
      1. Open the "carton" program
      2. Create a text file "input.txt" in the "carton" folder
      3. Enter three rows of three integer numbers into the "input.txt" file:
        1  3  5
        2  4  6
        3  6  9
        
      4. Above the main(), add a line to include the file stream standard functions
        #include <fstream>
        
      5. In the main(), create three integer variables & open the two text files for input & output:
        int n1, n2, n3;
        ifstream inFile("input.txt");
        ofstream outFile("output.txt");
        
      6. In the main(), check that the input file is open or report an error to the user:
        if(inFile.is_open()) { }
        else { cout << "Unable to open file input.txt" << endl; }
        
      7. If the input file is open, process until end-of-file for the input file:
        while(! inFile.eof()) { }
        
      8. In the while() loop, read & process all sets of three numbers
        inFile >> n1;
        inFile >> n2;
        inFile >> n3;
        rect.set_values (n1, n2, n3);
        
      9. In the loop, write the input & answer to both screen & output file:
        cout << n1 << " * " << n2 << " * "; 
        cout << n3 << " = " << rect.area() << endl;
        outFile << n1 << " * " << n2 << " * "; 
        outFile << n3 << " = " << rect.area() << endl;
        
      10. Close both input & output file:
        inFile.close();
        outFile.close();
        
      11. Check the output file "output.txt" in the "carton" folder to see if your answers are valid
      12. Compile & fix any errors
      13. Save to your "Z:/C++/" folder
      14. Save a copy to your "Z/toBeGraded/" folder
    2. Continue learning video game development

44 04/02/08 Wednesday - Career & C++ Classes & Game Development
  1. Classroom Discussion -
    1. Career:
      1. Interview with a Computer Video Game Designer - google.com - 22 million pages found
      2. Research & write a one page, single spaced report on a career in the computer video game industry
      3. Write your report as if you had interviewed someone currently working as a computer video designer
      4. Due dates:
        • Final version due today, 04/02/08, at the end of marking period 3
    2. C++ -
    3. C++ - Review of data type "char":
      • Syntax: char varName = ' ';
      • Single character = single quotes
  2. Lab Assignment -
    1. Create a program to read Lincoln's Gettysburg Address from a text file & write a "leetized" version to an output text file:
      1. Open Microsoft Visual C++ & create a new C++ win32 console application called "gettysburg"
      2. Create a new C++ source file called "main"
      3. Read input from a text file
      4. C++ will automatically create an output file
      5. Locate a copy of Lincoln's Gettysburg address on the internet & save it in the "gettysburg" folder as a text file "input.txt"
      6. Add the C++ headers:
        //Author's Name
        //Program Name
        //Date Written
        #include <iostream>
        #include <fstream>
        using namespace std;
        void main()
        {
        }
        
      7. In the main(), open the two text files for input & output:
        ifstream inFile("input.txt");
        ofstream outFile("output.txt");
        
      8. In the main(), check that the input file is open or report an error to the user:
        if(inFile.is_open()) { }
        else { cout << "Unable to open file input.txt" << endl; }
        
      9. If the input file is open, process all characters in the input file:
        while(! inFile.eof()) { }
        
      10. In the loop, get a single character from the input file:
        inFile.get(a);
        
      11. In the loop, change some characters from normal to 133+:
        switch(a)
        {
        case 'a': case 'A': a = '4'; break;
        case 'e': case 'E': a = '3'; break;
        case 'i': case 'I': a = '1'; break;
        case 'o': case 'O': a = '0'; break;
        case 't': case 'T': a = '+'; break;
        case 's': case 'S': a = '&'; break;
        // add any others if you want to
        }
        
      12. In the loop, write the character to both screen & output file:
        cout << a;
        outFile << a;
        
      13. Close both input & output file:
        inFile.close();
        outFile.close();
        
      14. Extra Credit: Count & report how many words & sentences the input file contains
      15. Compile & fix any errors
      16. Save to your "Z:/C++/" folder
      17. Save a copy to your "Z/toBeGraded/" folder
    2. Continue learning video game development

45 04/03/08 Thursday - English & Game Development
  1. Classroom Discussion -
    1. English - Ms. Gerick will take some of you to the other computer lab to type up your résumés
  2. Lab Assignment -
    1. Work on your game development:
      • Students may use the internet for research
      • Students ARE allowed to play computer video games but only to TEST the design they are currently working on to evaluate function & identify problems
      • Use the same laptops you used yesterday for testing
      • Students are NOT allowed to:
        • Play computer video games except for testing their design
        • Watch videos on the computer except for programming tutorials
        • Access any “myspace” web sites
        • Use a “proxy host” web site to try & reach restricted web sites
      • Students all know all the rules = be good to the substitute teacher so that I may continue to be good to you
      • Students may NOT, under any circumstance, use the teacher computer

46 04/04/08 Friday - SkillsUSA & C++ Classes & Game Development
  1. Classroom Discussion -
    1. SkillsUSA - Complete another section of the PDP Blue Book
    2. C++ -
  2. Lab Assignment -
    1. Create a program to manage a music flat-file database:
      1. Open Microsoft Visual C++ & create a new C++ win32 console application called "music"
      2. Create a new C++ source file called "main"
      3. Read input from a text file
      4. C++ will automatically create or append an output file
      5. Add the C++ headers:
        #include <iostream>
        #include <fstream>
        #include <string>
        #include <ctime>
        using namespace std;
        void main() { }
        
      6. Create a function to return the current date & time:
        string showTime()
        {
        	time_t rawtime;
        	struct tm * timeinfo;
        	time ( &rawtime );
        	timeinfo = localtime ( &rawtime );
        	return asctime(timeinfo);
        }
        
      7. Create a function to display a menu system:
        char showMenu()
        {
        	char a = ' ';
        	system("cls");
        	cout << "Welcome to the Music Menu\n";
        	cout << "[A] - Add new album\n";
        	cout << "[C] - Change album\n";
        	cout << "[D] - Delete album info\n";
        	cout << "[S] - Show all albums\n";
        	cout << "[Q] - Quit\n";
        	cout << showTime();
        	cin >> a;
        	return a;
        }
        
      8. Create functions to [A]dd, [C]hange, [D]elete, & [S]how:
        void add() { cout << "Adding...\n"; }
        void change() { cout << "Changing...\n"; }
        void deleter() { cout << "Deleting...\n"; }
        void show() { cout << "Showing...\n"; }
        void main()
        
      9. In the main() display the menu until the user selects [Q]uit:
        char yorn = ' ';
        while (yorn != 'Q' && yorn != 'q')
        {
        	yorn = showMenu();
        	switch (yorn)
        	{
        	case 'A':
        	case 'a': add(); system("pause"); break;
        	case 'C':
        	case 'c': change(); system("pause"); break;
        	case 'D':
        	case 'd': deleter(); system("pause"); break;
        	case 'S':
        	case 's': show(); system("pause"); break;
        	}
        }
        cout << "Thank You for Using the Music Menu\n";
        
      10. 
        		  
      11. 
        		  
      12. 
        		  
      13. 
        		  
      14. Close both input & output file:
        inFile.close();
        outFile.close();
        
      15. Count & report how many words & sentences the input file contains
      16. Compile & fix any errors
      17. Save to your "Z:/C++/" folder
      18. Save a copy to your "Z/toBeGraded/" folder
    2. Continue learning video game development

04/18/08 Friday - NJIT Programming Contest - 7:30 am to 5:00 pm
04/19/08 Saturday - NJIT Gaming Contest - 9:00 am - 9:00 pm
04/21/08 Monday - Spring Break - No School
04/22/08 Tuesday - Spring Break - No School
04/23/08 Wednesday - Spring Break - No School
04/24/08 Thursday - Spring Break - No School
04/25/08 Friday - Spring Break - No School
04/28/08 Monday - Spring Break - No School
04/28/08 Tuesday - School Resumes - start of Marking Period 4

webopedia
webster
whatis
vocabulary