Welcome to Computer Programming 12
This fast paced course has been designed to build off of the structure introduced in Programming 11. We will revisit familiar units of study but with an entire new level of depth. For example, in Programming 11, we studied HTML and CSS; in Programming 12 we delve into JavaScript (the behaviour side of web development). Everything in this course is unique but relates to a larger whole. We endevour to keep the units covered in the course 'hands on' and useful in order to bring your creative ideas to life. Practicing, building, reverse engineering, software iterations and scaling are all strategies deployed to help you innovate. Although there is some theory in this course, the guiding principles are practical and useful.
Throughout this course, we will use a simple programming cycle:
LEARN → EXPERIMENT → BREAK → DEBUG → REINVENT → CREATE
Computer Programming 12 - Course Syllabus 2026
Please submit course assignment 'one drive' links into your spreadsheet in the correct 'drop box'
Drop Box - Programming 12 - Block 1 (spreadsheet only)
If you can't make up links for the spreadsheet, then create a folder with your full name on it and drag and drop all your files into this ONE folder only!
Create a one Drive share link - create an 'online' spreadsheet for sharing course assignments
Create and Share links in ONE drive - A 'how to' guide
Example - T Linburg - (using Google Sheets - but you could use your Microsoft version of Excel)
T Linburg - grade and assessment link spreadsheet (adjust the share permissions to allow Mr. Linburg to edit)
Module # 3 Java - Advancing your coding 'Superpowers'
We are moving back to Java to complete this very important programming journey. The skills covered in the next TWO modules offer you a vast array of coding and computational skills which are transferrable to any technical language.
Why is Java such an important coding language to learn...Read this link for more info!
Click on this one drive link and download the textbook resource
How to use Visual studio for Java
Part I Write output programs in Visual Studio Code (second half of book one) Or Apache Netbeans
Step by step intro for Apache Netbeans (refresher)
(*) Please complete ONE study drill at the end of each of these exercises.- only submit the exercise AFTER you have done the study drill (in other words the MODIFIED one) - add a developer comment to make sure I know WHICH study drill you completed.
# 25 Repeating yourself with the while loop
# 26 A number Guessing game
# 27 Infinite Loops
# 29 Do-While Loops (*) More challenging (More background info on Do-While loops - )
The Key difference between While Loops and Do...While loops is...
The do...while loop is similar to while loop. However, the body of do...while loop is executed once before the test expression is checked.
This is as opposed to the 'While loop" which...
Java while loop is used to run a specific code until a certain condition is met. The syntax of the while loop is:
# 30 Adding values one at a time
# 33 Calling a Function
# 34 Calling Functions to draw a flag (*) note - if you can, draw any flag you wish for this exercise
# 35 Displaying Dice with Functions
# 36 - Returning a value from a Function (*) More challenging
# 44 Counting with a For Loop
# 47 - Generating and Filtering Values
# 48 - Arrays - Many values in a single Variable
# 49 - Arrays continued
Part II - Create a 'novel' Java App - what can you make?
We will now pause and try to find practical uses and application for the Java related skills that we have learned so far. What sort of things can we make with our new found skill set. Take a look at some of these links. Hopefully you might find ONE project you have an interest in making. If not, then you could search for one to your liking. These links have a diverse range of options. Have fun and happy coding!
15 Top Java Projects to make (with source code)
(*) Some of the above links aren't tutorials per se but rather guides or examples of what your project might look like
Module # 2 - Using JavaScript to make your own games
Due: Wednesday November 25th
Due:
Time for some gaming fun! In the next course segment, you will have a chance to remake some 'classic' games from the past and program them into something fresh, new and exciting. For the sake of simplicity you may use your CODEPEN account for the development aspect. You may, of course, also use platforms such a Visual Studio but that isn't required for these. Just be sure to save your changes as you proceed!
Software download link
VISUAL STUDIO COMMUNITY (you can see an outline here!)
Other JavaScript Development Links
How to use Visual Studio for JavaScript development work
JavaScript explained (a great feature summary!)
(Complete 3 out of 4) - Proficient (Complete 4 out of 4 Extending)
Part I
Game of 'Breakout' - Destroy the bricks
Take a look at this link! Please feel free to adopt it for your own purposes. You might want to build this game on Visual Studio (Community edition - free) download OR you may use CODEPEN and build it out that way.
Please be sure to improve the game in the following ways
Change the ball speed / size of paddle / number of bricks / game and brick colours
Part II
Make a guessing game based on the GitHub version
In this next segment you are tasked, as a developer of taking this tired gaming 'classic' and remaking it into something fresh, new and exciting. Your "NEW" game should still involve the same 'behaviour' which involves 'guessing at something but it might not be 'guessing a correct number' but might be guessing some other answer. For example, in the CODE PEN link below, you can find one such game that uses 'on event click buttons' to help find a lost cat. Each time you select a square it offers a clue, such as 'getting colder' or 'getting warmer'. I am not suggesting this is an outstanding game, but it takes the guessing concept and uses it in a new and innovative way.
Good luck and happy guessing! :)
Make a guessing game using JavaScript and personalize where possible
Original Guessing Game Examples!
Part III
Create a Puzzle Slider Game
In the third of our series of games in JavaScript, you will be tasked with creating a 'Puzzle Slider Game'.
Please start with this basic version: Example of a Number puzzle slider game OR this one
Add THREE (Proficient) of the following features to your Puzzle Slider Game. Good luck! (EXTENDING - add all of them)
- you can make a version where you complete a picture
Timer
Description Add a timer to track how long it takes to solve the puzzle.
Implementation: Use JavaScript's `setInterval()` function to update the timer every second.
Move Counter
Description: Keep track of the number of moves made by the player.
Implementation: Increment a counter variable each time a tile is moved and display the count on the screen.
Undo Button
Description: Allow the player to undo their last move.
Implementation: Maintain a history of moves and restore the previous state when the undo button is clicked.
Difficulty Levels
Description: Offer different difficulty levels (e.g., 3x3, 4x4, 5x5 grids).
Implementation: Adjust the grid size based on the selected difficulty level.
Winning Animation
Description: Display a congratulatory animation or message when the puzzle is solved correctly.
Implementation: Check if the tiles are in the correct order and trigger the animation.
High Scores
Description: Maintain a leaderboard with the best times and lowest move counts.
Implementation: Use `localStorage` to store and retrieve high scores.
Sound Effects and Music
-Description: Add sound effects for tile movements and background music for a more immersive experience.
Implementation: Use the HTML5 `<audio>` element and JavaScript to play sounds.
Hints
Description: Provide hints to help players who are stuck.
Implementation: Highlight the next possible move or show the correct position of a tile.
Customizable Themes
Description: Allow players to choose different themes or styles for the puzzle tiles.
Implementation: Use CSS classes to apply different styles and let players select their preferred theme.
Resources
A version (no code) with a picture to solve/ Here is the 'secret' way to WIN at a slider puzzle!
Part IV - Minesweeper! (more difficult)
In this final JavaScript game activity, you are tasked with creating and improving a classic game of MINESWEEPER. The basic game structure is written for you. Have fun and watch out for those mines!
Your Challenge (do as many as you have time for)
Improve this code further to:
Calculate and display a score in real time (number of cells that have been visited).
Allow the user to add a cross or flag to a cell (by right clicking?) to indicate the position of a mine.
Allow the user to choose a difficulty level or change some settings (e.g. Number of mines, size of the grid) / or add a timer
JavaScript - one of the world's most popular computer language
Unit Description
We will be starting this unit by completing some structured introductory tutorials to help you learn the language structures; then we will give you actual working JavaScript made by developers for you to break, modify and then improve.
Finally, we will invent our own apps based upon the skills of other developers.
History of JavaScript - an interesting read!
JavaScript intro 1 / JavaScript intro 2
In Programming 11, you learned that HTML gives a webpage structure and CSS gives it appearance. Now we add the third part: JavaScript gives a webpage behaviour.
JavaScript allows a webpage to respond. A button can be clicked, a score can change, an image can move, a menu can open, a game can react to your decisions, and a webpage can retrieve information from somewhere else.
This unit is not about memorizing JavaScript. It is about learning to make things happen.
As mentioned above... we will use a simple programming cycle:
LEARN → EXPERIMENT → BREAK → DEBUG → REINVENT → CREATE
Before studying the language in detail, experiment with some working JavaScript.
Explore:
W3Schools — JavaScript Tutorial
Experiment with the examples. Change things. Break things. Fix them.
Find THREE examples that demonstrate JavaScript doing something interesting.
For each example, answer:
What does the program do?
What part of the code makes it happen?
What happens when you change the code?
Put your responses on a MS Word document and be sure to back up your comments with a code 'snippet' - you can use the snip tool to make a PNG of your screen work and paste into the document. The point here is to explore the resources and to comment on a few different sections of the resource!
Section # 2 JavaScript Practice - Code Academy
Sequential Code Academy lessons (free lesson segments - see below)
Introduction / conditionals / functions / arrays / loops / iterators / objects
Please complete this introductory work on JavaScript: Code Academy site. Please be sure you have completed the lessons as described above. PLEASE complete all the "free" segments.
ITERATORS IS NO LONGER REQUIRED FOR CODE ACADEMY. You will submit a screen shot of your 'progress' and your account name put on a word document - and then create a one drive link on your spreadsheet.
Section # 3 JavaScript "Reinvents" Utilize existing JavaScript projects to improve their function and design
Use Code Pen for these projects 'reinvents'. Be sure you sign up for an account so that you can save the changes you make!
Resource Guides
reference - W 3 JavaScript - reference guide to functionality and features.
(*) Note: please write a specific developer comment in the 'redo' explaining what you actually did to improve the function and design!
Project ONE - Reinvent -JavaScript Analogue Clock Due:
Due:
Start with the W3Schools JavaScript Analogue Clock and reinvent it. Explore the different functions / look at my clock coding videos / explore the concept of programming cause and effect. How can we improve functionality or personalize the clock features?
Make a minimum of 5 meaningful changes to its look, design or functionality.
A meaningful change noticeably affects how the clock looks, works or responds. Small changes to individual colours, numbers or values do not count as separate changes.
You could:
🎨 Change the colours, background, clock face or hands
🕐 Change the way the time is displayed
✨ Add animations or visual effects
⚙️ Modify the JavaScript that controls the clock
➕ Add something new, such as the date, day, digital time or a second time zone
🚀 Completely reinvent the design of the clock
Check out these far-out clock examples for inspiration — the links below the video lead to the actual coding examples.
You can also explore this alternative Code Pen clock and see if you can recreate some of its ideas.
One possible JavaScript change is to make the clock face change colour depending on the hour.
For example, you could add this inside the clock's drawClock() function:
var hour = time.getHours();
if (hour >= 18 || hour < 6) {
ctx.fillStyle = "midnightblue";
} else {
ctx.fillStyle = "lightblue";
}
ctx.fillRect(0, 0, canvas.width, canvas.height);
Now the clock could automatically have a daytime appearance and a nighttime appearance.
This is a meaningful change because you have changed the behaviour of the clock using JavaScript, rather than simply changing a colour in the CSS.
You can make your changes directly in W3Schools but remember that it does not provide a Save As function.
You may instead move your code-to-Code Pen or Visual Studio Code. If you create a Code Pen account, you can host your finished project there and submit the link.
Experiment, break things, fix them, and make the clock your own!
Due:
Start with this dreadful-looking digital clock and reinvent it.
Your challenge is to make at least 10 meaningful changes to the clock's design, functionality and behaviour.
A meaningful change should noticeably affect how the clock looks, works or responds. Small changes to individual colours, words or values do not count as separate changes.
Your changes should include a mix of HTML, CSS and JavaScript. For example, you might add an HTML element, redesign the interface with CSS, and modify JavaScript functions, arrays or behaviours. (*) Please add a developer comment into your project to outlining the specific changes you have made.
🎨 Redesign the clock's appearance and layout
🕐 Change how the time is displayed
🌈 Add dynamic colours or visual effects
⚙️ Modify existing JavaScript functions
➕ Add new functionality or interactions
🔔 Make the clock respond to different times or events
🚀 Add an original feature of your own
Proficient: Make 10+ meaningful changes that successfully transform the original clock.
Extending: Go beyond modifying the existing clock by adding a significant new feature or interaction that demonstrates your own programming ideas.
Here is an example of a way to specifically adjust the JavaScript:
If the original clock had something like this:
var hours = now.getHours();
You could change the behaviour to a 12-hour clock
var hours = now.getHours();
var ampm = hours >= 12 ? "PM" : "AM";
hours = hours % 12;
hours = hours ? hours : 12;
Then, when displaying the time, add the ampm;
clock.innerHTML = hours + ":" + minutes + ":" + seconds + " " + ampm;
What did you change?
You didn't just change the appearance—you modified the JavaScript logic that controls how the time is calculated and displayed.
Take the classic JavaScript Hangman game and make it your own!
Start with the Code Pen Hangman game and experiment with the HTML, CSS and JavaScript. You can use the Hangman guide or textbook guide for help.
Make at least 10 meaningful changes to the original game.
A meaningful change noticeably affects the appearance, interaction, behaviour, rules, or player experience. It should involve a deliberate change to the HTML, CSS, or JavaScript — not simply changing a few words, colours, or values.
Aim for a mix of changes rather than completing 10 items from one category.
☐ 1. Redesign the colour scheme
☐ 2. Change the typography and/or button design
☐ 3. Redesign the layout or game interface
☐ 4. Add a new visual element, image, icon or animation
☐ 5. Add or change the game's scoring system
☐ 6. Add sound or another form of player feedback
☐ 7. Change what happens after a correct or incorrect guess
☐ 8. Add a new game mechanic, challenge or difficulty level
☐ 9. Change or add a game rule
☐ 10. Add an original feature of your own
The checklist is a starting point, not a limit. Your changes should work together to create a noticeably different game.
One possible JavaScript change is to make something extra happen when the player guesses a correct letter.
For example, inside the part of the code that detects a correct guess, you could add:
if (word.indexOf(letter) >= 0) {
document.body.style.backgroundColor = "lightgreen";
alert("Nice guess!");
}
Now, when the player guesses a correct letter, the game gives them visual feedback and a message.
You could experiment with this idea further:
Make the screen flash or animate
Play a sound
Add points to the score
Display a special message
Trigger an animation when the whole word is solved
Do something different when the player makes an incorrect guess
This counts as a meaningful change because you have changed the behaviour of the game using JavaScript, not simply changed its appearance.
Your game includes 10+ meaningful changes and demonstrates confident modification of the existing HTML, CSS and JavaScript.
Your game goes beyond modifying the original by introducing a significant new mechanic, rule or concept that changes how Hangman is played.