CSCI202: Computer Programming II
Updated 2013.05.08
Final test is Tuesday, 5/14/2013
from noon until 2:20 in HH138
·
Practice Test Video solutions:
o
Problem 1: http://screencast.com/t/9flT8r1slem
o
Problem 2: http://screencast.com/t/NAh2Ydnld80E
o
Problem 3, part 1: http://screencast.com/t/fCX9e2MrkJz
o
Problem 3, Part 2: http://screencast.com/t/OifVehgd
o
Problem 4, Part 1: http://screencast.com/t/ZUkXyugA4rL8
o
Problem 4, Part 2: http://screencast.com/t/ymisoOFh99o4
Earlier classes are below…
· Objects
· Fractions. Drop in a program.
· Sprites. Drop in a program.
What else can you do with XNA? Code samples:
· More classes: Particles.
· Discuss, work on Tetris
· Tetris, more notes
· Test #2
· Tetris part 2 discussion, work time
·
Checking for any key: if (kbd.GetPressedKeys().GetLength(0)
> 0)
· Tetris!
· Tetris, part 2. Here are some hints.
· Test #2. Know how to use 1D arrays, 2D arrays, input files, structures, strings, procedures, and functions.
· Classes. A Fraction class.
· Tetris!
· Classes and objects. Notes.
·
Test #2: Next
Thursday, 4/25/13.
· Boggle. You may work with a partner if you wish. Cubes file. Valid words file.
· 2D arrays, the mouse, files, lists, random numbers, etc.
·
Functions (these are the notes from Tuesday)
·
Practice
· Life. How it should work: Videos. Life data files.
·
Life program is NOT due until Thursday, April
4.
· More on nested loops.Notes.
· Nested loops.
· Life. How it should work: video. Life data files.
· Review for homework: Program to read from keyboard, strings and string functions, methods, files, sorting.
· Test 1 is Today.
· Test
· Test 1 is Tuesday, March 5.
· Practice test, runner image, fighter image
· Interesting trends in programming languages. More data.
· Sorting: Sorting the Top 10 list
· Input boxes, files. Notes
· Here's a crashing sound (for when your vehicle collides with an obstacle). Feel free to find and use your own, though.
· Scrolling backgrounds. Notes
·
Roadkill.
You may work with a partner on this assignment.
· Free looping sound files. They are relatively small and can be used for background sound.
· Files. Notes
· Lists. Notes.
· Sprite sheet animation: Notes
· 1D sprite sheets: run, jump, celebrate, die, explode
· 2D sprite sheets: 3 rings, Invaders
· Program #2 discussion.
· Space Invaders. You may work with a partner on this assignment. Hand in a zipped copy of your project in the drop box.
· More on methods and parameters.
· Code for setting the viewport
· Two-player asteroids. You may work with a partner on this assignment. Hand in a zipped copy of your project in the drop box.
· More on scaling
· Viewports
· Procedures and parameters
· Pong program from last class
· 7 rules for beginning programmers
· Review. Write 2-player Pong in 75 minutes.
· 2D Arrays problem, continued.
· A complete class example: a Fraction class.